unioslo / harborapi

Python async client for the Harbor REST API v2.0.
https://unioslo.github.io/harborapi/
MIT License
28 stars 5 forks source link

get_project method throws a Client error 422 unprocessable #55

Closed Winspain closed 1 year ago

Winspain commented 1 year ago

"My Harbor version is v2.1.3. When I use the get_project method and pass the project_name parameter, it entity for the URL http://xxxxx/api/v2.0/projects/{project_name}."

pederhan commented 1 year ago

In your version of Harbor, only project IDs can be used to fetch projects:

https://github.com/goharbor/harbor/blob/b6de84c57111ff74afb602691647ca548d4667d1/api/v2.0/swagger.yaml#L112-L130

pederhan commented 1 year ago

Closing this issue since I cannot do anything about it.