Skip to content

Current application settings wrong endpoint documentation #85

@wilbersl

Description

@wilbersl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions