-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathasync-api.yml
58 lines (53 loc) · 2.22 KB
/
async-api.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
asyncapi: 3.0.0
info:
title: HMPPS Case Notes
version: 1.0.0
description: Reflect changes to Case Notes
servers:
development:
host: "hmpps-domain-events-dev.live-1.cloud-platform.service.justice.gov.uk"
protocol: sqs
description: Development Environment
preproduction:
host: "hmpps-domain-events-preprod.live-1.cloud-platform.service.justice.gov.uk"
protocol: sqs
description: Pre-production Environment
production:
host: "hmpps-domain-events-prod.live-1.cloud-platform.service.justice.gov.uk"
protocol: sqs
description: Production Environment
components:
messages:
person.case-note.created:
$ref: https://raw.githubusercontent.com/ministryofjustice/hmpps-domain-events/main/spec/schemas/case-notes/person-case-note-created.yaml
person.case-note.updated:
$ref: https://raw.githubusercontent.com/ministryofjustice/hmpps-domain-events/main/spec/schemas/case-notes/person-case-note-updated.yaml
person.case-note.moved:
$ref: https://raw.githubusercontent.com/ministryofjustice/hmpps-domain-events/main/spec/schemas/case-notes/person-case-note-moved.yaml
person.case-note.deleted:
$ref: https://raw.githubusercontent.com/ministryofjustice/hmpps-domain-events/main/spec/schemas/case-notes/person-case-note-deleted.yaml
channels:
hmpps-domain-events:
description: HMPPS domain events SNS topic
bindings:
sns:
name: domainevents
messages:
person.case-note.created:
$ref: '#/components/messages/person.case-note.created'
person.case-note.updated:
$ref: '#/components/messages/person.case-note.updated'
person.case-note.moved:
$ref: '#/components/messages/person.case-note.moved'
person.case-note.deleted:
$ref: '#/components/messages/person.case-note.deleted'
operations:
publish-event:
action: send
channel:
$ref: '#/channels/hmpps-domain-events'
messages:
- $ref: '#/channels/hmpps-domain-events/messages/person.case-note.created'
- $ref: '#/channels/hmpps-domain-events/messages/person.case-note.updated'
- $ref: '#/channels/hmpps-domain-events/messages/person.case-note.moved'
- $ref: '#/channels/hmpps-domain-events/messages/person.case-note.deleted'