Skip to content
This repository has been archived by the owner on Apr 12, 2019. It is now read-only.

Latest commit

 

History

History
142 lines (91 loc) · 2.16 KB

CONCER_TEMPLATE.md

File metadata and controls

142 lines (91 loc) · 2.16 KB

Concern Definition ([Concern Name])

Concern-Tag : [Tag of Concern(e.g. weather)]

[Description of Concern]

General Parameters

[List of Parameters needed by many types]

Request Types

[List of all supported request types]:

[Type Name]

Type-Tag: [Type Tag]

Request

  • [Parameter1 Name] ([Parameter1 Type]): [Description]
    • [Possible Value]: [Value Description]
  • [Parameter2 Name]: ([Parameter2 Type]): [Description]

Response

  • [Parameter1 Name] ([Parameter1 Type]): [Description]
    • [Possible Value]: [Value Description]
  • [Parameter2 Name]: ([Parameter2 Type]): [Description]

Example

Request

[Example for Request]

Response

[Example for Response]

[List of all supported subscription Types]:

Subscription Types

[Type Name]

Type-Tag: [Type Tag]

Message

  • [Parameter1 Name] ([Parameter1 Type]): [Description]
    • [Possible Value]: [Value Description]
  • [Parameter2 Name]: ([Parameter2 Type]): [Description]

Example

[Example for message]

Example Definition

Concern Definition (Weather)

Concern-Tag : weather

This concern is all about the weather. Additional info should go here.

General Parameters

  • condition (string): Describes the weather condition
    • sun: The sun is out
    • rain: It is raining

Request Types

Current Weather

Type-Tag: weather_current

Request

  • location (string): Name of the city to check the weather for

Response

  • condition: see

Example

Request

{
  "type": "weather_current",
  "payload": {
    "location": "Stuttgart"
  }
}

Response

{
  "type": "weather_current",
  "payload": {
    "condition": "sun"
  }
}

Subscription Types

Weather Changed

Type-Tag:: weather_changed

Message

  • location (string): Name of the city to check the weather for
  • condition: see
  • old-condition: see condition

Example

{
  "type": "weather_changed",
  "payload": {
    "location": "Stuttgart",
    "condition": "sun",
    "old-condition": "rain"
  }
}