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

Return the body of user request as output #109

Conversation

malkin0xb8
Copy link
Collaborator

This will close #103

Decided to output the body of the request instead of HTTP Response or Returning True, this makes it more consistent.
@malkin0xb8 malkin0xb8 added the enhancement New feature or request label Sep 3, 2024
@malkin0xb8 malkin0xb8 linked an issue Sep 3, 2024 that may be closed by this pull request
Copy link
Owner

@Jordan-Prescott Jordan-Prescott left a comment

Choose a reason for hiding this comment

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

I hate me too haha, if you could change this to the status code its all good from there.

@@ -32,8 +32,6 @@ def delete(self, endpoint, data=None):

Copy link
Owner

Choose a reason for hiding this comment

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

I've had a think about this and I've landed on just returning the status code. I think returning what is sent it pointless because the developer either has that already or it will be wiped from memory straight away in a loop. Lets other some more functionality but keep it light with the status code.

Change it to 'return response.status_code'

@Jordan-Prescott Jordan-Prescott merged commit 46b1dbd into main Sep 17, 2024
@Jordan-Prescott Jordan-Prescott deleted the 103-return-true-if-no-errors-for-the-methods-that-return-nothing branch September 17, 2024 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging this pull request may close these issues.

Return True if no errors for the methods that return nothing
2 participants