Concern-Tag : [Tag of Concern(e.g. weather)]
[Description of Concern]
[List of Parameters needed by many types]
[List of all supported request types]:
Type-Tag: [Type Tag]
- [Parameter1 Name] ([Parameter1 Type]): [Description]
- [Possible Value]: [Value Description]
- [Parameter2 Name]: ([Parameter2 Type]): [Description]
- [Parameter1 Name] ([Parameter1 Type]): [Description]
- [Possible Value]: [Value Description]
- [Parameter2 Name]: ([Parameter2 Type]): [Description]
Request
[Example for Request]
Response
[Example for Response]
[List of all supported subscription Types]:
Type-Tag: [Type Tag]
- [Parameter1 Name] ([Parameter1 Type]): [Description]
- [Possible Value]: [Value Description]
- [Parameter2 Name]: ([Parameter2 Type]): [Description]
[Example for message]
Example Definition
Concern-Tag : weather
This concern is all about the weather. Additional info should go here.
- condition (string): Describes the weather condition
- sun: The sun is out
- rain: It is raining
Type-Tag: weather_current
- location (string): Name of the city to check the weather for
- condition: see
Request
{
"type": "weather_current",
"payload": {
"location": "Stuttgart"
}
}
Response
{
"type": "weather_current",
"payload": {
"condition": "sun"
}
}
Type-Tag:: weather_changed
- location (string): Name of the city to check the weather for
- condition: see
- old-condition: see condition
{
"type": "weather_changed",
"payload": {
"location": "Stuttgart",
"condition": "sun",
"old-condition": "rain"
}
}