Fixed JSON errors in swagger.json
This commit is contained in:
parent
c1aa8eb075
commit
ee1b82b424
|
@ -18,8 +18,7 @@
|
|||
"http",
|
||||
"https"
|
||||
],
|
||||
"tags": [
|
||||
{
|
||||
"tags": [{
|
||||
"name": "form",
|
||||
"description": "Everything about your Forms"
|
||||
},
|
||||
|
@ -62,11 +61,11 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"api_key": []
|
||||
}
|
||||
"security": [{
|
||||
"api_key": [
|
||||
|
||||
]
|
||||
}]
|
||||
}
|
||||
},
|
||||
"/form/:form_id": {
|
||||
|
@ -88,11 +87,11 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"api_key": []
|
||||
}
|
||||
"security": [{
|
||||
"api_key": [
|
||||
|
||||
]
|
||||
}]
|
||||
},
|
||||
"post": {
|
||||
"tags": [
|
||||
|
@ -107,8 +106,7 @@
|
|||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"parameters": [{
|
||||
"in": "body",
|
||||
"name": "body",
|
||||
"description": "Form object that is to be created",
|
||||
|
@ -116,8 +114,7 @@
|
|||
"schema": {
|
||||
"$ref": "#/definitions/Form"
|
||||
}
|
||||
}
|
||||
],
|
||||
}],
|
||||
"responses": {
|
||||
"405": {
|
||||
"description": "Missing Form Input"
|
||||
|
@ -135,12 +132,13 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"api_key": []
|
||||
}
|
||||
],
|
||||
"security": [{
|
||||
"api_key": [
|
||||
|
||||
]
|
||||
}],
|
||||
"x-code-samples": [
|
||||
|
||||
]
|
||||
},
|
||||
"put": {
|
||||
|
@ -156,8 +154,7 @@
|
|||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"parameters": [{
|
||||
"in": "body",
|
||||
"name": "form",
|
||||
"description": "Form object that needs to be updated",
|
||||
|
@ -165,8 +162,7 @@
|
|||
"schema": {
|
||||
"$ref": "#/definitions/Form"
|
||||
}
|
||||
}
|
||||
],
|
||||
}],
|
||||
"responses": {
|
||||
"405": {
|
||||
"description": "Missing Form Input"
|
||||
|
@ -184,12 +180,13 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"api_key": []
|
||||
}
|
||||
],
|
||||
"security": [{
|
||||
"api_key": [
|
||||
|
||||
]
|
||||
}],
|
||||
"x-code-samples": [
|
||||
|
||||
]
|
||||
}
|
||||
},
|
||||
|
@ -224,11 +221,11 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"api_key": []
|
||||
}
|
||||
"security": [{
|
||||
"api_key": [
|
||||
|
||||
]
|
||||
}]
|
||||
}
|
||||
},
|
||||
"/users": {
|
||||
|
@ -245,8 +242,7 @@
|
|||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"parameters": [{
|
||||
"in": "body",
|
||||
"name": "body",
|
||||
"description": "User object that needs to be updated",
|
||||
|
@ -254,8 +250,7 @@
|
|||
"schema": {
|
||||
"$ref": "#/definitions/User"
|
||||
}
|
||||
}
|
||||
],
|
||||
}],
|
||||
"responses": {
|
||||
"500": {
|
||||
"description": "Could not Update User"
|
||||
|
@ -276,16 +271,16 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"api_key": []
|
||||
}
|
||||
],
|
||||
"security": [{
|
||||
"api_key": [
|
||||
|
||||
]
|
||||
}],
|
||||
"x-code-samples": [
|
||||
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
"definitions": {
|
||||
"User": {
|
||||
|
@ -345,7 +340,9 @@
|
|||
"superuser"
|
||||
]
|
||||
},
|
||||
"default": [ "user" ],
|
||||
"default": [
|
||||
"user"
|
||||
],
|
||||
"description": "Security Roles of User"
|
||||
}
|
||||
},
|
||||
|
@ -675,7 +672,7 @@
|
|||
"required": "Form must have a language"
|
||||
},
|
||||
"admin": {
|
||||
"$ref": "#/definitions/User",
|
||||
"$ref": "#/definitions/User"
|
||||
},
|
||||
"ipAddr": {
|
||||
"type": "string"
|
||||
|
@ -711,7 +708,6 @@
|
|||
"pdf": {
|
||||
"type": "string"
|
||||
},
|
||||
|
||||
"timeElapsed": {
|
||||
"type": "number"
|
||||
},
|
||||
|
@ -728,7 +724,6 @@
|
|||
"title"
|
||||
],
|
||||
"properties": {
|
||||
|
||||
"title": {
|
||||
"type": "string",
|
||||
"required": "Form Title cannot be blank",
|
||||
|
@ -811,7 +806,7 @@
|
|||
"buttons": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
type: "Button"
|
||||
"type": "Button"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue