api

package
v0.0.0-...-88539f4 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStringByInt

func GetStringByInt(ctx iris.Context)

@Summary Add a new pet to the store @Description get string by ID @Accept json @Produce json @Param some_id path int true "Some ID" @Success 200 {string} string "ok" @Failure 400 {object} web.APIError "We need ID!!" @Failure 404 {object} web.APIError "Can not find ID" @Router /testapi/get-string-by-int/{some_id} [get]

func GetStructArrayByString

func GetStructArrayByString(ctx iris.Context)

@Description get struct array by ID @Accept json @Produce json @Param some_id path string true "Some ID" @Param offset query int true "Offset" @Param limit query int true "Offset" @Success 200 {string} string "ok" @Failure 400 {object} web.APIError "We need ID!!" @Failure 404 {object} web.APIError "Can not find ID" @Router /testapi/get-struct-array-by-string/{some_id} [get]

Types

type Pet3

type Pet3 struct {
	ID int `json:"id"`
}

Jump to

Keyboard shortcuts

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