bug989

package
v0.36.2 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListAdmins

func ListAdmins()

ListAdmins lists admins (swagger:operation form).

The full-YAML swagger:operation responses block DOES capture an inline description value — this is the supported way to add a description to a response without a dedicated response object.

swagger:operation GET /admins admin listAdmins

List all the admins.

--- responses:

200:
  description: OK
403:
  description: Unauthorized

func ListUsers

func ListUsers()

ListUsers lists all the users (legacy swagger:route form).

In a swagger:route Responses block a status code maps to a response name; an inline description value is not captured (the 403 below gets an empty description).

swagger:route GET /users user listUsers

List all the users.

Responses:
  200: listResponse
  401: errResponse
  403:
    description: Unauthorized

Types

type ErrResponse

type ErrResponse struct {
	// in: body
	Body struct {
		Message string `json:"message"`
	}
}

ErrResponse is the error response.

swagger:response errResponse

type ListResponse

type ListResponse struct {
	// in: body
	Body []string
}

ListResponse is the list response.

swagger:response listResponse

Jump to

Keyboard shortcuts

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