forked from loafle/openapi-generator-original
updated response types
This commit is contained in:
parent
a7f12c04e6
commit
a841f94273
@ -7,7 +7,7 @@
|
|||||||
"host": "api.wordnik.com",
|
"host": "api.wordnik.com",
|
||||||
"basePath": "/v4",
|
"basePath": "/v4",
|
||||||
"schemes": [
|
"schemes": [
|
||||||
"http"
|
"https"
|
||||||
],
|
],
|
||||||
"security": [
|
"security": [
|
||||||
{
|
{
|
||||||
@ -33,7 +33,10 @@
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "success"
|
"description": "Usage statistics for the supplied API key",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/ApiTokenStatus"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
"description": "No token supplied."
|
"description": "No token supplied."
|
||||||
@ -69,7 +72,10 @@
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "success"
|
"description": "A valid authentication token",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/AuthenticationToken"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"403": {
|
"403": {
|
||||||
"description": "Account not available."
|
"description": "Account not available."
|
||||||
@ -105,7 +111,10 @@
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "success"
|
"description": "A valid authentication token",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/AuthenticationToken"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"403": {
|
"403": {
|
||||||
"description": "Account not available."
|
"description": "Account not available."
|
||||||
@ -135,7 +144,10 @@
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "success"
|
"description": "The logged-in user",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/User"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"403": {
|
"403": {
|
||||||
"description": "Not logged in."
|
"description": "Not logged in."
|
||||||
@ -180,7 +192,13 @@
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "success"
|
"description": "success",
|
||||||
|
"schema": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/WordList"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"403": {
|
"403": {
|
||||||
"description": "Not authenticated."
|
"description": "Not authenticated."
|
||||||
@ -223,7 +241,10 @@
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "success"
|
"description": "success",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/WordObject"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
"description": "Invalid word supplied."
|
"description": "Invalid word supplied."
|
||||||
@ -265,7 +286,13 @@
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "success"
|
"description": "success",
|
||||||
|
"schema": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/AudioFile"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
"description": "Invalid word supplied."
|
"description": "Invalid word supplied."
|
||||||
@ -338,7 +365,13 @@
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "success"
|
"description": "success",
|
||||||
|
"schema": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/Definition"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
"description": "Invalid word supplied."
|
"description": "Invalid word supplied."
|
||||||
@ -374,7 +407,13 @@
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "success"
|
"description": "success",
|
||||||
|
"schema": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
"description": "Invalid word supplied."
|
"description": "Invalid word supplied."
|
||||||
@ -433,7 +472,8 @@
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "success"
|
"description": "success",
|
||||||
|
"$ref": "/definitions/ExampleSearchResults"
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
"description": "Invalid word supplied."
|
"description": "Invalid word supplied."
|
||||||
@ -482,7 +522,10 @@
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "success"
|
"description": "success",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/FrequencySummary"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
"description": "Invalid word supplied."
|
"description": "Invalid word supplied."
|
||||||
@ -533,7 +576,13 @@
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "success"
|
"description": "success",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/Syllable"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
"description": "Invalid word supplied."
|
"description": "Invalid word supplied."
|
||||||
@ -582,7 +631,13 @@
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "success"
|
"description": "success",
|
||||||
|
"schema": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/definitions/Bigram"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
"description": "Invalid word supplied."
|
"description": "Invalid word supplied."
|
||||||
@ -637,7 +692,13 @@
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "success"
|
"description": "success",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/TextPron"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
"description": "Invalid word supplied."
|
"description": "Invalid word supplied."
|
||||||
@ -685,7 +746,13 @@
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "success"
|
"description": "success",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/Related"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
"description": "Invalid word supplied."
|
"description": "Invalid word supplied."
|
||||||
@ -718,7 +785,10 @@
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "success"
|
"description": "success",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/Example"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
"description": "Invalid word supplied."
|
"description": "Invalid word supplied."
|
||||||
@ -751,7 +821,10 @@
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "success"
|
"description": "success",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/WordList"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
"description": "Invalid ID supplied"
|
"description": "Invalid ID supplied"
|
||||||
@ -954,7 +1027,13 @@
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "success"
|
"description": "success",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/WordListWord"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
"description": "Invalid ID supplied"
|
"description": "Invalid ID supplied"
|
||||||
@ -1044,7 +1123,10 @@
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "success"
|
"description": "success",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/WordList"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
"description": "Invalid WordList supplied or mandatory fields are missing"
|
"description": "Invalid WordList supplied or mandatory fields are missing"
|
||||||
@ -1138,7 +1220,10 @@
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "success"
|
"description": "success",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/WordObject"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"404": {
|
"404": {
|
||||||
"description": "No word found."
|
"description": "No word found."
|
||||||
@ -1248,7 +1333,13 @@
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "success"
|
"description": "success",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/WordObject"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
"description": "Invalid term supplied."
|
"description": "Invalid term supplied."
|
||||||
@ -1387,7 +1478,10 @@
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "success"
|
"description": "success",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/DefinitionSearchResults"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
"description": "Invalid term supplied."
|
"description": "Invalid term supplied."
|
||||||
@ -1498,7 +1592,10 @@
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"200": {
|
"200": {
|
||||||
"description": "success"
|
"description": "success",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/WordSearchResults"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
"description": "Invalid query supplied."
|
"description": "Invalid query supplied."
|
||||||
@ -1524,7 +1621,10 @@
|
|||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
"default": {
|
"default": {
|
||||||
"description": "success"
|
"description": "success",
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/definitions/WordOfTheDay"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user