Merge pull request #123 from lbryio/update-api-21-10
Updated the API doc to add NSFW filtering
This commit is contained in:
commit
f18155d52b
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": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
{
|
||||
"in": "query",
|
||||
"name": "nsfw",
|
||||
"description": "If search should return nsfw content or not.",
|
||||
"schema": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
],
|
||||
"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",
|
||||
"prettysize": "^1.1.0",
|
||||
"properties-reader": "^0.0.16",
|
||||
"redoc-cli": "^0.6.1",
|
||||
"redoc-cli": "^0.6.4",
|
||||
"request": "^2.81.0",
|
||||
"request-promise": "^4.2.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) size {Integer} The amount of results to return at max
|
||||
* - (query) from {Integer} The number to start from, good for pagination
|
||||
* - (query) nsfw {Boolean} If search should return nsfw content or not.
|
||||
* responses:
|
||||
* 200:
|
||||
* description: The search API returns an array of the found matching search items.
|
||||
|
|
Loading…
Reference in a new issue