-
Notifications
You must be signed in to change notification settings - Fork 14
Description
After problems with the /application/currentApplication/settings endpoint I wrote a ticket in Jira (CST-2582). Robert Neale discovered that the API docs for this endpoint are wrong.
The correct accept header is application/vnd.com.nsn.cumulocity.option+json and the content are simple key:value pairs for the settings.
Response:
{'key1':'value1','key2':'value2','key3':'value3'}
The Settings can be gotten with the BootstrapUser as well as the SubscribedTenantUsers. Based on the inheritFromOwner flag in the microservice manifest the content logic differs a bit.
If inheritFromOwner == True and the Tenant Option doesn't exist on the SubscribedTenant that makes the request, it returns the key:value pair from the owner.
If inheritFromOwner == False and the Tenant Option doesn't exist on the SubscribedTenant that makes the request, it doesn't return the key:value pair.
I suggest updating the c8y_api.model.applications.get_current_settings(), because the actual response can not be processed by the method.