Skip to content

API endpoints for PyPi projects

Michele Scarlato edited this page Apr 12, 2022 · 3 revisions

ToC

Getting started

Take a look at the documentation to see how to launch the REST server.

Endpoints

Resolution

Done Resource Method Req. body Query params Response codes Response body

Missing:
tests
/pypi/packages/{pkg}/{pkg_ver}/resolve/dependents GET transitive: boolean, timestamp: long
  • 200: OK
  • 404: Package not found
  • 404: Package version not found
[ { "id": bigint "package": text, "version": text, "createdAt": timestamp, "url": text } ]

Packages and package versions

Done Resource Method Req. body Query params Response codes Response body

Missing:
tests
/pypi/packages/{pkg}/{pkg_ver} GET limit: integer, offset: integer, artifactRepository: text, releaseDate: long
  • 200: OK
  • 400: Invalid limit value
  • 400: Invalid offset value
  • 404: Package not found
  • 404: Package version not found
{ "id": bigint, "package_id": bigint, "version": text, "cg_generator": text, "created_at": timestamp, "metadata": json }