Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewDashboardHandler ¶
func NewDashboardHandler(dashboardController controller.IController) *Handler
func (*Handler) GetAllChartsByRepository ¶
func (h *Handler) GetAllChartsByRepository(w http.ResponseWriter, r *http.Request)
GetAllChartsByRepository @Tags Dashboard @Security ApiKeyAuth @Description Get all charts of dashboard screen @ID GetAllChartsByRepository @Accept json @Produce json @Param workspaceID path string true "workspaceID of the workspace" @Param repositoryID path string true "repositoryID of the repository" @Param initialDate query string false "initialDate query string" @Param finalDate query string false "finalDate query string" @Success 200 {object} entities.Response{content=dashboard.Response} "OK" @Failure 400 {object} entities.Response{content=string} "BAD REQUEST" @Failure 500 {object} entities.Response{content=string} "INTERNAL SERVER ERROR" @Router /analytic/dashboard/{workspaceID}/{repositoryID} [get]
func (*Handler) GetAllChartsByWorkspace ¶
func (h *Handler) GetAllChartsByWorkspace(w http.ResponseWriter, r *http.Request)
GetAllChartsByWorkspace @Tags Dashboard @Security ApiKeyAuth @Description Get all charts of dashboard screen @ID GetAllChartsByWorkspace @Accept json @Produce json @Param workspaceID path string true "workspaceID of the workspace" @Param initialDate query string false "initialDate query string" @Param finalDate query string false "finalDate query string" @Success 200 {object} entities.Response{content=dashboard.Response} "OK" @Failure 400 {object} entities.Response{content=string} "BAD REQUEST" @Failure 500 {object} entities.Response{content=string} "INTERNAL SERVER ERROR" @Router /analytic/dashboard/{workspaceID} [get]