Skip to content

Conversation

@kelsey-steven-ada
Copy link
Contributor

Asana Task

Update Wave docs to reflect that PUT/PATCH/DELETE endpoints should use 204 No Content as the expected response.

This PR addresses the wave documents, the tests for the affected endpoints are being updated in a separate PR that will also update the tests to use the newer DB syntax.

Copy link
Contributor

@apradoada apradoada left a comment

Choose a reason for hiding this comment

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

This looks good! There's one sentence that gets repeated a few times that felt a little clunky so I added in a potential alternate structure just in case you want to go with that!

and get this response:

`200 OK`
`204 No Content`
Copy link
Contributor

Choose a reason for hiding this comment

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

👍


The response should have a mimetype of "application/json" to keep our API response type consistent.

If after the `PATCH` request I fetch the task by sending a `GET` request to `/tasks/1`, I get this response:
Copy link
Contributor

Choose a reason for hiding this comment

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

Wording is just a little confusing here. Maybe something like:

Suggested change
If after the `PATCH` request I fetch the task by sending a `GET` request to `/tasks/1`, I get this response:
After I have made the 'PATCH' request, I can submit a 'GET' request to 'tasks/1, which will return the response:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This reads much easier, thanks for the suggestion!


The response should have a mimetype of "application/json" to keep our API response type consistent.

If after the `PATCH` request I fetch the task by sending a `GET` request to `/tasks/1`, I get this response:
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as before,

Suggested change
If after the `PATCH` request I fetch the task by sending a `GET` request to `/tasks/1`, I get this response:
After I have made the 'PATCH' request, I can submit a 'GET' request to 'tasks/1, which will return the response:


The response should have a mimetype of "application/json" to keep our API response type consistent.

If after the `PATCH` request I fetch the task by sending a `GET` request to `/tasks/1`, I get this response:
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as before. It's just a really clunky sentence to write!

Suggested change
If after the `PATCH` request I fetch the task by sending a `GET` request to `/tasks/1`, I get this response:
After I have made the 'PATCH' request, I can submit a 'GET' request to 'tasks/1, which will return the response:


The response should have a mimetype of "application/json" to keep our API response type consistent.

If after the `PATCH` request I fetch the task by sending a `GET` request to `/tasks/1`, I get this response:
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to take the suggestion, I'm just adding it again so its easier for you to commit the suggestions if you do!

Suggested change
If after the `PATCH` request I fetch the task by sending a `GET` request to `/tasks/1`, I get this response:
After I have made the 'PATCH' request, I can submit a 'GET' request to 'tasks/1, which will return the response:```

Update sentence around checking results after `PATCH` in wave 4 docs
@kelsey-steven-ada kelsey-steven-ada merged commit 6f6c6e6 into main Feb 25, 2025
@kelsey-steven-ada kelsey-steven-ada deleted the ks_update_wave_docs_for_flask_changes branch February 25, 2025 20:24
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