Skip to content

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
@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