Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateOrRenewApikey ¶
func CreateOrRenewApikey() gin.HandlerFunc
@Summary Create api key @Schemes @Description Create a api key @Tags users @Accept application/json @Produce application/json @Success 200 {object} apicontractsv2self.CreateOrRenewApikeyResponse @Failure 403 {object} rorerror.RorError @Failure 401 {object} rorerror.RorError @Failure 500 {object} rorerror.RorError @Router /v2/self/apikeys [post] @Param project body apicontractsv2self.CreateOrRenewApikeyRequest 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 /v2/self/apikeys/{apikeyId} [delete] @Param apikeyId path string true "apikeyId" @Security ApiKey || AccessToken
func GetSelf ¶
func GetSelf() gin.HandlerFunc
@Summary Get self @Schemes @Description Get user details @Tags users @Accept application/json @Produce application/json @Success 200 {object} apicontractsv2self.SelfData @Failure 403 {string} Forbidden @Failure 401 {string} Unauthorized @Failure 500 {string} Failure message @Router /v2/self [get] @Security ApiKey || AccessToken
Types ¶
This section is empty.