Skip to content

Commit 541c132

Browse files
author
sachin-maheshwari
authored
Merge pull request #24 from topcoder-platform/feature/v5-support
swagger api changes according to v5.
2 parents bedb61c + 0959396 commit 541c132

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
node_modules
33
*.log
44
.DS_Store
5+
dist

docs/swagger_api.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ info:
44
description: "TOPCODER NOTIFICATIONS SERIES - NOTIFICATIONS SERVER"
55
version: "1.0.0"
66
host: "localhost:4000"
7+
basePath: "/v5/notifications"
78
schemes:
89
- "http"
910
securityDefinitions:
@@ -14,7 +15,7 @@ securityDefinitions:
1415
description: JWT Authentication. Provide API Key in the form 'Bearer <token>'.
1516

1617
paths:
17-
/notifications:
18+
/list:
1819
get:
1920
description:
2021
list notifications
@@ -102,7 +103,7 @@ paths:
102103
description: "Internal server error."
103104
schema:
104105
$ref: "#/definitions/Error"
105-
/notifications/{id}/read:
106+
/{id}/read:
106107
put:
107108
description:
108109
mark notification(s) as read, id can be single id or '-' separated ids
@@ -138,7 +139,7 @@ paths:
138139
description: "Internal server error."
139140
schema:
140141
$ref: "#/definitions/Error"
141-
/notifications/read:
142+
/read:
142143
put:
143144
description:
144145
mark all notifications as read
@@ -155,7 +156,7 @@ paths:
155156
description: "Internal server error."
156157
schema:
157158
$ref: "#/definitions/Error"
158-
/notifications/{id}/seen:
159+
/{id}/seen:
159160
put:
160161
description:
161162
mark notification(s) as seen, id can be single id or '-' separated ids
@@ -191,7 +192,7 @@ paths:
191192
description: "Internal server error."
192193
schema:
193194
$ref: "#/definitions/Error"
194-
/notificationsettings:
195+
/settings:
195196
get:
196197
description:
197198
get notification settings

0 commit comments

Comments
 (0)