Merge branch 'master' of https://forge.redroom.link/yves/sqldb-ws
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
{
|
||||
"swagger": "2.0",
|
||||
"info": {
|
||||
"title": "SqlDB WS API",
|
||||
"description": "Generic database access API\n",
|
||||
"title": "beego Test API",
|
||||
"description": "beego has a very cool tools to autogenerate documents for your API\n",
|
||||
"version": "1.0.0",
|
||||
"termsOfService": "https://www.irt-saintexupery.com/",
|
||||
"contact": {
|
||||
@ -43,7 +43,7 @@
|
||||
"description": ""
|
||||
},
|
||||
"403": {
|
||||
"description": "user already exist"
|
||||
"description": "user already exists"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -91,7 +91,7 @@
|
||||
"description": ""
|
||||
},
|
||||
"403": {
|
||||
"description": "user not exist"
|
||||
"description": "user does not exist"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -101,14 +101,14 @@
|
||||
"tags": [
|
||||
"s"
|
||||
],
|
||||
"description": "get list table\n\u003cbr\u003e",
|
||||
"operationId": "SchemaController.GetTable",
|
||||
"description": "Get database tables list\n\u003cbr\u003e",
|
||||
"operationId": "SchemaController.GetTablesList",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "{string} success !"
|
||||
},
|
||||
"403": {
|
||||
"description": "no table"
|
||||
"500": {
|
||||
"description": "query error"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -118,7 +118,7 @@
|
||||
"tags": [
|
||||
"s"
|
||||
],
|
||||
"description": "get table schema\n\u003cbr\u003e",
|
||||
"description": "Get table schema\n\u003cbr\u003e",
|
||||
"operationId": "SchemaController.GetSchema",
|
||||
"parameters": [
|
||||
{
|
||||
@ -133,7 +133,7 @@
|
||||
"200": {
|
||||
"description": "success !"
|
||||
},
|
||||
"403": {
|
||||
"204": {
|
||||
"description": "no table"
|
||||
}
|
||||
}
|
||||
@ -281,7 +281,7 @@
|
||||
{
|
||||
"in": "path",
|
||||
"name": "columns",
|
||||
"description": "Name of the columns (separate with a comma)",
|
||||
"description": "Columns names (separate with a comma)",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
@ -314,7 +314,7 @@
|
||||
{
|
||||
"in": "path",
|
||||
"name": "columns",
|
||||
"description": "Name of the columns (separate with a comma)",
|
||||
"description": "Columns names (separated with a comma)",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
@ -354,7 +354,7 @@
|
||||
{
|
||||
"in": "path",
|
||||
"name": "columns",
|
||||
"description": "Name of the columns (separate with a comma)",
|
||||
"description": "Columns names (separated with a comma)",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
@ -364,6 +364,13 @@
|
||||
"description": "SQL restriction",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"in": "path",
|
||||
"name": "sortkeys",
|
||||
"description": "Order by: columns names (separated with a comma)",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
@ -394,7 +401,7 @@
|
||||
{
|
||||
"in": "path",
|
||||
"name": "columns",
|
||||
"description": "Name of the columns (separate with a comma)",
|
||||
"description": "Columns names (separated with a comma)",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
@ -404,6 +411,20 @@
|
||||
"description": "SQL restriction",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"in": "path",
|
||||
"name": "sortkeys",
|
||||
"description": "Order by: columns names (separated with a comma)",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"in": "path",
|
||||
"name": "dir",
|
||||
"description": "asc or desc",
|
||||
"required": true,
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
|
@ -1,8 +1,8 @@
|
||||
swagger: "2.0"
|
||||
info:
|
||||
title: SqlDB WS API
|
||||
title: beego Test API
|
||||
description: |
|
||||
Generic database access API
|
||||
beego has a very cool tools to autogenerate documents for your API
|
||||
version: 1.0.0
|
||||
termsOfService: https://www.irt-saintexupery.com/
|
||||
contact:
|
||||
@ -76,20 +76,20 @@ paths:
|
||||
tags:
|
||||
- s
|
||||
description: |-
|
||||
get list table
|
||||
Get database tables list
|
||||
<br>
|
||||
operationId: SchemaController.GetTable
|
||||
operationId: SchemaController.GetTablesList
|
||||
responses:
|
||||
"200":
|
||||
description: '{string} success !'
|
||||
"403":
|
||||
description: no table
|
||||
"500":
|
||||
description: query error
|
||||
/s/{table}:
|
||||
get:
|
||||
tags:
|
||||
- s
|
||||
description: |-
|
||||
get table schema
|
||||
Get table schema
|
||||
<br>
|
||||
operationId: SchemaController.GetSchema
|
||||
parameters:
|
||||
@ -101,7 +101,7 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: success !
|
||||
"403":
|
||||
"204":
|
||||
description: no table
|
||||
/t/{table}:
|
||||
get:
|
||||
@ -270,6 +270,11 @@ paths:
|
||||
description: SQL restriction
|
||||
required: true
|
||||
type: string
|
||||
- in: path
|
||||
name: sortkeys
|
||||
description: 'Order by: columns names (separate with a comma)'
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{string} success !'
|
||||
@ -299,6 +304,16 @@ paths:
|
||||
description: SQL restriction
|
||||
required: true
|
||||
type: string
|
||||
- in: path
|
||||
name: sortkeys
|
||||
description: 'Order by: columns names (separate with a comma)'
|
||||
required: true
|
||||
type: string
|
||||
- in: path
|
||||
name: dir
|
||||
description: asc or desc
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: '{string} success !'
|
||||
|
Reference in New Issue
Block a user