api

package
v0.0.0-...-13db65c Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccount

func GetAccount(c *fiber.Ctx) error

GetAccount godoc @Summary Get Account @Description Get Account by ID @ID get-account-by-id @Accept json @Produce json @Param id path int true "Account ID" @Success 200 {object} Account @Failure 400 {object} HTTPError @Failure 404 {object} HTTPError @Failure 500 {object} HTTPError @Router /accounts/{id} [get]

func GetProfile

func GetProfile(c *fiber.Ctx) error

GetProfile godoc @Summary Get ProfileS @Description Gets user profile. @ID get-profile @Accept json @Produce json @Success 200 {object} Profile @Failure 400 {object} HTTPError @Failure 404 {object} HTTPError @Failure 500 {object} HTTPError @Router /profile [get]

func RegisterApiRouters

func RegisterApiRouters(app *fiber.App)

Types

type Account

type Account struct {
	Id string
}

type HTTPError

type HTTPError struct {
	Status  string
	Message string
}

type Profile

type Profile struct {
	Email string
}

Jump to

Keyboard shortcuts

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