x07pagination

command
v0.0.0-...-93a1306 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

README


title: Sample API version: 0.0.0

Sample API

paths

endpoint operationId tags summary
GET /users main.ListUser

main.ListUser GET /users

name value
operationId main.ListUser
endpoint GET /users
input Input
output PaginatedOutput[[]main.User]
tags
input (application/json)
// GET /users
type Input struct {
	cursor? string `in:"query"`

	pageSize? integer `in:"query"`

	sort? "asc" | "desc" `in:"query"`

	query? string `in:"query"`
}
output (application/json)
// GET /users (200)
type Output200 struct {	// PaginatedOutput[[]main.User]
	hasMore boolean	// default: false

	cursor string

	nextCursor string

	items []struct {	// User
		name string
	}
}

schemas

name summary
PaginatedOutput__main.User
User

PaginatedOutput__main.User

type PaginatedOutput[[]main.User] struct {
	hasMore boolean	// default: false

	cursor string

	nextCursor string

	items []struct {	// User
		name string
	}
}

User

type User struct {
	name string
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL