Skip to content

Commit 19ed830

Browse files
committed
Fix unit test
1 parent 0df053f commit 19ed830

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

routers/api/v1/projects/project.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func CreateRepoProject(ctx *context.APIContext) {
140140
}
141141

142142
func GetProject(ctx *context.APIContext) {
143-
// swagger:operation GET /projects/{id} project projectGetProject
143+
// swagger:operation GET /projects/{project_id} project projectGetProject
144144
// ---
145145
// summary: Get project
146146
// produces:
@@ -177,7 +177,7 @@ func GetProject(ctx *context.APIContext) {
177177
}
178178

179179
func UpdateProject(ctx *context.APIContext) {
180-
// swagger:operation PATCH /projects/{id} project projectUpdateProject
180+
// swagger:operation PATCH /projects/{project_id} project projectUpdateProject
181181
// ---
182182
// summary: Update project
183183
// produces:
@@ -232,7 +232,7 @@ func UpdateProject(ctx *context.APIContext) {
232232
}
233233

234234
func DeleteProject(ctx *context.APIContext) {
235-
// swagger:operation DELETE /projects/{id} project projectDeleteProject
235+
// swagger:operation DELETE /projects/{project_id} project projectDeleteProject
236236
// ---
237237
// summary: Delete project
238238
// parameters:
@@ -258,7 +258,7 @@ func DeleteProject(ctx *context.APIContext) {
258258
}
259259

260260
func ListUserProjects(ctx *context.APIContext) {
261-
// swagger:operation GET /user/projects project projectListUserProjects
261+
// swagger:operation GET /users/{user}/projects project projectListUserProjects
262262
// ---
263263
// summary: List user projects
264264
// produces:

0 commit comments

Comments
 (0)