File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,9 +46,9 @@ export class SnykService {
4646 }
4747
4848 let backportedProjects : SnykProject [ ] = [ ]
49- const snykRestApiVersion = "2023-08-04 "
49+ const snykRestApiVersion = "2025-11-05 "
5050
51- let nextUrl : string | undefined = `/orgs/${ encodeURIComponent (
51+ let nextUrl : string | undefined = `/rest/ orgs/${ encodeURIComponent (
5252 snykAccountId ,
5353 ) } /projects?version=${ snykRestApiVersion } &meta.latest_dependency_total=true&meta.latest_issue_counts=true&limit=100`
5454
@@ -57,7 +57,7 @@ export class SnykService {
5757 * We continue calling the Snyk API and retrieving more projects until links.next is null
5858 * */
5959 while ( nextUrl ) {
60- const response = await fetch ( `https://api.snyk.io/rest ${ nextUrl } ` , {
60+ const response = await fetch ( `https://api.snyk.io${ nextUrl } ` , {
6161 method : "GET" ,
6262 headers : {
6363 Accept : "application/json" ,
Original file line number Diff line number Diff line change 1- // See https://apidocs.snyk.io/?version=2023-08-04 #get-/orgs/-org_id-/projects
1+ // See https://apidocs.snyk.io/?version=2025-11-05 #get-/orgs/-org_id-/projects
22export interface ProjectResponse {
33 data : RestAPIProject [ ]
44 links : {
@@ -20,7 +20,6 @@ export interface RestAPIProject {
2020 }
2121 }
2222 }
23- status : boolean
2423 meta : {
2524 latest_dependency_total : {
2625 updated_at : string
You can’t perform that action at this time.
0 commit comments