Path Parameter Vs Query Parameter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2023 12:24 AM - edited 06-23-2023 12:53 AM
Hi Team,
Would like to know the difference between Path Parameter and Query Parameter with an example.
I saw many answers in the Google but here I am looking about your understanding. Please share your own experience.
Also, would like to know how to decide which of them to use when?
Please suggest.
Thanks,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2023 12:49 AM
Path params are used to identify a specific resource, while query params are used to filter and sort the data. Path params are typically used when retrieving a single resource, while query params are used when retrieving multiple resources.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2023 12:55 AM
This answer is already available in the Google but not able to understand it. I want to know what we think about it as per our experience. Quoting with an example will be helpful for me to understand.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2023 12:59 AM
I think it is really self explanatory though.
If you need to update/get 1 record, use path. If you need to update/get multiple records, use query.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-23-2023 01:07 AM
I can retrieve multiple records (via GET method) using Path parameters.