API Testing · Junior · Question 22 of 75
What is the difference between a path parameter and a query parameter?
- 1There's no difference; they are two names for one thing
- 2Path identifies a resource, query filters or modifies the result
- 3Path is for GET requests, query is only for POST requests
Show the answer
Correct answer: Path identifies a resource, query filters or modifies the result
Explanation
In /users/42/orders?status=paid&page=2, 42 is a path parameter and status, page are query parameters.