r2weather API 1.0.0

This is an API definition for https://r2weather.ru. Any authorized application can submit Meteor-M2 packets using this API.

Submit decoded VCDU from LRPT protocol
PUT    Submit data

Parameters

Name Value
receptionTime * required
integer  (int64)
(path)

Timestamp when the data was received by the ground station. Not necessary NTP synchronized. Timezone: GMT

Content-Encoding string  (header)

If uploaded data is gzipped, then set this header to 'gzip'

Request body * required

Binary data with decoded VCDU. See protocol specification at: https://en.wikipedia.org/wiki/Low-rate_picture_transmission

Responses

Code Description
200

On success

{
  "errorMessage" : "string",
  "id" : 0,
  "status" : "string"
}
400

If required parameters are missing or invalid

{
  "general" : "Internal server error",
  "fieldName" : "Cannot be empty"
}
401

If Authorization header is invalid or missing

{
  "errorMessage" : "string",
  "id" : 0,
  "status" : "string"
}

Schemas


{
  "status" : {
    "type" : "string",
    "description" : "Enum. Can be any of: ERROR, SUCCESS"
  },
  "errorMessage" : {
    "type" : "string",
    "description" : "Returned in case of status=ERROR"
  },
  "id" : {
    "type" : "integer",
    "description" : "Returned in case of status=SUCCESS and any insert operations",
    "format" : "int64"
  }
}
{
  "general" : {
    "type" : "string",
    "description" : "If general error occur",
    "example" : "Internal server error"
  },
  "fieldName" : {
    "type" : "string",
    "description" : "Error related to the particular fieldName",
    "example" : "Cannot be empty"
  }
}