Skip to content

Commit

Permalink
updates wave 5 to focus on query params (agrees with learn activity)
Browse files Browse the repository at this point in the history
  • Loading branch information
anselrognlie committed May 23, 2024
1 parent 01b6a39 commit 2d0c395
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions project-directions/wave_05.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# Wave 05: Review and Refactor

Review the requirements for Wave 01 - 04
* Test the endpoints using postman
* Complete or fix any incomplete or broken endpoints
* Look for opportunities to refactor
## Update Endpoints

As time allows, add custom routes.
* Consider using query params
Update the read all planets endpoint with similar functionality presented in the Hello Books API:

As a client, I want to send a request...

1. ... to get a list of `planet`s, restricted to those with a match in the `description`, so that I can find a planet by a partial description.
2. ... to get a list of `planet`s, restricted to those with some kind of match to your additional attribute (e.g. larger/smaller than some size, partial match of a fun fact, etc), so that I can find planets with similar properties.

I should be able to combine the effects of the two filters in order to filter results by multiple properties at once.

If time allows, consider adding a non-filter query parameter, such as sorting by a specific attribute. Remember that sorting can be done by the database, so try not to sort the results in your application code.

0 comments on commit 2d0c395

Please sign in to comment.