8000 Unable to update app name · Issue #380 · iron-io/functions · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Unable to update app name #380
Closed
Closed
@denismakogon

Description

@denismakogon

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0