rest

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RestID = "id"
)

Rest variable names nolint

Variables

This section is empty.

Functions

func RegisterRoutes

func RegisterRoutes(clientCtx client.Context, r *mux.Router)

RegisterRoutes defines routes that get registered by the main application

Types

type CreateIdentityReq

type CreateIdentityReq struct {
	BaseReq     rest.BaseReq   `json:"base_req" yaml:"base_req"`
	ID          string         `json:"id" yaml:"id"`
	PubKey      string         `json:"pubkey" yaml:"pubkey"`
	PubKeyAlgo  string         `json:"pubkey_algo" yaml:"pubkey_algo"`
	Certificate string         `json:"certificate" yaml:"certificate"`
	Credentials string         `json:"credentials" yaml:"credentials"`
	Data        string         `json:"data" yaml:"data"`
	Owner       sdk.AccAddress `json:"owner" yaml:"owner"`
}

CreateIdentityReq defines the properties of an identity creation request's body.

type UpdateIdentityReq

type UpdateIdentityReq struct {
	BaseReq     rest.BaseReq   `json:"base_req" yaml:"base_req"`
	PubKey      string         `json:"pubkey" yaml:"pubkey"`
	PubKeyAlgo  string         `json:"pubkey_algo" yaml:"pubkey_algo"`
	Certificate string         `json:"certificate" yaml:"certificate"`
	Credentials string         `json:"credentials" yaml:"credentials"`
	Data        string         `json:"data" yaml:"data"`
	Owner       sdk.AccAddress `json:"owner" yaml:"owner"`
}

UpdateIdentityReq defines the properties of an identity update request's body.

Jump to

Keyboard shortcuts

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