Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMissingContent indicates an inexistent user. ErrMissingUser = restful.NewError(http.StatusConflict, "Missing user") // ErrMissingUserId indicates an user without an id. ErrMissingUserId = restful.NewError(http.StatusUnprocessableEntity, "No user id given") // ErrMissingUserPassword indicates an user without a password. ErrMissingUserPassword = restful.NewError(http.StatusUnprocessableEntity, "No user password given.") // ErrUserAlreadyExist indicates an existing user that should not be. ErrUserAlreadyExist = restful.NewError(http.StatusConflict, "User already exist") // ErrPatchFail indicates the json-patch update fails. ErrPatchFail = restful.NewError(http.StatusConflict, "Patch update fails") )
Functions ¶
This section is empty.
Types ¶
type CompanionAPI ¶
CompanionAPI registering with restful
func (*CompanionAPI) WebServices ¶
func (cApi *CompanionAPI) WebServices() []*restful.WebService
Register provide a restful.WebService from this API
type CreateUserReq ¶
CreateUserReq is a request to create a new UserData
type MeResponse ¶
type MeResponse struct {
Sub string
}
type UpdatePasswordReq ¶
type UpdatePasswordReq struct {
NewPassword string
}
Click to show internal directories.
Click to hide internal directories.