snyk-labs / pysnyk

A Python client for the Snyk API.
https://snyk.docs.apiary.io/
MIT License
85 stars 116 forks source link

[FEAT]: Prepare PySnyk for deprecation of V1 List All Projects #179

Open Gil-Tohar-Forter opened 1 year ago

Gil-Tohar-Forter commented 1 year ago

Is there an existing feature request for this?

Description

Snyk has brought this PSA:

We are reaching out to inform you about an upcoming change to our API services. As part of our ongoing efforts to improve our platform and provide you with the best possible API experience, we are deprecating the List all Projects v1 API and migrating to new GA REST List all projects API.

The decision to deprecate this API is part and parcel of Snyk’s wider initiative to gradually migrate all v1 API endpoints to a new REST API designed to provide a more consistent, friendly, and easy-to-use API framework.

PySnyk will be using a deprecated API without an update

Additional Information

No response

seanmmclaughlin commented 8 months ago

Is this going to be done, or do we need to move off the PySnyk library? Is there something I am missing? My scripts are no longer working with the list all calls.

garethr commented 8 months ago

The latest version of the library should be using the REST API under the hood, rather than the V1 API that's now EOL.

Could you include specific details of what's not working for you and we can take a look.

sahilsangani98 commented 7 months ago

Hey @garethr

Do we have aggregated-issues equivalent endpoint for the REST API?

I'm trying to update following url: https://snyk.io/api/v1/org/{{org_id}}/project/{{project_id}}/aggregated-issues

If yes, it will be really appreciated if you can share.

Lastly, i believe this repo is still under maintenance and still working for v1 to rest migration. Correct me if I am wrong.