/v1 returns 404, should maybe be json links

Bug #1424627 reported by Chris Dent
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gnocchi
Fix Released
Wishlist
Mehdi Abaakouk

Bug Description

A request to /v1 results in a 404 even though it is on the path to the total API. It might be better to have it returns a json representation of the resources "below" v1 for the sake of discoverability.

(A reasonable counter would be "URIs aren't hierarchical paths, you've asked for something that doesn't exist, you should get a 404". Which way to we want to go? Friendly to people exploring or "just use a client, dammit"?)

Julien Danjou (jdanjou)
Changed in gnocchi:
status: New → Confirmed
Julien Danjou (jdanjou)
Changed in gnocchi:
importance: Undecided → Wishlist
gordon chung (chungg)
Changed in gnocchi:
assignee: nobody → gordon chung (chungg)
gordon chung (chungg)
Changed in gnocchi:
assignee: gordon chung (chungg) → nobody
Changed in gnocchi:
assignee: nobody → Pradeep Kilambi (pkilambi)
Changed in gnocchi:
assignee: Pradeep Kilambi (pkilambi) → nobody
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to gnocchi (master)

Fix proposed to branch: master
Review: https://review.openstack.org/210241

Changed in gnocchi:
assignee: nobody → Mehdi Abaakouk (sileht)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to gnocchi (master)

Reviewed: https://review.openstack.org/210241
Committed: https://git.openstack.org/cgit/openstack/gnocchi/commit/?id=c8fb2af7b93620ab4cd675d95e41234f56a467b5
Submitter: Jenkins
Branch: master

commit c8fb2af7b93620ab4cd675d95e41234f56a467b5
Author: Mehdi Abaakouk <email address hidden>
Date: Fri Aug 7 09:28:48 2015 +0200

    rest: Add links to /v1 endpoint

    This change adds links to /v1 endpoint and
    return 200 instead of 400

    Change-Id: I41a09a12a53d33cbcdd38c27e6f367ee2b4d5e79
    Closes-bug: #1424627

Changed in gnocchi:
status: In Progress → Fix Committed
Julien Danjou (jdanjou)
Changed in gnocchi:
milestone: none → 1.1.0
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.