/ and /versions have same reply with another response
Bug #1515445 reported by
Atsushi SAKAI
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Invalid
|
Undecided
|
Unassigned |
Bug Description
If this is wrong asking in here, it would be appreciated to notice me the right place (ML etc).
GET / and /versions have same reply with another response
one is 300, another is 200.
Is there any reason?
P.S.
I am checking the / and /versions API for API-Ref and found this issue.
Changed in glance: | |
status: | New → Invalid |
To post a comment you must log in.
Hi Atsushi,
It's fine to point such out, even like in this case it's not actually bug.
The logic behind the two different responses is that if you are targeting / you most probably want to access the Images API and redirect "300 Multiple choices" is correct. On the other hand if you query directly to /versions you likely really just wanted to query the available versions in which case 200 is correct response. Hopefully that makes sense.