Merge pull request #123 from lbryio/update-api-21-10

Updated the API doc to add NSFW filtering
This commit is contained in:
filipnyquist 2018-10-21 22:42:47 +02:00 committed by GitHub
commit f18155d52b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 10391 additions and 137 deletions

File diff suppressed because one or more lines are too long

View file

@ -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

File diff suppressed because it is too large Load diff

View file

@ -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",

View file

@ -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.