Added two simple examples to README.
Added two small examples for search and autocomplete so people can try it out without digging into the API doc.
This commit is contained in:
parent
1e39ffc61a
commit
da02023c7a
1 changed files with 9 additions and 2 deletions
11
README.md
11
README.md
|
@ -11,8 +11,15 @@ The official lighthouse instance is live at https://lighthouse.lbry.io
|
||||||
1. Elasticsearch as a backend db server.
|
1. Elasticsearch as a backend db server.
|
||||||
2. LBRYimport, an importer that imports the claims into the Elasticsearch database.
|
2. LBRYimport, an importer that imports the claims into the Elasticsearch database.
|
||||||
3. Lighthouse API server, which serves the API and does all calculations about what to send to the end user.
|
3. Lighthouse API server, which serves the API and does all calculations about what to send to the end user.
|
||||||
### API Documentation
|
### API Documentation / Usage example
|
||||||
|
To make a simple search by string:
|
||||||
|
```
|
||||||
|
https://lighthouse.lbry.io/search?s=stringtosearch
|
||||||
|
```
|
||||||
|
To get autocomplete suggestions:
|
||||||
|
```
|
||||||
|
https://lighthouse.lbry.io/autocomplete?s=stringtocomp
|
||||||
|
```
|
||||||
[The full API documentation](https://lbryio.github.io/lighthouse/)
|
[The full API documentation](https://lbryio.github.io/lighthouse/)
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
Loading…
Reference in a new issue