Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
@Param where query string false "field.op.value"
@Param format query string false "json"
@Success 200 array validation.Report
@Failure 500 {object} ErrorResponse
@Router /api/reports [get]
func GetHealth ¶
GetHealth godoc
@Summary Health check @Description Get the health status of the API @ID health @Tags health @Success 200 @Router /api/health [get]
func Report ¶
Report godoc
@Summary Get one report
@Description Gets a single report identified by his id
@ID report
@Tags reports
@Param format query string false "json"
@Param id path string true "qNg8rJX"
@Success 200 {object} validation.Report
@Failure 404 {object} ErrorResponse
@Failure 500 {object} ErrorResponse
@Router /api/reports/:id [get]
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
Message string `json:"message"`
}
Click to show internal directories.
Click to hide internal directories.