1

I have created a mock server. I access it via {{url}}/mock1 and the response body I have mocked is the below.

[
    {
        "ID": 1,
        "LETTER": "A"
    },
    {
        "ID": 2,
        "LETTER": "B"
    },
    {
        "ID": 3,
        "LETTER": "C"
    }
]

How can I simulate passing some input parameters in the GET request? For example, if I just want to retrieve the ID 1?

1 Answer 1

0

On client side in URL you should send the query string (name/value pairs) in the URL of a GET request:

{{url}}/mock1?ID=1

On server side you should receive and handle this ID parameter.

For more details check HTTP Request Methods

6

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.