Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorData ¶
type ErrorData struct { Source *ErrorSourcePointer `json:"source,omitempty"` Title string `json:"title"` Detail string `json:"detail"` }
ErrorData
type ErrorSourcePointer ¶
type ErrorSourcePointer struct {
Pointer string `json:"pointer,omitempty"`
}
ErrorSourcePointer
type RequestBody ¶
type RequestBody struct {
Data *RequestResource `json:"data" validate:"required"`
}
RequestBody
type RequestResource ¶
type RequestResource struct { Type string `json:"type" validate:"required"` ID string `json:"id" validate:"omitempty,uuid4"` Attributes any `json:"attributes" validate:"required"` }
RequestResource
type Response ¶
type Response struct { Meta *ResponseMetadata `json:"meta"` Data any `json:"data"` }
Response
type ResponseMetadata ¶
type ResponseMetadata struct {
Page pagination.PageMetadata `json:"page,omitempty"`
}
ResponseMetadata
type ResponseResource ¶
type ResponseResource struct { Type string `json:"type"` ID uuid.UUID `json:"id"` Meta *ResourceMetadata `json:"meta,omitempty"` Attributes any `json:"attributes"` }
Resource
Click to show internal directories.
Click to hide internal directories.