Bug 797782

Summary: [Rest API] application_template item is not shown in the output of API entry point
Product: OKD Reporter: Johnny Liu <jialiu>
Component: PodAssignee: Krishna Raman <kraman>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.xCC: bmeng, mfisher, rmillner
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-02 21:56:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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----->