Bug 805959 - [REST API] When no domain already exist, the response does not provide any link to create a new domain
Summary: [REST API] When no domain already exist, the response does not provide any li...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OKD
Classification: Red Hat
Component: Pod
Version: 2.x
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Lili Nader
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-22 14:47 UTC by Xavier Coulon
Modified: 2015-05-15 01:48 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-27 20:19:16 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Xavier Coulon 2012-03-22 14:47:00 UTC
Response is as below:


<?xml version="1.0" encoding="UTF-8"?>
<response>
  <data/>
  <status>ok</status>
  <messages/>
  <version>1.0</version>
  <type>domains</type>
</response>

It should contain a link to create a new domain, such as:

<link>
        <rel>Create new domain</rel>
        <href>/domains</href>
        <optional-params/>
        <method>POST</method>
        <required-params>
          <param>
            <name>namespace</name>
            <description>Name of the domain</description>
            <valid-options/>
            <type>string</type>
          </param>
        </required-params>
      </link>

Comment 1 Lili Nader 2012-03-27 20:19:16 UTC
the link for creating a new domain is under top level /rest/api


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