Skip to content

swagger api changes according to v5. #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
node_modules
*.log
.DS_Store
dist
11 changes: 6 additions & 5 deletions docs/swagger_api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ info:
description: "TOPCODER NOTIFICATIONS SERIES - NOTIFICATIONS SERVER"
version: "1.0.0"
host: "localhost:4000"
basePath: "/v5/notifications"
schemes:
- "http"
securityDefinitions:
Expand All @@ -14,7 +15,7 @@ securityDefinitions:
description: JWT Authentication. Provide API Key in the form 'Bearer <token>'.

paths:
/notifications:
/list:
get:
description:
list notifications
Expand Down Expand Up @@ -102,7 +103,7 @@ paths:
description: "Internal server error."
schema:
$ref: "#/definitions/Error"
/notifications/{id}/read:
/{id}/read:
put:
description:
mark notification(s) as read, id can be single id or '-' separated ids
Expand Down Expand Up @@ -138,7 +139,7 @@ paths:
description: "Internal server error."
schema:
$ref: "#/definitions/Error"
/notifications/read:
/read:
put:
description:
mark all notifications as read
Expand All @@ -155,7 +156,7 @@ paths:
description: "Internal server error."
schema:
$ref: "#/definitions/Error"
/notifications/{id}/seen:
/{id}/seen:
put:
description:
mark notification(s) as seen, id can be single id or '-' separated ids
Expand Down Expand Up @@ -191,7 +192,7 @@ paths:
description: "Internal server error."
schema:
$ref: "#/definitions/Error"
/notificationsettings:
/settings:
get:
description:
get notification settings
Expand Down