Bug 1063811 - nolinks=true parameter has no effect via REST API
Summary: nolinks=true parameter has no effect via REST API
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Master
Version: 1.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Lili Nader
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-11 13:24 UTC by Oleg Fayans
Modified: 2016-12-01 00:27 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-11 15:51:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Oleg Fayans 2014-02-11 13:24:56 UTC
Description of problem:
When I query the REST API with ?nolinks=true parameter, the response still contains links

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. curl -k  -H "Accept: application/xml" -X GET https://ec2-54-226-85-90.compute-1.amazonaws.com/broker/rest/api -d "nolinks=true" -u ofayans:redhat
2. curl -k  -H "Accept: application/xml" -X GET https://ec2-54-226-85-90.compute-1.amazonaws.com/broker/rest/api -u ofayans:redhat


Actual results:
These 2 requests produce absolutely identical results

Expected results:


Additional info:

Comment 1 Jordan Liggitt 2014-02-11 15:51:23 UTC
The purpose of the nolinks param is to make API responses more concise by suppressing the "links" child of the data object, when all that is desired is the entity data.

The links ARE the data provided by the "/api" endpoint.


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