unusualarchive/api
2023-05-21 03:27:48 +02:00
..
__init__.py ADD: Api endpoint for search suggestions 2023-05-18 22:42:07 +02:00
README.md „api/README.md“ ändern 2023-05-20 18:01:26 +02:00
urls.py Implemented search page and fixed off-by-one in status 2023-05-21 03:27:48 +02:00
views.py sage_stream back in business 2023-05-20 00:34:10 +02:00

SearchAPI

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.