Skip to content
Michael Dostál edited this page Nov 14, 2018 · 1 revision
@JsonApiModelConfig(options: ModelOptions)
export class Post extends JsonApiModel { }

options:

  • type
  • baseUrl - if not specified, the global baseUrl will be used
  • apiVersion - if not specified, the global apiVersion will be used
  • modelEndpointUrl - if not specified, type will be used instead
  • meta - optional, metadata model

Attribute decorators

  • @Attribute
  • @NestedAttribute
  • @BelongsTo
  • @HasMany
Clone this wiki locally