6
6
title : " bus-api"
7
7
contact : {}
8
8
host : " localhost:3000"
9
- basePath : " /api/v1 "
9
+ basePath : " /v5/bus "
10
10
schemes :
11
11
- " https"
12
12
consumes :
@@ -30,18 +30,41 @@ paths:
30
30
schema :
31
31
type : " object"
32
32
required :
33
- - " message"
34
- - " type"
33
+ - " topic"
34
+ - " originator"
35
+ - " timestamp"
36
+ - " mime-type"
37
+ - " payload"
35
38
properties :
36
- type :
39
+ topic :
37
40
type : " string"
38
- description : " the event type, should be a dot separated fully qualitied\
41
+ description : " topic name should be a dot separated fully qualified\
42
+ \ name i.e. domain.type.operation"
43
+ example : " notifications.action.email.project.topic.created"
44
+ originator :
45
+ type : " string"
46
+ description : " service repository name, from where message is published"
47
+ example : " tc-notifications"
48
+ timestamp :
49
+ type : " string"
50
+ description : " ISO 8601 timestamp at which message is published.\
39
51
\ name"
40
- example : " notifications.connect.project.update "
41
- message :
52
+ example : " 2018-04-13T00:00:00 "
53
+ mime-type :
42
54
type : " string"
43
- description : " the message, should be a JSON formatted string"
44
- example : " { \\\" test\\\" : \\\" test-value\\\" }"
55
+ description : " mime-type for 'payload'"
56
+ example : " application/json"
57
+ payload :
58
+ type : " object"
59
+ description : " actual payload depending on mime-type for consumer"
60
+ example :
61
+ data :
62
+ subject : " project topic created"
63
+ name : " xyz"
64
+ recipients :
65
+ - " tc@mailinator.com"
66
+ - " tc2@mailinator.com"
67
+ replyTo : " "
45
68
responses :
46
69
204 :
47
70
description : " OK"
@@ -87,6 +110,32 @@ paths:
87
110
description : " internal server error"
88
111
schema :
89
112
$ref : " #/definitions/Error"
113
+ /placeholders :
114
+ delete :
115
+ tags :
116
+ - " placeholders"
117
+ summary : " clear cache for placefolder"
118
+ description : " clear the cache for placefolder validation for email topics."
119
+ parameters : []
120
+ responses :
121
+ 200 :
122
+ description : " OK"
123
+ schema :
124
+ type : " array"
125
+ items :
126
+ type : " string"
127
+ 401 :
128
+ description : " missing, invalid, or expired token"
129
+ schema :
130
+ $ref : " #/definitions/Error"
131
+ 403 :
132
+ description : " the calling service is not allowed"
133
+ schema :
134
+ $ref : " #/definitions/Error"
135
+ 500 :
136
+ description : " internal server error"
137
+ schema :
138
+ $ref : " #/definitions/Error"
90
139
securityDefinitions :
91
140
Bearer :
92
141
type : " apiKey"
0 commit comments