Processes a CloudEvent sent in Ditto Protocol
Provides an endpoint accepting CloudEvents via its HTTP protocol binding in Ditto Protocol JSON.
The endpoint can also directly be configured as a Knative eventing destination.
Find more documentation on that here.
Body
The Ditto Protocol JSON payload defining which command to process.
topicstringrequiredContains information about the contents of the payload:
- the affected Thing (namespace and Thing ID)
- the type of operation (command/event, create/retrieve/modify/delete)
org.eclipse.ditto/thing-1/things/twin/commands/modifyheadersobjectAdditional headers.
pathstringrequiredReferences the part of a Thing which is affected by this message.
/features/location/properties/longitudevalueobject | string | number | array | booleanThe value field contains the actual payload e.g. a sensor value.
Parameters
ce-specversionstringrequiredheaderThe CloudEvents "specversion".
ce-typestringrequiredheaderThe CloudEvents event "type".
ce-sourcestringrequiredheaderThe CloudEvents event "source".
ce-idstringrequiredheaderThe CloudEvents event "id".
ce-timestring<date-time>requiredheaderThe CloudEvents event "time".
ce-dataschemastringheaderThe CloudEvents event "dataschema". If provided, this must start with ditto:.
Response
The Ditto Protocol CloudEvent was successfully parsed, the authentication was valid and also reached the persistence.
The request could not be completed. Possible reasons:
- the CloudEvent could not be parsed as some mandatory CloudEvent headers were missing from the request
- the payload was missing from the CloudEvent
- the Ditto Protocol JSON message could not be parsed or was missing a required field
The request could not be completed due to missing authentication.
The request could not be completed. Possible reasons:
- the caller has insufficient permissions.
The request could not be completed. Possible reasons:
- the referenced thing does not exist.
- the caller has insufficient permissions to perform the contained Ditto Protocol command.
The request could not be completed due to timeout.
The Content-Type of the request was not supported.
Authorization
OpenIDConnectopenIdConnectOpenID Connect Discovery URL. The placeholder is replaced by Swagger UI when configured.
NginxBasichttp (basic)Eclipse Ditto sandbox demo user (demo1 ... demo9) + password (demo)
Bearerhttp (bearer)A JSON Web Token issued by a supported OAuth 2.0 Identity Provider.