@@ -15,7 +15,7 @@ import (
1515
1616// ListHooks list an organziation's webhooks
1717func ListHooks (ctx * context.APIContext ) {
18- // swagger:route GET /orgs/{orgname}/hooks organization listOrgHooks
18+ // swagger:route GET /orgs/{orgname}/hooks organization orgListHooks
1919 //
2020 // Produces:
2121 // - application/json
@@ -39,7 +39,7 @@ func ListHooks(ctx *context.APIContext) {
3939
4040// GetHook get an organization's hook by id
4141func GetHook (ctx * context.APIContext ) {
42- // swagger:route GET /orgs/{orgname}/hooks/{id} organization getOrgHook
42+ // swagger:route GET /orgs/{orgname}/hooks/{id} organization orgGetHook
4343 //
4444 // Produces:
4545 // - application/json
@@ -60,7 +60,7 @@ func GetHook(ctx *context.APIContext) {
6060
6161// CreateHook create a hook for an organization
6262func CreateHook (ctx * context.APIContext , form api.CreateHookOption ) {
63- // swagger:route POST /orgs/{orgname}/hooks/ organization createOrgHook
63+ // swagger:route POST /orgs/{orgname}/hooks/ organization orgCreateHook
6464 //
6565 // Consumes:
6666 // - application/json
@@ -81,7 +81,7 @@ func CreateHook(ctx *context.APIContext, form api.CreateHookOption) {
8181
8282// EditHook modify a hook of a repository
8383func EditHook (ctx * context.APIContext , form api.EditHookOption ) {
84- // swagger:route PATCH /orgs/{orgname}/hooks/{id} organization editOrgHook
84+ // swagger:route PATCH /orgs/{orgname}/hooks/{id} organization orgEditHook
8585 //
8686 // Consumes:
8787 // - application/json
@@ -101,7 +101,7 @@ func EditHook(ctx *context.APIContext, form api.EditHookOption) {
101101
102102// DeleteHook delete a hook of an organization
103103func DeleteHook (ctx * context.APIContext ) {
104- // swagger:route DELETE /orgs/{orgname}/hooks/{id} organization editOrgHook
104+ // swagger:route DELETE /orgs/{orgname}/hooks/{id} organization orgDeleteHook
105105 //
106106 // Produces:
107107 // - application/json
0 commit comments