API documentation does not conform to Namespace URL paths

Bug #1064645 reported by Matt Joyce
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-api-site
Won't Fix
Wishlist
Unassigned

Bug Description

API methods have unique identifiers defined as a namespace in them.

Below is an example class definition for the flavormanage API, in it you can see the namespace definition pointing to a docs path.

It would be worthwhile to make sure that documentation on method calls is accessible at that namespace URL.

Otherwise there's 300 some odd namespace pathes in the source that will 404. Also at a later date this namespace identifier could be used to ensure that any newly registered namespace has corresponding documentation provided and updated ( on deltas ) as a test case.

Example class in API:

class Flavormanage(extensions.ExtensionDescriptor):
    """
    Flavor create/delete API support
    """

    name = "FlavorManage"
    alias = "os-flavor-manage"
    namespace = ("http://docs.openstack.org/compute/ext/"
                 "flavor_manage/api/v1.1")
    updated = "2012-01-19T00:00:00+00:00"

    def get_controller_extensions(self):
        controller = FlavorManageController()
        extension = extensions.ControllerExtension(self, 'flavors', controller)
        return [extension]
~

Tags: compute-api
Revision history for this message
Tom Fifield (fifieldt) wrote :

Hi,

So what should be at that URL?

Would a link to an anchor within the api.openstack.org site be sufficient ?

eg http://docs.openstack.org/compute/ext/flavor_manage/api/v1.1 points to http://api.openstack.org#flavour-manage

tags: added: compute-api
Changed in openstack-manuals:
status: New → Incomplete
Revision history for this message
Tom Fifield (fifieldt) wrote :

(just FYI these anchors don't exist right now)

Revision history for this message
Matt Joyce (matt-nycresistor) wrote :

so the namespace definitions are as far as I can tell used solely to prevent a name space collision in API ref urls.

I say point those URLs at the documentation for the individual method calls.

Then we can test case against that URL to confirm there is documentation for the method before passing.

Revision history for this message
Tom Fifield (fifieldt) wrote :

Ok - so what we would need to do then, is create a new site with one page per extension.

It's doable, but fiddly :)

Changed in openstack-manuals:
status: Incomplete → Opinion
status: Opinion → Confirmed
importance: Undecided → Wishlist
Anne Gentle (annegentle)
summary: - API documentation does not conform to Namespace URL pathes
+ API documentation does not conform to Namespace URL paths
Tom Fifield (fifieldt)
affects: openstack-manuals → openstack-api-site
Revision history for this message
Anne Gentle (annegentle) wrote :

Wanted to add a note that bug 1064645 is related, though not quite a duplicate.

Revision history for this message
Anne Gentle (annegentle) wrote :

Currently devs are managing without these resolving to real web pages. Due to not having resources, marking Won't Fix.

Changed in openstack-api-site:
status: Confirmed → Won't Fix
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.