Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateApikey ¶
func CreateApikey() gin.HandlerFunc
@Summary Create api key @Schemes @Description Create a api key @Tags users @Accept application/json @Produce application/json @Success 200 {string} api key @Failure 403 {object} rorerror.RorError @Failure 401 {object} rorerror.RorError @Failure 500 {object} rorerror.RorError @Router /v1/users/self/apikeys [post] @Param project body apicontracts.ApiKey true "Api key" @Security ApiKey || AccessToken
func DeleteApiKey ¶
func DeleteApiKey() gin.HandlerFunc
@Summary Delete api key for user @Schemes @Description Delete a api key by id for user @Tags user @Accept application/json @Produce application/json @Success 200 {bool} bool @Failure 403 {object} rorerror.RorError @Failure 401 {object} rorerror.RorError @Failure 500 {object} rorerror.RorError @Router /v1/users/self/apikeys/{apikeyId} [delete] @Param apikeyId path string true "apikeyId" @Security ApiKey || AccessToken
func GetApiKeysByFilter ¶
func GetApiKeysByFilter() gin.HandlerFunc
@Summary Get apikeys by filter @Schemes @Description Get apikeys by filter @Tags users @Accept application/json @Produce application/json @Success 200 {object} apicontracts.PaginatedResult[apicontracts.ApiKey] @Failure 403 {object} rorerror.RorError @Failure 401 {object} rorerror.RorError @Failure 500 {object} rorerror.RorError @Router /v1/users/self/apikeys/filter [post] @Param filter body apicontracts.Filter true "Filter" @Security ApiKey || AccessToken
func GetUser ¶
func GetUser() gin.HandlerFunc
@Summary Get user @Schemes @Description Get user details @Tags users @Accept application/json @Produce application/json @Success 200 {object} apicontracts.User @Failure 403 {string} Forbidden @Failure 401 {string} Unauthorized @Failure 500 {string} Failure message @Router /v1/users/self [get] @Security ApiKey || AccessToken
Types ¶
This section is empty.