Updated the API doc to add NSFW filtering #123
5 changed files with 10391 additions and 137 deletions
273
docs/index.html
273
docs/index.html
File diff suppressed because one or more lines are too long
|
@ -60,6 +60,14 @@
|
||||||
"schema": {
|
"schema": {
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"in": "query",
|
||||||
|
"name": "nsfw",
|
||||||
|
"description": "If search should return nsfw content or not.",
|
||||||
|
"schema": {
|
||||||
|
"type": "boolean"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"responses": {
|
"responses": {
|
||||||
|
|
10244
package-lock.json
generated
Normal file
10244
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -58,7 +58,7 @@
|
||||||
"ora": "^1.3.0",
|
"ora": "^1.3.0",
|
||||||
"prettysize": "^1.1.0",
|
"prettysize": "^1.1.0",
|
||||||
"properties-reader": "^0.0.16",
|
"properties-reader": "^0.0.16",
|
||||||
"redoc-cli": "^0.6.1",
|
"redoc-cli": "^0.6.4",
|
||||||
"request": "^2.81.0",
|
"request": "^2.81.0",
|
||||||
"request-promise": "^4.2.1",
|
"request-promise": "^4.2.1",
|
||||||
"winston": "^2.3.1",
|
"winston": "^2.3.1",
|
||||||
|
|
|
@ -19,6 +19,7 @@ router.get('/', LighthouseControllers.info);
|
||||||
* - (query) channel {String} The channel to search, if none, will return all search results
|
* - (query) channel {String} The channel to search, if none, will return all search results
|
||||||
* - (query) size {Integer} The amount of results to return at max
|
* - (query) size {Integer} The amount of results to return at max
|
||||||
* - (query) from {Integer} The number to start from, good for pagination
|
* - (query) from {Integer} The number to start from, good for pagination
|
||||||
|
* - (query) nsfw {Boolean} If search should return nsfw content or not.
|
||||||
* responses:
|
* responses:
|
||||||
* 200:
|
* 200:
|
||||||
* description: The search API returns an array of the found matching search items.
|
* description: The search API returns an array of the found matching search items.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue