fix: align namespaceID param

This commit is contained in:
Dominik Pschenitschni 2023-04-05 13:13:56 +02:00 committed by konrad
parent cd90db3117
commit 7ada82ea92
1 changed files with 2 additions and 2 deletions

View File

@ -36,13 +36,13 @@ import (
// @tags namespace // @tags namespace
// @Accept json // @Accept json
// @Produce json // @Produce json
// @Param id path int true "Namespace ID" // @Param namespaceID path int true "Namespace ID"
// @Security JWTKeyAuth // @Security JWTKeyAuth
// @Success 200 {array} models.Project "The projects." // @Success 200 {array} models.Project "The projects."
// @Failure 403 {object} models.Message "No access to that namespace." // @Failure 403 {object} models.Message "No access to that namespace."
// @Failure 404 {object} models.Message "The namespace does not exist." // @Failure 404 {object} models.Message "The namespace does not exist."
// @Failure 500 {object} models.Message "Internal error" // @Failure 500 {object} models.Message "Internal error"
// @Router /namespaces/{id}/projects [get] // @Router /namespaces/{namespaceID}/projects [get]
func GetProjectsByNamespaceID(c echo.Context) error { func GetProjectsByNamespaceID(c echo.Context) error {
s := db.NewSession() s := db.NewSession()
defer s.Close() defer s.Close()