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