diff options
Diffstat (limited to 'routers/api/v1/user')
-rw-r--r-- | routers/api/v1/user/app.go | 10 | ||||
-rw-r--r-- | routers/api/v1/user/gpg_key.go | 2 | ||||
-rw-r--r-- | routers/api/v1/user/key.go | 2 | ||||
-rw-r--r-- | routers/api/v1/user/user.go | 1 |
4 files changed, 15 insertions, 0 deletions
diff --git a/routers/api/v1/user/app.go b/routers/api/v1/user/app.go index 216190b0f0..f4870431c2 100644 --- a/routers/api/v1/user/app.go +++ b/routers/api/v1/user/app.go @@ -60,6 +60,15 @@ func CreateAccessToken(ctx *context.APIContext, form api.CreateAccessTokenOption // description: username of user // type: string // required: true + // - name: accessToken + // in: body + // schema: + // type: object + // required: + // - name + // properties: + // name: + // type: string // responses: // "200": // "$ref": "#/responses/AccessToken" @@ -95,6 +104,7 @@ func DeleteAccessToken(ctx *context.APIContext) { // in: path // description: token to be deleted // type: integer + // format: int64 // required: true // responses: // "204": diff --git a/routers/api/v1/user/gpg_key.go b/routers/api/v1/user/gpg_key.go index a955f3ff14..5301a0f2db 100644 --- a/routers/api/v1/user/gpg_key.go +++ b/routers/api/v1/user/gpg_key.go @@ -80,6 +80,7 @@ func GetGPGKey(ctx *context.APIContext) { // in: path // description: id of key to get // type: integer + // format: int64 // required: true // responses: // "200": @@ -143,6 +144,7 @@ func DeleteGPGKey(ctx *context.APIContext) { // in: path // description: id of key to delete // type: integer + // format: int64 // required: true // responses: // "204": diff --git a/routers/api/v1/user/key.go b/routers/api/v1/user/key.go index 41a514af5e..e5d1b08f0d 100644 --- a/routers/api/v1/user/key.go +++ b/routers/api/v1/user/key.go @@ -101,6 +101,7 @@ func GetPublicKey(ctx *context.APIContext) { // in: path // description: id of key to get // type: integer + // format: int64 // required: true // responses: // "200": @@ -172,6 +173,7 @@ func DeletePublicKey(ctx *context.APIContext) { // in: path // description: id of key to delete // type: integer + // format: int64 // required: true // responses: // "204": diff --git a/routers/api/v1/user/user.go b/routers/api/v1/user/user.go index 38576a7337..51d69aa2c3 100644 --- a/routers/api/v1/user/user.go +++ b/routers/api/v1/user/user.go @@ -31,6 +31,7 @@ func Search(ctx *context.APIContext) { // in: query // description: ID of the user to search for // type: integer + // format: int64 // - name: limit // in: query // description: maximum number of users to return |