diff --git a/api/application.go b/api/application.go index ec5fe7d3..e7d8255a 100644 --- a/api/application.go +++ b/api/application.go @@ -125,6 +125,7 @@ func (a *ApplicationAPI) GetApplications(ctx *gin.Context) { // description: the application id // required: true // type: integer +// format: int64 // security: [clientTokenHeader: [], clientTokenQuery: [], basicAuth: []] // responses: // 200: @@ -189,6 +190,7 @@ func (a *ApplicationAPI) DeleteApplication(ctx *gin.Context) { // description: the application id // required: true // type: integer +// format: int64 // responses: // 200: // description: Ok @@ -255,6 +257,7 @@ func (a *ApplicationAPI) UpdateApplication(ctx *gin.Context) { // description: the application id // required: true // type: integer +// format: int64 // responses: // 200: // description: Ok diff --git a/api/client.go b/api/client.go index a8e42194..143b493f 100644 --- a/api/client.go +++ b/api/client.go @@ -46,6 +46,7 @@ type ClientAPI struct { // description: the client id // required: true // type: integer +// format: int64 // responses: // 200: // description: Ok @@ -181,6 +182,7 @@ func (a *ClientAPI) GetClients(ctx *gin.Context) { // description: the client id // required: true // type: integer +// format: int64 // security: [clientTokenHeader: [], clientTokenQuery: [], basicAuth: []] // responses: // 200: diff --git a/api/message.go b/api/message.go index b89989c3..5d954666 100644 --- a/api/message.go +++ b/api/message.go @@ -68,6 +68,7 @@ type pagingParams struct { // minimum: 0 // required: false // type: integer +// format: int64 // responses: // 200: // description: Ok @@ -139,6 +140,7 @@ func withPaging(ctx *gin.Context, f func(pagingParams *pagingParams)) { // description: the application id // required: true // type: integer +// format: int64 // - name: limit // in: query // description: the maximal amount of messages to return @@ -153,6 +155,7 @@ func withPaging(ctx *gin.Context, f func(pagingParams *pagingParams)) { // minimum: 0 // required: false // type: integer +// format: int64 // responses: // 200: // description: Ok @@ -233,6 +236,7 @@ func (a *MessageAPI) DeleteMessages(ctx *gin.Context) { // description: the application id // required: true // type: integer +// format: int64 // responses: // 200: // description: Ok @@ -280,6 +284,7 @@ func (a *MessageAPI) DeleteMessageWithApplication(ctx *gin.Context) { // description: the message id // required: true // type: integer +// format: int64 // responses: // 200: // description: Ok diff --git a/api/plugin.go b/api/plugin.go index 1d5b01ad..477793d7 100644 --- a/api/plugin.go +++ b/api/plugin.go @@ -101,6 +101,7 @@ func (c *PluginAPI) GetPlugins(ctx *gin.Context) { // description: the plugin id // required: true // type: integer +// format: int64 // security: [clientTokenHeader: [], clientTokenQuery: [], basicAuth: []] // responses: // 200: @@ -158,6 +159,7 @@ func (c *PluginAPI) EnablePlugin(ctx *gin.Context) { // description: the plugin id // required: true // type: integer +// format: int64 // security: [clientTokenHeader: [], clientTokenQuery: [], basicAuth: []] // responses: // 200: @@ -215,6 +217,7 @@ func (c *PluginAPI) DisablePlugin(ctx *gin.Context) { // description: the plugin id // required: true // type: integer +// format: int64 // security: [clientTokenHeader: [], clientTokenQuery: [], basicAuth: []] // responses: // 200: @@ -270,6 +273,7 @@ func (c *PluginAPI) GetDisplay(ctx *gin.Context) { // description: the plugin id // required: true // type: integer +// format: int64 // security: [clientTokenHeader: [], clientTokenQuery: [], basicAuth: []] // responses: // 200: @@ -336,6 +340,7 @@ func (c *PluginAPI) GetConfig(ctx *gin.Context) { // description: the plugin id // required: true // type: integer +// format: int64 // security: [clientTokenHeader: [], clientTokenQuery: [], basicAuth: []] // responses: // 200: diff --git a/api/user.go b/api/user.go index 79c2f70c..ded1b9bd 100644 --- a/api/user.go +++ b/api/user.go @@ -197,6 +197,7 @@ func (a *UserAPI) CreateUser(ctx *gin.Context) { // description: the user id // required: true // type: integer +// format: int64 // responses: // 200: // description: Ok @@ -246,6 +247,7 @@ func (a *UserAPI) GetUserByID(ctx *gin.Context) { // description: the user id // required: true // type: integer +// format: int64 // responses: // 200: // description: Ok @@ -349,6 +351,7 @@ func (a *UserAPI) ChangePassword(ctx *gin.Context) { // description: the user id // required: true // type: integer +// format: int64 // - name: body // in: body // description: the updated user diff --git a/docs/spec.json b/docs/spec.json index 61b28b8d..e82ca917 100644 --- a/docs/spec.json +++ b/docs/spec.json @@ -167,6 +167,7 @@ }, { "type": "integer", + "format": "int64", "description": "the application id", "name": "id", "in": "path", @@ -232,6 +233,7 @@ "parameters": [ { "type": "integer", + "format": "int64", "description": "the application id", "name": "id", "in": "path", @@ -303,6 +305,7 @@ }, { "type": "integer", + "format": "int64", "description": "the application id", "name": "id", "in": "path", @@ -373,6 +376,7 @@ "parameters": [ { "type": "integer", + "format": "int64", "description": "the application id", "name": "id", "in": "path", @@ -390,6 +394,7 @@ { "minimum": 0, "type": "integer", + "format": "int64", "description": "return all messages with an ID less than this value", "name": "since", "in": "query" @@ -451,6 +456,7 @@ "parameters": [ { "type": "integer", + "format": "int64", "description": "the application id", "name": "id", "in": "path", @@ -634,6 +640,7 @@ }, { "type": "integer", + "format": "int64", "description": "the client id", "name": "id", "in": "path", @@ -699,6 +706,7 @@ "parameters": [ { "type": "integer", + "format": "int64", "description": "the client id", "name": "id", "in": "path", @@ -899,6 +907,7 @@ { "minimum": 0, "type": "integer", + "format": "int64", "description": "return all messages with an ID less than this value", "name": "since", "in": "query" @@ -1053,6 +1062,7 @@ "parameters": [ { "type": "integer", + "format": "int64", "description": "the message id", "name": "id", "in": "path", @@ -1178,6 +1188,7 @@ "parameters": [ { "type": "integer", + "format": "int64", "description": "the plugin id", "name": "id", "in": "path", @@ -1250,6 +1261,7 @@ "parameters": [ { "type": "integer", + "format": "int64", "description": "the plugin id", "name": "id", "in": "path", @@ -1320,6 +1332,7 @@ "parameters": [ { "type": "integer", + "format": "int64", "description": "the plugin id", "name": "id", "in": "path", @@ -1384,6 +1397,7 @@ "parameters": [ { "type": "integer", + "format": "int64", "description": "the plugin id", "name": "id", "in": "path", @@ -1451,6 +1465,7 @@ "parameters": [ { "type": "integer", + "format": "int64", "description": "the plugin id", "name": "id", "in": "path", @@ -1677,6 +1692,7 @@ "parameters": [ { "type": "integer", + "format": "int64", "description": "the user id", "name": "id", "in": "path", @@ -1742,6 +1758,7 @@ "parameters": [ { "type": "integer", + "format": "int64", "description": "the user id", "name": "id", "in": "path", @@ -1813,6 +1830,7 @@ "parameters": [ { "type": "integer", + "format": "int64", "description": "the user id", "name": "id", "in": "path",