Query parameters
Lesson 9 of 20 · API.Micro
Filter, search and sort a collection with ?key=value.
{"id": 2, "name": "Latte", "price": 4, "category": "coffee"},
{"id": 3, "name": "Cappuccino", "price": 3.8, "category": "coffee"},
{"id": 4, "name": "Mocha", "price": 4.5, "category": "coffee"}
After ? come query parameters. They do not name a new resource; they shape the answer from the same collection.
Check yourself
What starts the query string?
Do it in the browser: a real REST APIs tool, a short mission and instant feedback. No install.
Start this lesson — free