Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SignIn ¶
SignIn signs in a user SignIn godoc @Summary Signs in a user @Description Signs in a user @Tags signin @Accept json @Produce json @Param request body SignInRequest true "Signin Request Payload" @Success 200 {object} SignInResponse "User signed in successfully" @Failure 400 {object} GeneralErrorResponse "Error message" @Failure 401 {object} GeneralErrorResponse "Unauthorized" @Failure 404 {object} UserNotFoundResponse "User not found" @Failure 422 {object} SignInInvalidPasswordResponse "Invalid sign in request Password" @Failure 500 {object} GeneralErrorResponse "Internal Server Error" @Router /signin [post]
Types ¶
type GeneralErrorResponse ¶
type SignInRequest ¶
type SignInResponse ¶
type SignInResponse struct {
ID string `json:"id"`
Email string `json:"email"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
OrganizationID string `json:"organization_id"`
Role string `json:"role"`
APIKey string `json:"apikey"`
}
type UserNotFoundResponse ¶
type UserNotFoundResponse struct {
Message string `json:"message"`
}
Click to show internal directories.
Click to hide internal directories.