Ronelle Landy created DTACLOUD-410:
--------------------------------------

             Summary: Deltacloud API - GET /api - JSON output does not return 
any info about constraints (RHEVM provider)
                 Key: DTACLOUD-410
                 URL: https://issues.apache.org/jira/browse/DTACLOUD-410
             Project: DeltaCloud
          Issue Type: Bug
          Components: Native/Frontend
         Environment: Deltacloud 1.0.5
RHEVM provider
Native Deltacloud API
            Reporter: Ronelle Landy


See the XML and then JSON output from GET /api (RHEVM provider) copied below. 
Note that the XML output contains information about instances names - max 
length=50. the JSON output leaves this info out

XML output:

<api driver="rhevm" 
provider="https://10.16.120.230:8443/api;9754dc7f-489e-49dd-99d0-2c2ea7657b56"; 
version="1.0.5"><link 
href="http://qe-blade-02.idm.lab.bos.redhat.com:3003/api/instance_states"; 
rel="instance_states">
  </link><link 
href="http://qe-blade-02.idm.lab.bos.redhat.com:3003/api/hardware_profiles"; 
rel="hardware_profiles">
  </link><link 
href="http://qe-blade-02.idm.lab.bos.redhat.com:3003/api/drivers"; rel="drivers">
  </link><link href="http://qe-blade-02.idm.lab.bos.redhat.com:3003/api/images"; 
rel="images">
  </link><link href="http://qe-blade-02.idm.lab.bos.redhat.com:3003/api/realms"; 
rel="realms">
  </link><link 
href="http://qe-blade-02.idm.lab.bos.redhat.com:3003/api/instances"; 
rel="instances"><feature name="user_name" rel="create"><param 
name="name"/><constraint name="max_length">50</constraint></feature><feature 
name="user_data" rel="create"><param name="user_data"/></feature></link><link 
href="http://qe-blade-02.idm.lab.bos.redhat.com:3003/api/storage_volumes"; 
rel="storage_volumes">
  </link></api>

JSON output:

{"api":{"provider":"https://10.16.120.230:8443/api;9754dc7f-489e-49dd-99d0-2c2ea7657b56","links":[{"rel":"instance_states","href":"http://qe-blade-02.idm.lab.bos.redhat.com:3003/api/instance_states","features":[]},{"rel":"hardware_profiles","href":"http://qe-blade-02.idm.lab.bos.redhat.com:3003/api/hardware_profiles","features":[]},{"rel":"drivers","href":"http://qe-blade-02.idm.lab.bos.redhat.com:3003/api/drivers","features":[]},{"rel":"images","href":"http://qe-blade-02.idm.lab.bos.redhat.com:3003/api/images","features":[]},{"rel":"realms","href":"http://qe-blade-02.idm.lab.bos.redhat.com:3003/api/realms","features":[]},{"rel":"instances","href":"http://qe-blade-02.idm.lab.bos.redhat.com:3003/api/instances","features":[[{"rel":"create","params":["name:string:optional"],"name":"user_name"}],[{"rel":"create","params":["user_data:string:optional"],"name":"user_data"}]]},{"rel":"storage_volumes","href":"http://qe-blade-02.idm.lab.bos.redhat.com:3003/api/storage_volumes","features":[]}],"driver":"rhevm","version":"1.0.5"}}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to