Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

What is the difference between Query Params and Path Variables?

Category: API Testing using Postman

Query Params or Query Parameters are used for sorting or filtering the resources. On the other hand, Path Variables are used for identifying specific resources.
Path params are part of the url where as query parameters are added after the ? mark symbol and separated from other query parameters by & symbol.

PathParam example
GET http://base-url/students/{roll-number}

QueryParam example
GET http://base-url/students?grade=10

Leave a Reply

Your email address will not be published. Required fields are marked *