Bug 1346201

Summary: [REST API] Missing capabilities in rest api 4.0.0-14
Product: [oVirt] ovirt-engine Reporter: Kobi Hakimi <khakimi>
Component: RestAPIAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED DUPLICATE QA Contact: Pavel Stehlik <pstehlik>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.0.0CC: bugs, khakimi, myakove
Target Milestone: ---Flags: rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-14 10:52:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
api.xsd none

Description Kobi Hakimi 2016-06-14 09:15:45 UTC
Created attachment 1167816 [details]
api.xsd

Description of problem:
[REST API] Missing capabilities in rest api 4.0.0-14

Version-Release number of selected component (if applicable):
Red Hat Enterprise Virtualization Manager Version: 4.0.0.4-0.1.el7ev

How reproducible:
100%

Steps to Reproduce:
1. Install the new build 4.0.0-14
2. run the rest query:
https://jenkins-vm-08.scl.lab.tlv.redhat.com/ovirt-engine/api/capabilities

Actual results:
404 - Not Found

Expected results:
got something like:
<capabilities>
<version major="4"minor="0"href="/ovirt-engine/api/capabilities/332e3633-2e36-332e-3633-2e36332e3633"id="332e3633-2e36-332e-3633-2e36332e3633">
....
</capabilities>

Additional info:
juan already knows about this issue

see attached api.xsd file

Comment 1 Juan Hernández 2016-06-14 09:55:20 UTC
In version 4 of the API there is no "capabilities" concept. It has been replaced by the description of the model, which includes the descriptions of services and types. It is available in the live server in the following URLs:

  GET /ovirt-engine/api/model.xml
  GET /ovirt-engine/api/model.json

Starting with 4.1 it will also be avaialble as HTML, for human users:

  GET /ovirte-engine/api/model.html

In version 3 of the API it should be still available:

  GET /ovirt-engine/api/v3/capabilities

Or using the "Version" header:

  GET /ovirt-engine/api/capabilities
  Version: 3

Please check that and close the bug.

Comment 2 Meni Yakove 2016-06-14 10:23:56 UTC
Juan, This is the issues with missing capabilities in HEAD

You already have a patch for that:
restapi: Adapt "Link" header for V3
https://gerrit.ovirt.org/58992

Comment 3 Juan Hernández 2016-06-14 10:52:04 UTC
OK, then I think we can close this as a duplicate of bug 1342226, it is already fixed.

*** This bug has been marked as a duplicate of bug 1342226 ***