Skip to content

Commit

Permalink
Use int64 as input
Browse files Browse the repository at this point in the history
  • Loading branch information
jmattheis committed Jun 24, 2020
1 parent 348f96b commit 757fa17
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions api/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ type ClientAPI struct {
// description: the client id
// required: true
// type: integer
// format: int64
// responses:
// 200:
// description: Ok
Expand Down Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions api/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ type pagingParams struct {
// minimum: 0
// required: false
// type: integer
// format: int64
// responses:
// 200:
// description: Ok
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions api/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions api/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions docs/spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@
},
{
"type": "integer",
"format": "int64",
"description": "the application id",
"name": "id",
"in": "path",
Expand Down Expand Up @@ -232,6 +233,7 @@
"parameters": [
{
"type": "integer",
"format": "int64",
"description": "the application id",
"name": "id",
"in": "path",
Expand Down Expand Up @@ -303,6 +305,7 @@
},
{
"type": "integer",
"format": "int64",
"description": "the application id",
"name": "id",
"in": "path",
Expand Down Expand Up @@ -373,6 +376,7 @@
"parameters": [
{
"type": "integer",
"format": "int64",
"description": "the application id",
"name": "id",
"in": "path",
Expand All @@ -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"
Expand Down Expand Up @@ -451,6 +456,7 @@
"parameters": [
{
"type": "integer",
"format": "int64",
"description": "the application id",
"name": "id",
"in": "path",
Expand Down Expand Up @@ -634,6 +640,7 @@
},
{
"type": "integer",
"format": "int64",
"description": "the client id",
"name": "id",
"in": "path",
Expand Down Expand Up @@ -699,6 +706,7 @@
"parameters": [
{
"type": "integer",
"format": "int64",
"description": "the client id",
"name": "id",
"in": "path",
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -1053,6 +1062,7 @@
"parameters": [
{
"type": "integer",
"format": "int64",
"description": "the message id",
"name": "id",
"in": "path",
Expand Down Expand Up @@ -1178,6 +1188,7 @@
"parameters": [
{
"type": "integer",
"format": "int64",
"description": "the plugin id",
"name": "id",
"in": "path",
Expand Down Expand Up @@ -1250,6 +1261,7 @@
"parameters": [
{
"type": "integer",
"format": "int64",
"description": "the plugin id",
"name": "id",
"in": "path",
Expand Down Expand Up @@ -1320,6 +1332,7 @@
"parameters": [
{
"type": "integer",
"format": "int64",
"description": "the plugin id",
"name": "id",
"in": "path",
Expand Down Expand Up @@ -1384,6 +1397,7 @@
"parameters": [
{
"type": "integer",
"format": "int64",
"description": "the plugin id",
"name": "id",
"in": "path",
Expand Down Expand Up @@ -1451,6 +1465,7 @@
"parameters": [
{
"type": "integer",
"format": "int64",
"description": "the plugin id",
"name": "id",
"in": "path",
Expand Down Expand Up @@ -1677,6 +1692,7 @@
"parameters": [
{
"type": "integer",
"format": "int64",
"description": "the user id",
"name": "id",
"in": "path",
Expand Down Expand Up @@ -1742,6 +1758,7 @@
"parameters": [
{
"type": "integer",
"format": "int64",
"description": "the user id",
"name": "id",
"in": "path",
Expand Down Expand Up @@ -1813,6 +1830,7 @@
"parameters": [
{
"type": "integer",
"format": "int64",
"description": "the user id",
"name": "id",
"in": "path",
Expand Down

0 comments on commit 757fa17

Please sign in to comment.