# Mocking with query parameters

**URL:** <https://community.postman.com/t/mocking-with-query-parameters/38363>\
**Category:** Help Hub\
**Created:** [August 19, 2022, 8:48pm UTC](https://community.postman.com/t/mocking-with-query-parameters/38363 "2022-08-19T20:48:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikolayrenzhiglov](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@nikolayrenzhiglov](https://community.postman.com/u/nikolayrenzhiglov)\
**Post date:** [August 19, 2022, 8:48pm UTC](https://community.postman.com/t/mocking-with-query-parameters/38363/1 "2022-08-19T20:48:00Z")

</div>

> **Archived topic — some details may be out of date.**  
> Mock servers built from saved collection examples are still supported. Postman now also has **code-based mocks** : JavaScript request handlers plus a `config.yaml`, stored as files in your Git repository, which you can run locally or deploy. Create one in the app, or use the Postman CLI to generate one from an OpenAPI spec, collection or dataset (`postman mock generate`) and run it (`postman mock run`). See [About mocks](https://learning.postman.com/docs/design-apis/mock-apis/mocks/overview) and [Create a mock](https://learning.postman.com/docs/design-apis/mock-apis/mocks/create-a-mock).  
> Working with an AI coding agent? The [Postman plugin](https://github.com/postmanlabs/postman-plugin) can build and run mocks for you.  
> For current help, see the [Postman docs](https://learning.postman.com/docs/), try the free [Postman tools](https://www.postman.com/tools) (no account needed), or join us on [Discord](https://discord.gg/58aNNsRBGR).

Hi there  
Is it possible to a have a Mock Server to return me the parameters I passed as a part of URL? I need a kind of echoing for my query params.  
Thanks

---

<div class="post-metadata">

**Author:** ![jetison](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/jetison/32/12_2.png) [@jetison](https://community.postman.com/u/jetison)\
**Post date:** [August 19, 2022, 11:41pm UTC](https://community.postman.com/t/mocking-with-query-parameters/38363/2 "2022-08-19T23:41:12Z")

</div>

I suggest using [Echo](https://www.postman.com/postman/workspace/published-postman-templates/collection/631643-f695cab7-6878-eb55-7943-ad88e1ccfd65?ctx=documentation) or [HTTPBin](https://www.postman.com/postman/workspace/20c9374c-0841-4b30-90b7-731b29821d43/overview), Postman services to make these kinds of sample calls. Otherwise, it’s possible to [dynamically update a mock response](https://medium.com/better-practices/https-medium-com-postman-engineering-fake-it-till-you-make-it-mocks-for-agile-development-f4d050cad694) based on the query params submitted, but it’s not intended behavior and is hacky.
