Skip to content

Overridden primary key not respected in links #476

Closed
@kopf

Description

On 1.0.0-dev (826c9d4), when a primary_key is overridden for a certain API, this isn't respected by the response from a related API in the links section. e.g.:

create_api(model.Tenant, primary_key='_uuid')

        "tenant_user_maps": {
          "data": [],
          "links": {
            "related": "http://localhost:8888/api/v1/tenants/2/tenant_user_maps",
            "self": "http://localhost:8888/api/v1/tenants/2/relationships/tenant_user_maps"
          }
        },

The /tenants/2/ in the links should really look something like /tenants/uuid-string-here-etc/

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions