Skip to main content

Read typeTwoResource relationship

GET 

/resources/typeTwoResources/:id/relationships/:related_field/

Read a typeOneResource associated with the typeTwoResource.

Authorization Action:

resource:typeOneResources:get

Request

Path Parameters

    id stringrequired

    Globally unique ids (UUID4)

    related_field stringrequired

Query Parameters

    include string

    List of included related resources.

    Usage:

    Including nested relationships is currently not supported.

    include=related-resource0,related-resource1,...,related-resourceN

    Authorization Action:

    The user must be authorized to include the requested resource.

    resource:<related-resource>:list
    fields string

    Sparse fieldsets.

    Usage:

    fields[resource-name]=field0,field1,...,fieldN

Responses

Schema
    data objectrequired
    oneOf
  • Array [
  • type typerequired

    The type member is used to describe resource objects that share common attributes and relationships.

    id idrequired

    Each resource object’s type and id pair MUST identify a single, unique resource.

    meta object
    property name* any
  • ]
  • included object[]
  • Array [
  • type typerequired

    The type member is used to describe resource objects that share common attributes and relationships.

    id idrequired

    Each resource object’s type and id pair MUST identify a single, unique resource.

    attributes object
    relationships object
    links object
    oneOf
    title
    meta object
    property name* any
  • ]
  • links object
    first object
    oneOf
  • string uri-reference
  • last object
    oneOf
  • string uri-reference
  • prev object
    oneOf
  • string uri-reference
  • next object
    oneOf
  • string uri-reference
  • oneOf
    title
    jsonapi object

    The server's implementation

    version string
    meta object
    property name* any
Loading...