0
0
Postmantesting~5 mins

Query parameters in Postman - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What are query parameters in an API request?
Query parameters are key-value pairs added to the end of a URL to send extra information to the server. They start after a '?' and are separated by '&'. For example, in https://api.example.com/data?user=123, user=123 is a query parameter.
Click to reveal answer
beginner
How do you add query parameters in Postman?
In Postman, you can add query parameters by clicking the 'Params' tab below the URL field. Then enter the key and value pairs. Postman automatically appends them to the URL.
Click to reveal answer
beginner
Why are query parameters useful in testing APIs?
Query parameters let you test different inputs without changing the main URL. You can check how the API responds to different values, filters, or options by changing these parameters.
Click to reveal answer
beginner
What is the correct format for multiple query parameters?
Multiple query parameters are added by separating each key-value pair with an '&'. For example: ?key1=value1&key2=value2. The order usually does not matter.
Click to reveal answer
intermediate
How does Postman handle encoding of query parameters?
Postman automatically encodes special characters in query parameters to ensure the URL is valid. For example, spaces become %20. This prevents errors when sending requests.
Click to reveal answer
In Postman, where do you add query parameters?
AIn the Tests tab
BIn the Body tab
CIn the Headers tab
DIn the Params tab below the URL
What symbol starts the query parameters in a URL?
A?
B#
C&
D/
How do you separate multiple query parameters in a URL?
A;
B?
C&
D:
Why is encoding query parameters important?
ATo prevent errors with special characters
BTo speed up the request
CTo make URLs shorter
DTo hide the parameters
Which of these is a valid query parameter format?
A#user=123&active=true
B?user=123&active=true
C/user=123&active=true
D?user=123;active=true
Explain what query parameters are and how you use them in Postman.
Think about how you add filters or options to a web address.
You got /4 concepts.
    Describe why encoding query parameters is necessary and how Postman helps with it.
    Consider what happens if you put spaces or symbols in a URL.
    You got /4 concepts.