Skip to content

Add namespace to 'url' attribute in response when resource has been created #2

Description

@KIVagant

For example, when I trying to create new image in the '/fractal/' namespace:

http --verify no --auth Developer:123456 -f POST https://localhost/staticus/fractal/fractal.jpg recreate=1
HTTP/1.1 201 Created
...
{
    "resource": {
        "body": "",
        "dimension": "0",
        "height": 0,
        "name": "fractal",
        "nameAlternative": "",
        "namespace": "fractal",
        "new": true,
        "recreate": false,
        "type": "jpg",
        "uuid": "28890c0b3a775ebd22755c0a1a35b9f4",
        "variant": "def",
        "version": 0,
        "width": 0
    },
    "uri": "fractal.jpg"                  # ← here MUST be namespace in URI like /fractal/fractal.jpg
}

All clients now need to concatenate "namespace" and "uri" parameters to get correct uri.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions