Bug 797782 - [Rest API] application_template item is not shown in the output of API entry point
Summary: [Rest API] application_template item is not shown in the output of API entry ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Pod
Version: 1.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Krishna Raman
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-27 10:01 UTC by Johnny Liu
Modified: 2014-06-18 07:24 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-02 21:56:33 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Johnny Liu 2012-02-27 10:01:09 UTC
Description of problem:


Version-Release number of selected component (if applicable):
devenv_1642 

How reproducible:
Always

Steps to Reproduce:
1. Call REST API entry point
$ curl -k -X GET -H 'Accept: application/xml' --user jialiu:XX https://ec2-184-73-110-196.compute-1.amazonaws.com/broker/rest/api
<?xml version="1.0" encoding="UTF-8"?>
<response>
  <status>ok</status>
  <data>
    <link>
      <optional-params/>
      <rel>List cartridges</rel>
      <method>GET</method>
      <href>/cartridges</href>
      <required-params/>
    </link>
    <link>
      <optional-params/>
      <rel>Create new domain</rel>
      <method>POST</method>
      <href>/domains</href>
      <required-params>
        <param>
          <valid-options/>
          <description>Name of the domain</description>
          <name>namespace</name>
          <type>string</type>
        </param>
      </required-params>
    </link>
    <link>
      <optional-params/>
      <rel>API entry point</rel>
      <method>GET</method>
      <href>/api</href>
      <required-params/>
    </link>
    <link>
      <optional-params/>
      <rel>Get user information</rel>
      <method>GET</method>
      <href>/user</href>
      <required-params/>
    </link>
    <link>
      <optional-params/>
      <rel>List domains</rel>
      <method>GET</method>
      <href>/domains</href>
      <required-params/>
    </link>
  </data>
  <messages/>
  <version>1.0</version>
  <type>links</type>
</response>

2. There is not any entry about application_template
3.
  
Actual results:
There is not any entry about application_template, this is hard to user to get know to rest api support this entry point.

Expected results:
A entry about application_template should be shown in the output of API entry point

Additional info:

Comment 1 Krishna Raman 2012-02-27 21:02:36 UTC
Fixed in 32e47fa4b30da3a89089e623ff838c078059ffd2

Comment 2 Meng Bo 2012-02-28 06:04:00 UTC
verified on devenv_1648, issue has been fixed.
  
<-----snip----->
    <link>
      <optional-params/>
      <rel>List application templates</rel>
      <required-params/>
      <href>/application_template</href>
      <method>GET</method>
    </link>
<-----snip----->


Note You need to log in before you can comment on or make changes to this bug.