Need response codes displayed on api.openstack.org

Bug #975232 reported by Anne Gentle
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-api-site
Fix Released
Medium
Diane Fleming

Bug Description

While the wadls contain response codes, they are not output to api.openstack.org.

Tags: api-site
Anne Gentle (annegentle)
Changed in openstack-manuals:
status: New → Confirmed
importance: Undecided → Medium
Tom Fifield (fifieldt)
tags: added: api-site
Revision history for this message
Tom Fifield (fifieldt) wrote :

To fix this:

Fork https://github.com/rackspace/clouddocs-maven-plugin

Edit:
src/main/resources/wadl2html.xpl

Add the appropriate lines for response codes

Send a pull request

Changed in openstack-manuals:
status: Confirmed → Triaged
Tom Fifield (fifieldt)
affects: openstack-manuals → openstack-api-site
Changed in openstack-api-site:
assignee: nobody → Diane Fleming (diane-fleming)
Changed in openstack-api-site:
assignee: Diane Fleming (diane-fleming) → nobody
assignee: nobody → David Cramer (david-thingbag)
milestone: none → havana
Changed in openstack-api-site:
assignee: David Cramer (david-thingbag) → Diane Fleming (diane-fleming)
Changed in openstack-api-site:
status: Triaged → Confirmed
Revision history for this message
Diane Fleming (diane-fleming) wrote :

wrong URL:

it would involve some
xslt hackery.

This is the xslt that generates the page:

https://github.com/rackerlabs/clouddocs-maven-plugin/blob/master/src/main/resources/cloud/apipage/apipage-main.xsl

It would be a matter of grabbing the error codes and doing something
with them. You'd have to fetch the value of wadl:response/@status such
that the value doesn't start with a 2 or a 3.

See lines 484 ff of (where I turn the wadl into DocBook; in the case of
the apiref page, the wadl goes straight to html):
https://github.com/rackerlabs/clouddocs-maven-plugin/blob/master/src/main/resources/cloud/process-embedded-wadl.xsl

Revision history for this message
Diane Fleming (diane-fleming) wrote :

Fixed with https://github.com/rackerlabs/clouddocs-maven-plugin/pull/46

clouddocs-plugin version 1.9.4 (once it goes live)

Changed in openstack-api-site:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to api-site (master)

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

Revision history for this message
Diane Fleming (diane-fleming) wrote :

Fixed with https://review.openstack.org/47184, so abandoning 47188. (dup)

Changed in openstack-api-site:
status: In Progress → 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.