Skip to content

Commit bd2dc04

Browse files
committed
updated notification
1 parent 78c104a commit bd2dc04

File tree

1 file changed

+32
-24
lines changed

1 file changed

+32
-24
lines changed

incidentRestAPI.yml

Lines changed: 32 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,12 +1089,12 @@ paths:
10891089
type: string
10901090
example: 'failure'
10911091

1092-
/callback:
1092+
/ receive updates about new or changed incidents:
10931093
post:
1094-
summary: Notification via POST request
1095-
description: Sends a POST request to the partner's callback URL when an incident changes containing the complete incident.
1094+
summary: Receive info on new or changed incidents.
1095+
description: Sends a POST request to an endpoint provided by the partnersystem containing the new or changed incident data.
10961096
requestBody:
1097-
description: The incident data sent to the callback URL.
1097+
description: The incident data sent to the endpoint provided to us by the partnersystem.
10981098
content:
10991099
application/json:
11001100
schema:
@@ -1118,33 +1118,41 @@ paths:
11181118
incident_id:
11191119
type: string
11201120
example: 'f806607f87a6f9d03efcec0000000000'
1121+
action:
1122+
type: string
1123+
description: value describing what the causing action of the notification incidents. Possible values are 'new', 'update', 'worknote', 'comment', 'attachment', 'cancel'.
1124+
example: 'new'
11211125
responses:
11221126
'200':
1123-
description: Callback request description. Actual response handling is managed by the receiving system.
1127+
description: Callback request description. Actual response handling is managed by the receiving system. We expect a 2xx Status if successful.
11241128
'default':
1125-
description: General response. Actual response handling is managed by the receiving system.
1129+
description: General response. Actual response handling is managed by the receiving system. We expect a 2xx Status if successful.
11261130

1127-
get:
1128-
summary: Notification via GET request
1129-
description: Sends a GET request to the partner's callback URL with incidentId and callbackUrl as query parameters when an incident changes. This URL can be queried with GET to then receive the changed incident.
1130-
parameters:
1131-
- name: incidentId
1132-
in: query
1133-
description: The ID of the incident that changed.
1134-
schema:
1135-
type: string
1136-
example: f806607f87a6f9d03efcec0000000000
1137-
- name: callbackUrl
1138-
in: query
1139-
description: The readymade URL leading to the changed incident.
1140-
schema:
1141-
type: string
1142-
example: https://<MyIT-url>/api/x_ssagd_inc_rest/rest/incident?partnerId=systemX&incidentId=f806607f87a6f9d03efcec0000000000
1131+
post:
1132+
summary: Similar to the above method, but instead of the complete incident data, we only send a callback URL for you to GET.
1133+
description: Sends a POST request to an endpoint provided by the partnersystem containing a callback URL, the partnersystem can use to get the incident data in their own time.
1134+
requestBody:
1135+
description: The incident data sent to the endpoint provided to us by the partnersystem.
1136+
content:
1137+
application/json:
1138+
schema:
1139+
incident_id:
1140+
description: The ID of the incident that changed.
1141+
type: string
1142+
example: f806607f87a6f9d03efcec0000000000
1143+
callbackUrl:
1144+
description: The readymade URL leading to the changed incident.
1145+
type: string
1146+
example: https://<MyIT-url>/api/x_ssagd_inc_rest/rest/incident?partnerId=systemX&incidentId=f806607f87a6f9d03efcec0000000000
1147+
action:
1148+
type: string
1149+
description: value describing what the causing action of the notification incidents. Possible values are 'new', 'update', 'worknote', 'comment', 'attachment', 'cancel'.
1150+
example: 'new'
11431151
responses:
11441152
'200':
1145-
description: Callback request description. Actual response handling is managed by the receiving system.
1153+
description: Callback request description. Actual response handling is managed by the receiving system. We expect a 2xx Status if successful.
11461154
'default':
1147-
description: General response. Actual response handling is managed by the receiving system.
1155+
description: General response. Actual response handling is managed by the receiving system. We expect a 2xx Status if successful.
11481156

11491157
components:
11501158
securitySchemes:

0 commit comments

Comments
 (0)