# Script to add data in the example response

**URL:** <https://community.postman.com/t/script-to-add-data-in-the-example-response/1546>\
**Category:** Help Hub\
**Created:** [May 3, 2018, 7:27pm UTC](https://community.postman.com/t/script-to-add-data-in-the-example-response/1546 "2018-05-03T19:27:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Codejockey7](https://avatars.discourse-cdn.com/v4/letter/c/cc9497/32.png) [@Codejockey7](https://community.postman.com/u/Codejockey7)\
**Post date:** [May 3, 2018, 7:27pm UTC](https://community.postman.com/t/script-to-add-data-in-the-example-response/1546/1 "2018-05-03T19:27:03Z")

</div>

Hi guys,

I want to avoid a manual step of copy pasting a response in the example response section for endpoints that has not been implemented yet. The front end devs need to have some sort of data to get the UI started.  
Is there any way we can generate random data based on a provided schema (I already have a schema) using external libraries like ([https://github.com/bojand/json-schema-test-data-generator](https://github.com/bojand/json-schema-test-data-generator)) or any other way in postman ?

---

<div class="post-metadata">

**Author:** ![amjathk](https://avatars.discourse-cdn.com/v4/letter/a/cdc98d/32.png) [@amjathk](https://community.postman.com/u/amjathk)\
**Post date:** [May 11, 2018, 10:21am UTC](https://community.postman.com/t/script-to-add-data-in-the-example-response/1546/2 "2018-05-11T10:21:22Z")

</div>

Are you asking some kind of mock server setup to sent response for your UI developer.?

is yes, you can take a look at this url?

[https://www.getpostman.com/docs/v6/postman/mock\_servers/intro\_to\_mock\_servers](https://www.getpostman.com/docs/v6/postman/mock_servers/intro_to_mock_servers)
