rest

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router)

RegisterRoutes - Central function to define routes that get registered by the main application

Types

type DeleteProfileReq

type DeleteProfileReq struct {
	BaseReq rest.BaseReq `json:"base_req"`
}

Delete defines the properties of a profile deletion request's body

type SaveProfileReq added in v0.6.1

type SaveProfileReq struct {
	BaseReq    rest.BaseReq    `json:"base_req"`
	NewMoniker string          `json:"moniker"`
	Name       *string         `json:"name,omitempty"`
	Surname    *string         `json:"surname,omitempty"`
	Bio        *string         `json:"bio,omitempty"`
	Pictures   *types.Pictures `json:"pictures,omitempty"`
}

SaveProfileReq defines the properties of a profile save request's body

Jump to

Keyboard shortcuts

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