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

Add 204 as a valid status code for DELETE operation in api.py #82

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

alexbartok
Copy link
Contributor

As per the 1Password Connect Server API reference, the expected status code for DELETE operation is 204. api.py would always expect a 200 status code, so a successful DELETE operation incorrectly registered as a failure. This commit adds 204 as a success status code. Ref: https://developer.1password.com/docs/connect/connect-api-reference/#delete-an-item

@alexbartok
Copy link
Contributor Author

This addresses issue #70

Copy link
Contributor

@volodymyrZotov volodymyrZotov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good and straightforward fix! 👍

@volodymyrZotov
Copy link
Contributor

@alexbartok It requires the commit to be signed In order for this to be merged. Could you please do that?

As per the 1Password Connect Server API reference, the expected status code for DELETE operation is 204. api.py would always expect a 200 status code, so a successful DELETE operation incorrectly register as a failure. This commit adds 204 as a success status code.
Ref: https://developer.1password.com/docs/connect/connect-api-reference/#delete-an-item

Co-authored-by: Eddy Filip <[email protected]>
@edif2008 edif2008 merged commit 9fcaa24 into 1Password:main Apr 2, 2024
8 checks passed
@github-actions github-actions bot mentioned this pull request Apr 2, 2024
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants