diff options
author | zeripath <art27@cantab.net> | 2018-10-21 04:40:42 +0100 |
---|---|---|
committer | techknowlogick <hello@techknowlogick.com> | 2018-10-20 23:40:42 -0400 |
commit | 43f92339146224872383d2507ac9487f4857536b (patch) | |
tree | 22ec9ebc82074a241e116feb7301c09422db099f /routers/api/v1/org/hook.go | |
parent | 9b2fcadeef75d9e6256c0258d39751da71847d66 (diff) | |
download | gitea-43f92339146224872383d2507ac9487f4857536b.tar.gz gitea-43f92339146224872383d2507ac9487f4857536b.zip |
Fix Swagger JSON autogeneration issues. (#4845)
* Fix Swagger JSON.
Remove unnecessary schema references for the forbidden and empty responses
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix swagger API for CreateAccessToken
* Fix admin create org swagger
* Fix swagger for adminCreateRepo
* More swagger fixes
Set int64 format for those which are int64
Some more form fixes
* Fix swagger description of GET /repos/{owner}/{repo}/pulls
Diffstat (limited to 'routers/api/v1/org/hook.go')
-rw-r--r-- | routers/api/v1/org/hook.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/routers/api/v1/org/hook.go b/routers/api/v1/org/hook.go index 83d2a5e5ba..84559a958e 100644 --- a/routers/api/v1/org/hook.go +++ b/routers/api/v1/org/hook.go @@ -59,6 +59,7 @@ func GetHook(ctx *context.APIContext) { // in: path // description: id of the hook to get // type: integer + // format: int64 // required: true // responses: // "200": @@ -87,6 +88,11 @@ func CreateHook(ctx *context.APIContext, form api.CreateHookOption) { // description: name of the organization // type: string // required: true + // - name: body + // in: body + // required: true + // schema: + // "$ref": "#/definitions/CreateHookOption" // responses: // "201": // "$ref": "#/responses/Hook" @@ -117,7 +123,12 @@ func EditHook(ctx *context.APIContext, form api.EditHookOption) { // in: path // description: id of the hook to update // type: integer + // format: int64 // required: true + // - name: body + // in: body + // schema: + // "$ref": "#/definitions/EditHookOption" // responses: // "200": // "$ref": "#/responses/Hook" @@ -144,6 +155,7 @@ func DeleteHook(ctx *context.APIContext) { // in: path // description: id of the hook to delete // type: integer + // format: int64 // required: true // responses: // "204": |