-
Notifications
You must be signed in to change notification settings - Fork 1
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
[ITG-64,ITG-41,ITG-42] Routing and GET task implementation #6
[ITG-64,ITG-41,ITG-42] Routing and GET task implementation #6
Conversation
@blueprint.response(200, TaskSchema) | ||
def get(self, task_id): | ||
try: | ||
return Task.query.get(task_id) or abort(404) | ||
except DataError: | ||
abort(404) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- if a correct UUID is passed -> returns a result if it exists. If not, responds with 404 (line 30)
- if an incorrect UUID is passed ->
DataError
is caught and also responds with 404 (line 32)
@bkulawska please, test if your implementation of DELETE
works. I got some errors in an abort
function when I tried to pass message
kwarg as you did.
… github.com:it-goats/it-goats into feature/ITG-64-przekierowanie-do-szczegolow-zadania
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Details
GET /tasks/task_id
endpointreact-router-dom
Links