Red Hat Bugzilla – Bug 851403
Document error in REST API section
Last modified: 2013-11-07 17:10:27 EST
Description of problem:
User reported this error in our documentation:
> I tried to explore Guvnor's REST API, particularly interested in retrieving package versions and binary with a given package version. But I could not get the result as the given example in chapter 188.8.131.52.5 and Example 9.10:
> Guvnor version: 5.4.0.Final
> Repository: sample repository
> Document: http://docs.jboss.org/drools/release/5.4.0.Final/drools-guvnor-docs/html_single/#d0e3632
> URI: [host:port]/guvnor/rest/packages - this was given in Example 9.10, not sure if it is correct.
> Response Message:
> <feed xmlns="http://www.w3.org/2005/Atom" xml:base="http://localhost:8080/guvnor/rest/packages">
> <title type="text">Packages</title>
> <title type="text">defaultPackage</title>
> <link href="http://localhost:8080/guvnor/rest/packages/defaultPackage"/>
> <title type="text">mortgages</title>
> <link href="http://localhost:8080/guvnor/rest/packages/mortgages"/>
> The response was much different than the one in document, Example 9.11. For example, the title is "<title type="text">Version history of mortgages</title>" in document, and there is an <update/> element under each entry. The most important, the link for each package contains the "/versions/version".
> Your help is greatly appreciated.
Hi, this is an error in the doc, "Example 9.10. Retrieving package
versions as an Atom Feed". The correct URL to be used in Example 9.10
Version-Release number of selected component (if applicable):
Steps to Reproduce:
The document in question does not exist on brms 5.3.x branch. Fixed the doc on guvnor 5.4.x and master branch.