Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

API use

dansch94 edited this page May 16, 2015 · 4 revisions

?search=
ist eine Volltextsuche auf das Feld full_name

Beispiel:
http://localhost:8000/api/v1/station/?search=tannenberg

Antwort vom Server:

HTTP 200 OK
Vary: Accept
Content-Type: application/json
Allow: GET, POST, HEAD, OPTIONS

{
    "count": 2,
    "next": null,
    "previous": null,
    "results": [
        {
            "url": "http://localhost:8000/api/v1/station/5004689/",
            "created": "2015-05-16T12:35:49.029117Z",
            "modified": "2015-05-16T12:35:49.029295Z",
            "name": "Tannenberg",
            "full_name": "Böblingen Tannenberg"
        },
        {
            "url": "http://localhost:8000/api/v1/station/5004331/",
            "created": "2015-05-16T12:35:44.394691Z",
            "modified": "2015-05-16T12:35:44.394868Z",
            "name": "Tannenbergstraße",
            "full_name": "Kirchheim (T) Tannenbergstraße"
        }
    ]
}
Clone this wiki locally