

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Still calibrating
click for more info
Not enough gems
Cost: 6 gems
1: URL Paths
incomplete
2: RESTful APIs
incomplete
3: URL Query Parameters
incomplete
4: The Documentation of an HTTP Server
incomplete
5: Multiple Query Parameters
incomplete
This lesson's interactive features are locked, please to keep using them
A URL's query parameters appear next in the URL structure but are not always present - they're optional. For example:
https://www.google.com/search?q=boot.dev
q=boot.dev is a query parameter. Like headers, query parameters are key / value pairs. In this case, q is the key and boot.dev is the value.
The backend team building Jello's server has added support for query parameters! The server offers a sort parameter that can be optionally added by appending ?sort=fieldName to the end of the URL, where fieldName is the property of the resource you want the response records sorted by.
We are creating a job board and want to sort our user records by their years of experience.
For example, sorting by the experience property means using experience as the field name.
Update the get_users function's full_url with a query parameter that will sort the user records by experience.