Skip to content

swagger/openapi url response is missing namespace in POST response #1067

@shorsher

Description

@shorsher

The openapi/swagger url's returned when creating a custom contract api seem to omit the namespace now, which breaks the link.

example response:

{
    "id": "0ee89842-3db2-43f5-8469-9f894d616332",
    "namespace": "default",
    "interface": {
        "id": "cf7c0b1f-7b90-4442-9794-58afcc8b5ba1"
    },
    "location": {
        "address": "0xd22d700e9f8b3ecac72126d1bf6fefc513787954"
    },
    "name": "simple-storage",
    "message": "882a64f2-7f71-4a9a-9eb9-90ca0f56ce2c",
    "urls": {
        "openapi": "http://127.0.0.1:5000/api/v1/namespaces//apis/simple-storage/api/swagger.json",
        "ui": "http://127.0.0.1:5000/api/v1/namespaces//apis/simple-storage/api"
    }
}

Note, the response from GET /apis works great.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions