Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // model_pagination_envelope.go
- package openapi
- // An envelope for paginated response. When accessing a collection through a GET endpoint, the results are wrapped in this envelope which includes metadata about those results.
- type PaginationEnvelope struct {
- Data []map[string]interface{} `json:"data"`
- Pages int32 `json:"pages"`
- Page int32 `json:"page"`
- Results int32 `json:"results"`
- }
- // model_inline_response_200.go
- package openapi
- type InlineResponse200 struct {
- Data []Event `json:"data,omitempty"`
- Page Page `json:"page,omitempty"` // !!! Page doesn't exist. Should be int32 or something
- Pages Pages `json:"pages,omitempty"` // !!!
- Results Results `json:"results,omitempty"` // !!!
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement