anitya icon indicating copy to clipboard operation
anitya copied to clipboard

add api to for distro packages maintainer

Open glensc opened this issue 11 years ago • 3 comments

as distribution maintainer, i would like to do over api:

  • create project<>distribution package mapping (project_id (numeric), distribution name, distribution package name)
  • add project (name, homepage, backend, backend specific options)
  • rename package mapping for distribution (project_id, distribution name, old name(?), new name)

glensc avatar Nov 25 '14 19:11 glensc

Agreed. This could be expanded. We would want all of those new API endpoints to require authentication.

Noting here that here's an example of using parts of the existing anitya API (unauthenticated): https://github.com/ralphbean/lightsaber/blob/develop/roles/development/files/bin/check-anitya.py

ralphbean avatar Mar 04 '15 16:03 ralphbean

And here's an example of doing some things authenticated: https://github.com/fedora-infra/the-new-hotness/blob/develop/hotness/anitya.py

ralphbean avatar Mar 04 '15 16:03 ralphbean

With the v2 API, the only feature not yet supported is

  • rename package mapping for distribution (project_id, distribution name, old name(?), new name).

We need to add PUT request support to the packages endpoint

jeremycline avatar Aug 11 '18 14:08 jeremycline