API Reference (Work in Progress)
Base URL: https://tube.okis.dev
Line
Get Specific Line
Endpoint: /api/line/search
Description: Use this endpoint to search for a specific line by line name or line id.
HTTP Method: GET
Request Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
line | string | YES (line or id must have one) | The name of the line to search. |
id | string | YES (line or id must have one) | The ID of the line to search. |
Response Format:
The API will return a JSON object containing an array of line objects that match the search criteria. Each line object will include the following fields:
Field | Type | Description |
---|---|---|
Example Request:
GET https://tube.okis.dev/api/line/search?id=bakerloo
Example Response:
Station
Get Specific Station
Endpoint: /api/station/search
Description: Use this endpoint to search for a specific station by station name or station id.
HTTP Method: GET
Request Parameters:
Parameter | Type | Required | Description |
---|---|---|---|
station | string | YES (station or id must have one) | The name of the station to search. |
id | string | YES (station or id must have one) | The ID of the station to search. |
Response Format:
The API will return a JSON object containing an array of station objects that match the search criteria. Each station object will include the following fields:
Field | Type | Description |
---|---|---|
Example Request:
GET https://tube.okis.dev/api/station/search?id=940GZZLUEAC
Example Response: