Skip to content

API

Endpoints


GET /api/v1/accounts/{accountid}/stations/{stationid}/realtimedata/

Stream station data via SSE

Description

Requires role: guest

Input parameters

Parameter In Type Default Nullable Description
accountid path string No
stationid path string No

Response 200 OK

{
    "measData": {
        "mtSampTime": "string"
    },
    "stationid": "string",
    "updateTS": "string"
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "",
    "properties": {
        "measData": {
            "$ref": "#/components/schemas/MeasData"
        },
        "stationid": {
            "title": "Stationid",
            "type": "string"
        },
        "updateTS": {
            "title": "Updatets",
            "type": "string"
        }
    },
    "required": [
        "stationid",
        "updateTS",
        "measData"
    ],
    "title": "SampleData",
    "type": "object"
}

GET /api/v1/accounts/{accountid}/stations/{stationid}/latestdata/

Get latest station data.

Description

Returns 204 NO CONTENT if no data available.

Requires role: guest

Input parameters

Parameter In Type Default Nullable Description
accountid path string No
stationid path string No

Response 200 OK

{
    "measData": {
        "mtSampTime": "string"
    },
    "stationid": "string",
    "updateTS": "string"
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "description": "",
    "properties": {
        "measData": {
            "$ref": "#/components/schemas/MeasData"
        },
        "stationid": {
            "title": "Stationid",
            "type": "string"
        },
        "updateTS": {
            "title": "Updatets",
            "type": "string"
        }
    },
    "required": [
        "stationid",
        "updateTS",
        "measData"
    ],
    "title": "SampleData",
    "type": "object"
}

Schemas

MeasData

Name Type
mtSampTime string