Use int64 as input

This commit is contained in:
Jannis Mattheis 2020-06-24 18:32:35 +02:00
parent 348f96b891
commit 757fa17d26
6 changed files with 36 additions and 0 deletions

View File

@ -125,6 +125,7 @@ func (a *ApplicationAPI) GetApplications(ctx *gin.Context) {
// description: the application id // description: the application id
// required: true // required: true
// type: integer // type: integer
// format: int64
// security: [clientTokenHeader: [], clientTokenQuery: [], basicAuth: []] // security: [clientTokenHeader: [], clientTokenQuery: [], basicAuth: []]
// responses: // responses:
// 200: // 200:
@ -189,6 +190,7 @@ func (a *ApplicationAPI) DeleteApplication(ctx *gin.Context) {
// description: the application id // description: the application id
// required: true // required: true
// type: integer // type: integer
// format: int64
// responses: // responses:
// 200: // 200:
// description: Ok // description: Ok
@ -255,6 +257,7 @@ func (a *ApplicationAPI) UpdateApplication(ctx *gin.Context) {
// description: the application id // description: the application id
// required: true // required: true
// type: integer // type: integer
// format: int64
// responses: // responses:
// 200: // 200:
// description: Ok // description: Ok

View File

@ -46,6 +46,7 @@ type ClientAPI struct {
// description: the client id // description: the client id
// required: true // required: true
// type: integer // type: integer
// format: int64
// responses: // responses:
// 200: // 200:
// description: Ok // description: Ok
@ -181,6 +182,7 @@ func (a *ClientAPI) GetClients(ctx *gin.Context) {
// description: the client id // description: the client id
// required: true // required: true
// type: integer // type: integer
// format: int64
// security: [clientTokenHeader: [], clientTokenQuery: [], basicAuth: []] // security: [clientTokenHeader: [], clientTokenQuery: [], basicAuth: []]
// responses: // responses:
// 200: // 200:

View File

@ -68,6 +68,7 @@ type pagingParams struct {
// minimum: 0 // minimum: 0
// required: false // required: false
// type: integer // type: integer
// format: int64
// responses: // responses:
// 200: // 200:
// description: Ok // description: Ok
@ -139,6 +140,7 @@ func withPaging(ctx *gin.Context, f func(pagingParams *pagingParams)) {
// description: the application id // description: the application id
// required: true // required: true
// type: integer // type: integer
// format: int64
// - name: limit // - name: limit
// in: query // in: query
// description: the maximal amount of messages to return // description: the maximal amount of messages to return
@ -153,6 +155,7 @@ func withPaging(ctx *gin.Context, f func(pagingParams *pagingParams)) {
// minimum: 0 // minimum: 0
// required: false // required: false
// type: integer // type: integer
// format: int64
// responses: // responses:
// 200: // 200:
// description: Ok // description: Ok
@ -233,6 +236,7 @@ func (a *MessageAPI) DeleteMessages(ctx *gin.Context) {
// description: the application id // description: the application id
// required: true // required: true
// type: integer // type: integer
// format: int64
// responses: // responses:
// 200: // 200:
// description: Ok // description: Ok
@ -280,6 +284,7 @@ func (a *MessageAPI) DeleteMessageWithApplication(ctx *gin.Context) {
// description: the message id // description: the message id
// required: true // required: true
// type: integer // type: integer
// format: int64
// responses: // responses:
// 200: // 200:
// description: Ok // description: Ok

View File

@ -101,6 +101,7 @@ func (c *PluginAPI) GetPlugins(ctx *gin.Context) {
// description: the plugin id // description: the plugin id
// required: true // required: true
// type: integer // type: integer
// format: int64
// security: [clientTokenHeader: [], clientTokenQuery: [], basicAuth: []] // security: [clientTokenHeader: [], clientTokenQuery: [], basicAuth: []]
// responses: // responses:
// 200: // 200:
@ -158,6 +159,7 @@ func (c *PluginAPI) EnablePlugin(ctx *gin.Context) {
// description: the plugin id // description: the plugin id
// required: true // required: true
// type: integer // type: integer
// format: int64
// security: [clientTokenHeader: [], clientTokenQuery: [], basicAuth: []] // security: [clientTokenHeader: [], clientTokenQuery: [], basicAuth: []]
// responses: // responses:
// 200: // 200:
@ -215,6 +217,7 @@ func (c *PluginAPI) DisablePlugin(ctx *gin.Context) {
// description: the plugin id // description: the plugin id
// required: true // required: true
// type: integer // type: integer
// format: int64
// security: [clientTokenHeader: [], clientTokenQuery: [], basicAuth: []] // security: [clientTokenHeader: [], clientTokenQuery: [], basicAuth: []]
// responses: // responses:
// 200: // 200:
@ -270,6 +273,7 @@ func (c *PluginAPI) GetDisplay(ctx *gin.Context) {
// description: the plugin id // description: the plugin id
// required: true // required: true
// type: integer // type: integer
// format: int64
// security: [clientTokenHeader: [], clientTokenQuery: [], basicAuth: []] // security: [clientTokenHeader: [], clientTokenQuery: [], basicAuth: []]
// responses: // responses:
// 200: // 200:
@ -336,6 +340,7 @@ func (c *PluginAPI) GetConfig(ctx *gin.Context) {
// description: the plugin id // description: the plugin id
// required: true // required: true
// type: integer // type: integer
// format: int64
// security: [clientTokenHeader: [], clientTokenQuery: [], basicAuth: []] // security: [clientTokenHeader: [], clientTokenQuery: [], basicAuth: []]
// responses: // responses:
// 200: // 200:

View File

@ -197,6 +197,7 @@ func (a *UserAPI) CreateUser(ctx *gin.Context) {
// description: the user id // description: the user id
// required: true // required: true
// type: integer // type: integer
// format: int64
// responses: // responses:
// 200: // 200:
// description: Ok // description: Ok
@ -246,6 +247,7 @@ func (a *UserAPI) GetUserByID(ctx *gin.Context) {
// description: the user id // description: the user id
// required: true // required: true
// type: integer // type: integer
// format: int64
// responses: // responses:
// 200: // 200:
// description: Ok // description: Ok
@ -349,6 +351,7 @@ func (a *UserAPI) ChangePassword(ctx *gin.Context) {
// description: the user id // description: the user id
// required: true // required: true
// type: integer // type: integer
// format: int64
// - name: body // - name: body
// in: body // in: body
// description: the updated user // description: the updated user

View File

@ -167,6 +167,7 @@
}, },
{ {
"type": "integer", "type": "integer",
"format": "int64",
"description": "the application id", "description": "the application id",
"name": "id", "name": "id",
"in": "path", "in": "path",
@ -232,6 +233,7 @@
"parameters": [ "parameters": [
{ {
"type": "integer", "type": "integer",
"format": "int64",
"description": "the application id", "description": "the application id",
"name": "id", "name": "id",
"in": "path", "in": "path",
@ -303,6 +305,7 @@
}, },
{ {
"type": "integer", "type": "integer",
"format": "int64",
"description": "the application id", "description": "the application id",
"name": "id", "name": "id",
"in": "path", "in": "path",
@ -373,6 +376,7 @@
"parameters": [ "parameters": [
{ {
"type": "integer", "type": "integer",
"format": "int64",
"description": "the application id", "description": "the application id",
"name": "id", "name": "id",
"in": "path", "in": "path",
@ -390,6 +394,7 @@
{ {
"minimum": 0, "minimum": 0,
"type": "integer", "type": "integer",
"format": "int64",
"description": "return all messages with an ID less than this value", "description": "return all messages with an ID less than this value",
"name": "since", "name": "since",
"in": "query" "in": "query"
@ -451,6 +456,7 @@
"parameters": [ "parameters": [
{ {
"type": "integer", "type": "integer",
"format": "int64",
"description": "the application id", "description": "the application id",
"name": "id", "name": "id",
"in": "path", "in": "path",
@ -634,6 +640,7 @@
}, },
{ {
"type": "integer", "type": "integer",
"format": "int64",
"description": "the client id", "description": "the client id",
"name": "id", "name": "id",
"in": "path", "in": "path",
@ -699,6 +706,7 @@
"parameters": [ "parameters": [
{ {
"type": "integer", "type": "integer",
"format": "int64",
"description": "the client id", "description": "the client id",
"name": "id", "name": "id",
"in": "path", "in": "path",
@ -899,6 +907,7 @@
{ {
"minimum": 0, "minimum": 0,
"type": "integer", "type": "integer",
"format": "int64",
"description": "return all messages with an ID less than this value", "description": "return all messages with an ID less than this value",
"name": "since", "name": "since",
"in": "query" "in": "query"
@ -1053,6 +1062,7 @@
"parameters": [ "parameters": [
{ {
"type": "integer", "type": "integer",
"format": "int64",
"description": "the message id", "description": "the message id",
"name": "id", "name": "id",
"in": "path", "in": "path",
@ -1178,6 +1188,7 @@
"parameters": [ "parameters": [
{ {
"type": "integer", "type": "integer",
"format": "int64",
"description": "the plugin id", "description": "the plugin id",
"name": "id", "name": "id",
"in": "path", "in": "path",
@ -1250,6 +1261,7 @@
"parameters": [ "parameters": [
{ {
"type": "integer", "type": "integer",
"format": "int64",
"description": "the plugin id", "description": "the plugin id",
"name": "id", "name": "id",
"in": "path", "in": "path",
@ -1320,6 +1332,7 @@
"parameters": [ "parameters": [
{ {
"type": "integer", "type": "integer",
"format": "int64",
"description": "the plugin id", "description": "the plugin id",
"name": "id", "name": "id",
"in": "path", "in": "path",
@ -1384,6 +1397,7 @@
"parameters": [ "parameters": [
{ {
"type": "integer", "type": "integer",
"format": "int64",
"description": "the plugin id", "description": "the plugin id",
"name": "id", "name": "id",
"in": "path", "in": "path",
@ -1451,6 +1465,7 @@
"parameters": [ "parameters": [
{ {
"type": "integer", "type": "integer",
"format": "int64",
"description": "the plugin id", "description": "the plugin id",
"name": "id", "name": "id",
"in": "path", "in": "path",
@ -1677,6 +1692,7 @@
"parameters": [ "parameters": [
{ {
"type": "integer", "type": "integer",
"format": "int64",
"description": "the user id", "description": "the user id",
"name": "id", "name": "id",
"in": "path", "in": "path",
@ -1742,6 +1758,7 @@
"parameters": [ "parameters": [
{ {
"type": "integer", "type": "integer",
"format": "int64",
"description": "the user id", "description": "the user id",
"name": "id", "name": "id",
"in": "path", "in": "path",
@ -1813,6 +1830,7 @@
"parameters": [ "parameters": [
{ {
"type": "integer", "type": "integer",
"format": "int64",
"description": "the user id", "description": "the user id",
"name": "id", "name": "id",
"in": "path", "in": "path",