Skip to content

Commit

Permalink
feat: add "/rest" to snyk api url automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrosca-snyk committed Aug 22, 2024
1 parent 0ea7ec6 commit 5efa710
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ It's important to note vulnerability data is moment-in-time information. By addi

Note the Snyk commands require you to be a Snyk customer, and require passing a valid Snyk API token in the `SNYK_TOKEN` environment variable.

The API base url can be set using the `SNYK_API` environment variable, and if missing it will default to `https://api.snyk.io/rest`.
The API base url can be set using the `SNYK_API` environment variable, and if missing it will default to `https://api.snyk.io`.

```
parlay snyk enrich testing/sbom.cyclonedx.json
Expand Down
2 changes: 1 addition & 1 deletion lib/snyk/self.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,5 @@ func APIBaseURL() string {
if snykApiEnv != "" {
return snykApiEnv
}
return "https://api.snyk.io/rest"
return "https://api.snyk.io"
}
1 change: 1 addition & 0 deletions snyk/issues/issues.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions snyk/users/users.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5efa710

Please sign in to comment.