Closed pypingou closed 8 years ago
Ok, I'll be dropping all the namespace='rpms'
from this PR, the idea here is to break all things to what we want pkgdb to be, I have another PR after this one that brings back backward compatibility for the URLs of the UI (GET only).
Hm. Can we add an api_version
endpoint that returns '2.0'?
Then, we can modify pkgdb2client to check that url first, and use the new urls if it is 2.0 and use the old urls if it gives a 404
error.
Hm. Can we add an api_version endpoint that returns '2.0'?
You mean, like: https://admin.fedoraproject.org/pkgdb/api/version ? :)
Yes, excellent.
So, what version should we check for to see if this stuff is live?
It's definitely going to be a 2.x
:+1: to merge.
Let's do it!
This allows to the namespace to be specified in the URLs, adjust the templates and unit-tests accordingly