diff options
author | puthuparambil.aditya <aditya.puthuparambil@bell.ca> | 2022-01-10 12:58:37 +0000 |
---|---|---|
committer | puthuparambil.aditya <aditya.puthuparambil@bell.ca> | 2022-01-12 09:45:47 +0000 |
commit | cb23b1771e3fc552090f80791b852ce8ad05f150 (patch) | |
tree | 9ff89a6cbb8fcd39ebc1b710d151e8c89717f1ad /docs/_static/event-schema/cps-data-updated-event-schema.json | |
parent | 43a3982feeab703d165788e8871b435fc1ae63d9 (diff) |
Support operation field for CPS Temporal Query Output API
- Update in openapi.yaml to support operation field
- Repository test updated to test the operation field
- Rest api test updated
- Updates in documentation to include the operation field
Issue-ID: CPS-844
Signed-off-by: puthuparambil.aditya <aditya.puthuparambil@bell.ca>
Change-Id: If424c273b84b1f415ba706d0956f0841ce9c4196
Diffstat (limited to 'docs/_static/event-schema/cps-data-updated-event-schema.json')
-rw-r--r-- | docs/_static/event-schema/cps-data-updated-event-schema.json | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/docs/_static/event-schema/cps-data-updated-event-schema.json b/docs/_static/event-schema/cps-data-updated-event-schema.json new file mode 100644 index 0000000..94d8db8 --- /dev/null +++ b/docs/_static/event-schema/cps-data-updated-event-schema.json @@ -0,0 +1,91 @@ +{ + + "$schema": "https://json-schema.org/draft/2019-09/schema", + "$id": "urn:cps:org.onap.cps:data-updated-event-schema:v2", + + "$ref": "#/definitions/CpsDataUpdatedEvent", + + "definitions": { + + "CpsDataUpdatedEvent": { + "description": "The payload for CPS data updated event.", + "type": "object", + "properties": { + "schema": { + "description": "The schema, including its version, that this event adheres to. E.g. 'urn:cps:org.onap.cps:data-updated-event-schema:v99'.", + "type": "string", + "format": "uri" + }, + "id": { + "description": "The unique id identifying the event for the specified source. Producer must ensure that source + id is unique for each distinct event.", + "type": "string" + }, + "source": { + "description": "The source of the event. Producer must ensure that source + id is unique for each distinct event.", + "type": "string", + "format": "uri" + }, + "type": { + "description": "The type of the event.", + "type": "string" + }, + "content": { + "$ref": "#/definitions/Content" + } + }, + "required": [ + "schema", + "id", + "source", + "type", + "content" + ], + "additionalProperties": true + }, + + "Content": { + "description": "The event content.", + "type": "object", + "properties": { + "observedTimestamp": { + "description": "The timestamp when the data has been observed. The expected format is 'yyyy-MM-dd'T'HH:mm:ss.SSSZ'. Ex: '2020-12-01T00:00:00.000+0000' ", + "type": "string" + }, + "dataspaceName": { + "description": "The name of CPS Core dataspace the data belongs to.", + "type": "string" + }, + "schemaSetName": { + "description": "The name of CPS Core schema set the data adheres to.", + "type": "string" + }, + "anchorName": { + "description": "The name of CPS Core anchor the data is attached to.", + "type": "string" + }, + "operation": { + "description": "The operation on the data", + "type": "string", + "enum": ["CREATE", "UPDATE", "DELETE"] + }, + "data": { + "$ref": "#/definitions/Data" + } + }, + "required": [ + "observedTimestamp", + "dataspaceName", + "schemaSetName", + "anchorName" + ], + "additionalProperties": true + }, + + "Data": { + "description": "Data as json object.", + "type": "object" + } + + } + +}
\ No newline at end of file |