Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseCollectionResponse ¶
type BaseCollectionResponse[T IdSingular] struct { ID T `json:"id"` }
Response
type GetByIDRequest ¶
type IdOrIds ¶
type IdOrIds interface { IdSingular | IdPlural }
type IdPluralRequest ¶
type IdPluralRequest[T IdPlural] struct { ID T `json:"id" params:"id" query:"id" validate:"required"` }
type IdSingularRequest ¶
type IdSingularRequest[T IdSingular] struct { ID T `json:"id" params:"id" query:"id" validate:"required"` }
type ListRequest ¶
type ListRequest struct { PageRequest Include []string `json:"include" query:"include"` }
type Meta ¶
type Meta struct {
Page *PageMetadata `json:"page,omitempty"`
}
type PageMetadata ¶
type PageRequest ¶
Request
type PageResponse ¶
type PageResponse[T any] struct { Data []T `json:"data,omitempty"` PageMetadata PageMetadata `json:"page,omitempty"` }
type WebResponse ¶
Click to show internal directories.
Click to hide internal directories.