reqif_oslc definitions GET request fails
I am trying GET request for reqIF oslc definitons but we are getting 400 BAD Request error. Below is the request i I am sending,
Accepted answer
You're trying to do a query of reqif definitions, or if you're not then you haven't picked the correct QueryCapability.
5.5 Behaviour of GET (query)
A GET to the
dng_reqif:ReqIFQueryCapability
will retrieve all existing
dng_reqif:ReqIFDefinition
resources in the component.
The
dng_reqif:ReqIFQueryCapability
uri can be obtained from the OSLC Service provider document
The response to a GET to the
dng_reqif:ReqIFDefinition
resource uri will be a 200 in case the retrieval was successful.
The returned data is an OSLC response format which include zero, one or many
dng_reqif:ReqIFDefinition
resources
An OSLC user can modify the behavior of the default query capability by using the oslc_where parameter
Filter on following fields are supported
- dcterms:title : Exact match, case sensitive.
- dcterms:modified: Equals, greater than, less than.
Following OSLC parameters are not supported by the ReqIF Query capability
- oslc.select
- oslc.searchTerms.
- oslc.orderBy.
One other answer
In your example, the request parameter values are not being fully URL encoded.
Comments
Ian Barnard
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jun 08 '21, 12:41 p.m.