specifications icon indicating copy to clipboard operation
specifications copied to clipboard

FIWARE-NGSI v2 Swagger Specification - omissions for working with subscriptions

Open flopezag opened this issue 4 years ago • 0 comments

I get an empty set when trying to request a subscription list as documented here https://swagger.lab.fiware.org/#/Subscriptions/List%20Subscriptions:

$ curl -i --insecure -X GET 'https://localhost/v2/subscriptions' -H 'X-Auth-token: 577...82b'

HTTP/2 200 server: nginx/1.18.0 (Ubuntu) date: Thu, 11 Nov 2021 12:26:22 GMT content-type: application/json content-length: 2 fiware-correlator: 94aaac08-42ea-11ec-a8c9-0242ac1d0006 strict-transport-security: max-age=63072000 []

If we add the fiware-servicepath and fiware-service headers the problem is resolved.

Maybe useful to add to the Swagger spec for the future? I think I was caught out with the same issue some months ago too.

flopezag avatar Dec 20 '21 07:12 flopezag