Skip to content

JsonApiResourceAttribute

class in JsonApiToolkit.Attributes

Declares the JSON:API wire type string for a resource and marks it for TypeScript generation by the jsonapi-typegen tool.

public class JsonApiResourceAttribute

Constructors

JsonApiResourceAttribute(typeName: string)

Declares the JSON:API wire type string for a resource and marks it for TypeScript generation by the jsonapi-typegen tool.

Parameters - typeName: The JSON:API wire type string.

Properties

TypeName : string

The JSON:API "type" string used on the wire (e.g. "todos").