Bug 1346201 - [REST API] Missing capabilities in rest api 4.0.0-14
Summary: [REST API] Missing capabilities in rest api 4.0.0-14
Keywords:
Status: CLOSED DUPLICATE of bug 1342226
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: RestAPI
Version: 4.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Juan Hernández
QA Contact: Pavel Stehlik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-06-14 09:15 UTC by Kobi Hakimi
Modified: 2016-06-14 10:52 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-06-14 10:52:04 UTC
oVirt Team: Infra
Embargoed:
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?


Attachments (Terms of Use)
api.xsd (4.47 KB, application/xml)
2016-06-14 09:15 UTC, Kobi Hakimi
no flags Details

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


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