SearchAPI ins Wiki hinzugefügt.
commit
1d8b437675
26
SearchAPI.md
Normal file
26
SearchAPI.md
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
Willkommen im Wiki.
|
||||
|
||||
# SearchAPI
|
||||
|
||||
## Search
|
||||
`GET /api/search/?param=value`
|
||||
|
||||
### Parameters
|
||||
| Param | Value |
|
||||
|-|-|
|
||||
| `q` | The search query string. |
|
||||
| `limit` | A limit on the number of objects to be returned. Default is 6. |
|
||||
|
||||
### Response
|
||||
```
|
||||
[
|
||||
{
|
||||
"id": 1,
|
||||
"name": "Video 1"
|
||||
},
|
||||
{...}
|
||||
]
|
||||
```
|
||||
|
||||
### Examples
|
||||
> `GET /api/search/?q=foo&limit=3` will return the first 3 videos with "foo" in their name.
|
||||
Loading…
Reference in New Issue
Block a user