File tree Expand file tree Collapse file tree 2 files changed +28
-32
lines changed Expand file tree Collapse file tree 2 files changed +28
-32
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ func ListHooks(ctx *context.APIContext) {
55
55
56
56
// GetHook get an organization's hook by id
57
57
func GetHook (ctx * context.APIContext ) {
58
- // swagger:operation GET /hooks/{id} admin adminGetHook
58
+ // swagger:operation GET /admin/ hooks/{id} admin adminGetHook
59
59
// ---
60
60
// summary: Get a hook
61
61
// produces:
@@ -87,7 +87,7 @@ func GetHook(ctx *context.APIContext) {
87
87
88
88
// CreateHook create a hook for an organization
89
89
func CreateHook (ctx * context.APIContext ) {
90
- // swagger:operation POST /admin/hooks/ admin adminCreateHook
90
+ // swagger:operation POST /admin/hooks admin adminCreateHook
91
91
// ---
92
92
// summary: Create a hook
93
93
// consumes:
Original file line number Diff line number Diff line change 167
167
"$ref": "#/responses/HookList"
168
168
}
169
169
}
170
- }
171
- },
172
- "/admin/hooks/": {
170
+ },
173
171
"post": {
174
172
"consumes": [
175
173
"application/json"
200
198
}
201
199
},
202
200
"/admin/hooks/{id}": {
201
+ "get": {
202
+ "produces": [
203
+ "application/json"
204
+ ],
205
+ "tags": [
206
+ "admin"
207
+ ],
208
+ "summary": "Get a hook",
209
+ "operationId": "adminGetHook",
210
+ "parameters": [
211
+ {
212
+ "type": "integer",
213
+ "format": "int64",
214
+ "description": "id of the hook to get",
215
+ "name": "id",
216
+ "in": "path",
217
+ "required": true
218
+ }
219
+ ],
220
+ "responses": {
221
+ "200": {
222
+ "$ref": "#/responses/Hook"
223
+ }
224
+ }
225
+ },
203
226
"patch": {
204
227
"consumes": [
205
228
"application/json"
726
749
}
727
750
}
728
751
},
729
- "/hooks/{id}": {
730
- "get": {
731
- "produces": [
732
- "application/json"
733
- ],
734
- "tags": [
735
- "admin"
736
- ],
737
- "summary": "Get a hook",
738
- "operationId": "adminGetHook",
739
- "parameters": [
740
- {
741
- "type": "integer",
742
- "format": "int64",
743
- "description": "id of the hook to get",
744
- "name": "id",
745
- "in": "path",
746
- "required": true
747
- }
748
- ],
749
- "responses": {
750
- "200": {
751
- "$ref": "#/responses/Hook"
752
- }
753
- }
754
- }
755
- },
756
752
"/markdown": {
757
753
"post": {
758
754
"consumes": [
You can’t perform that action at this time.
0 commit comments