userscontroller

package
v0.0.0-...-14e2bc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL