Closed
Description
Create an app with name testapp
and then try to update it.
curl -X PUT -d '{"app": {"name": "newapp"}}' localhost:8080/v1/apps/testapp
As response i get:
{"message":"App successfully updated","app":{"name":"testapp","config":null}}
And when i’m trying to list apps i get:
{"message":"Successfully listed applications","apps":[{"name":"testapp","config":null}]}
It appears that app name is immutable. So in order to fix it, following changes required:
- update docs to reflect immutability of an app name
- at API level return HTTP 403 with error message saying that app name is immutable
- update swagger doc to reflect real use case for HTTP PUT
In swagger there's an example:
{
"app": {
"name": "string",
"config": {}
}
}
But it doesn't have any effect, would be nice to have more useful example.