Skip to content
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

feat(api): Add idempotent subscriber credential update operation #5211

Merged
merged 3 commits into from
Feb 19, 2024

Conversation

rifont
Copy link
Contributor

@rifont rifont commented Feb 19, 2024

What change does this PR introduce?

  • Modify the existing PUT /:subscriberId/credentials operation to be idempotent
  • Add a new PATCH /:subscriberId/credentials operation that appends to the deviceTokens array

Why was this change needed?

  • We are not currently following the PUT specification for the endpoint in question
  • API clients would like to be able to append deviceTokens to an existing list

Other information (Screenshots)

OpenAPI spec including new PATCH operation, alongside existing PUT operation
image

Copy link

linear bot commented Feb 19, 2024

Copy link

netlify bot commented Feb 19, 2024

Deploy Preview for dev-web-novu failed.

Name Link
🔨 Latest commit e1e7310
🔍 Latest deploy log https://app.netlify.com/sites/dev-web-novu/deploys/65d38e1d89a9990008bfae10

@jainpawan21 jainpawan21 merged commit 53d0d35 into next Feb 19, 2024
21 of 25 checks passed
@jainpawan21 jainpawan21 deleted the ent-37-idempotent-subscriber-credential-update branch February 19, 2024 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants