Documentation ¶
Index ¶
- type Endpoint
- func (p *Endpoint) Create(w http.ResponseWriter, r *http.Request) (int, error)
- func (p *Endpoint) Destroy(w http.ResponseWriter, r *http.Request) (int, error)
- func (p *Endpoint) DestroyAll(w http.ResponseWriter, r *http.Request) (int, error)
- func (p *Endpoint) Index(w http.ResponseWriter, r *http.Request) (int, error)
- func (p *Endpoint) Routes(router component.IRouter)
- func (p *Endpoint) Show(w http.ResponseWriter, r *http.Request) (int, error)
- func (p *Endpoint) Update(w http.ResponseWriter, r *http.Request) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
Endpoint contains the dependencies.
func (*Endpoint) Create ¶
Create . swagger:route POST /v1/user user UserCreate
Create a user.
Security:
token:
Responses:
201: CreatedResponse 400: BadRequestResponse 401: UnauthorizedResponse 500: InternalServerErrorResponse
func (*Endpoint) Destroy ¶
Destroy . swagger:route DELETE /v1/user/{user_id} user UserDestroy
Delete a user.
Security:
token:
Responses:
200: OKResponse 400: BadRequestResponse 401: UnauthorizedResponse 500: InternalServerErrorResponse
func (*Endpoint) DestroyAll ¶
DestroyAll . swagger:route DELETE /v1/user user UserDestroyAll
Delete all users.
Security:
token:
Responses:
200: OKResponse 400: BadRequestResponse 401: UnauthorizedResponse 500: InternalServerErrorResponse
func (*Endpoint) Index ¶
Index . swagger:route GET /v1/user user UserIndex
Return all users.
Security:
token:
Responses:
200: UserIndexResponse 400: BadRequestResponse 401: UnauthorizedResponse 500: InternalServerErrorResponse
func (*Endpoint) Show ¶
Show . swagger:route GET /v1/user/{user_id} user UserShow
Return one user.
Security:
token:
Responses:
200: UserShowResponse 400: BadRequestResponse 401: UnauthorizedResponse 500: InternalServerErrorResponse
Click to show internal directories.
Click to hide internal directories.