@Summary Get a project @Description Get a project @Tags framework/projects @Accept application/json @Param projectName path string true "project name" @Success 200 {object} models.ApiOutputProject @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internal Erro
(c *gin.Context)
| 43 | // @Failure 500 {string} errcode.Error "Internal Error" |
| 44 | // @Router /projects/{projectName} [get] |
| 45 | func GetProject(c *gin.Context) { |
| 46 | projectName := c.Param("projectName") |
| 47 | |
| 48 | projectOutput, err := services.GetProject(projectName) |
| 49 | if err != nil { |
| 50 | shared.ApiOutputError(c, errors.Default.Wrap(err, "error getting project")) |
| 51 | return |
| 52 | } |
| 53 | shared.ApiOutputSuccess(c, projectOutput, http.StatusOK) |
| 54 | } |
| 55 | |
| 56 | // @Summary Get project exist check |
| 57 | // @Description Get project exist check |
nothing calls this directly
no test coverage detected