Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ContentTypes

Index

Constructors

Properties

Methods

Constructors

constructor

  • new ContentTypes(connection: ClientConnection): ContentTypes

Properties

Private connection

connection: ClientConnection

Methods

getByUri

  • Parameters

    • uri: string

      schema id / content type uri

      Used to get content type settings for a schema

    Returns Promise<ContentTypeModel>

    [[Promise]]

    Example

    const contentType = sdk.contentTypes.getByUri('https://example-schema.com/blog.json')
    
    console.log(contentType)
    

getByUris

  • Parameters

    • uris: string[]

    Returns Promise<ContentTypeModel[]>

    [[Promise<ContentTypeModel[]>]]

    Example

    const contentTypes = sdk.contentTypes.getByUri(['https://example-schema.com/blog.json', 'https://example-schema.com/user.json'])
    
    console.log(contentTypes)
    

Legend

  • Constructor
  • Property
  • Method
  • Private property
  • Private method
  • Property
  • Inherited property
  • Protected property

Generated using TypeDoc