Search Interview Questions
| More than 3000 questions in repository.|
There are more than 900 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Web Service - Interview Questions and Answers for 'Path vs query param' - 1 question(s) found - Order By Newest|
|Ans. If the number of params is quite large , I would prefer to either split it with majority of it in query params or all in query params.|
If the params are all mandatory , I would keep it as path params. If it's optional , I would keep it as query param so as to keep consistent base url.
If we don't require the param name , then they can be kept as path params as query params necessitates the usage of param name.
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  Web Service  Get service  path vs query param  Rest  query param  path param|
| In this url |
What is protocol , domain , path and query param ?
|Difference between Query param and path param ?|