Documentation ¶
Index ¶
- func AllDefinitions(c *gin.Context)
- func AllReports(c *gin.Context)
- func CreateDefinition(c *gin.Context)
- func Definition(c *gin.Context)
- func GetHealth(c *gin.Context)
- func LoginUser(c *gin.Context)
- func Report(c *gin.Context)
- func Ws(c *gin.Context)
- type ErrorResponse
- type LoginRequest
- type LoginResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllDefinitions ¶
AllDefinitions godoc
@Summary Get all the definitions @Description Gets a list of all definitions @ID all-definitions @Tags definitions @Security ApiKeyAuth @param Authorization header string true "Authorization" @Produce json @Success 200 array definitions.Endpoint @Failure 500 {object} ErrorResponse @Router /definitions [get]
func AllReports ¶
AllReports godoc
@Summary Get all the reports @Description Gets a list of all reports that can be filtered with a query @ID all-reports @Tags reports @Produce json @Param where query string false "Query in the format: field.op.value (optional)" @Param format query string false "Return format: json or csv (default: json)" @Success 200 array pipeline.Report @Failure 500 {object} ErrorResponse @Router /reports [get]
func CreateDefinition ¶
CreateDefinition godoc
@Summary Create a definition @Description Creates a new definition @ID create-definition @Tags definitions @Security ApiKeyAuth @param Authorization header string true "Authorization" @Accept json @Produce json @Param definition body definitions.Endpoint true "Endpoint definition" @Success 200 {object} definitions.Endpoint @Failure 400 {object} ErrorResponse @Failure 500 {object} ErrorResponse @Router /definitions [post]
func Definition ¶
Definition godoc
@Summary Get one definition @Description Gets a single definition identified by his endpoint name @ID definition @Tags definitions @Security ApiKeyAuth @param Authorization header string true "Authorization" @Produce json @Param name path string true "Bluetooth" @Success 200 {object} definitions.Endpoint @Failure 404 {object} ErrorResponse @Failure 500 {object} ErrorResponse @Router /definitions/:name [get]
func GetHealth ¶
GetHealth godoc
@Summary Health check @Description Get the health status of the API @ID health @Tags health @Produce json @Success 200 @Router /health [get]
func LoginUser ¶ added in v1.1.0
LoginUser godoc
@Summary Logs a user in @Schemes LoginRequest LoginResponse ErrorResponse @Description Logs a user in using the provided credentials @ID login-user @Tags authentication @Accept application/json @Produces application/json @Param data body LoginRequest true "content" @Success 200 {object} LoginResponse @Failure 400 {object} ErrorResponse @Failure 401 {object} ErrorResponse @Failure 500 {object} ErrorResponse @Router /login [post]
func Report ¶
Report godoc
@Summary Get one report @Description Gets a single report identified by his id @ID report @Tags reports @Produce json @Param format query string false "json" @Param id path string true "qNg8rJX" @Success 200 {object} pipeline.Report @Failure 404 {object} ErrorResponse @Failure 500 {object} ErrorResponse @Router /reports/:id [get]
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
Message string `json:"message"`
}
type LoginRequest ¶ added in v1.1.0
type LoginResponse ¶ added in v1.1.0
type LoginResponse struct {
Token string `json:"token"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.