-
Notifications
You must be signed in to change notification settings - Fork 3
Message Information REST API
{
"key": {
"type": "TASK",
"subtype": "REQUEST"
},
"purpose": "Generic task message",
"validAnswer": "Context specific answer",
"validAnswerTypes": [
{
"type": "TASK",
"subtype": "RESPONSE"
},
{
"type": "TASK",
"subtype": "ERROR"
}
],
"relatedMessages": [
{
"type": "TASK",
"subtype": "STATUS"
}
]
}
GET | `/?type=<type>&subtype=<subtype>` | Get the message information for a message with a specific type and subtype |
POST | `/` | Add new message information for a message with a specific type and subtype |
Returns the message information for a message with a specific type and subtype.
Parameter:
type required - defines the type of the message
subtype required - defines the subtype of the message
Respond:
200 message information instance is returned in the body
404 there is no message information for this type and subtype combination
Create a new message information for a given type and subtype (encoded in the body). If there is already such a message information, it will be overridden with this information.
Parameter:
body required - instance of a message information JSON object
Respond:
200 resource has been created and the created message information is returned in the body
Copyright (c) 2014 Technische Universitat Wien (TUW), Distributed Systems Group E184 (http://dsg.tuwien.ac.at)
This work was partially supported by the EU FP7 FET SmartSociety (http://www.smart-society-project.eu/).
SmartCom
Communication as a Service