# Getting list of strings and integers from 2 rest calls and add them in compound or document type so that USER can apply those changes

**URL:** <https://community.bloomreach.com/t/getting-list-of-strings-and-integers-from-2-rest-calls-and-add-them-in-compound-or-document-type-so-that-user-can-apply-those-changes/1271>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [July 19, 2019, 6:37am UTC](https://community.bloomreach.com/t/getting-list-of-strings-and-integers-from-2-rest-calls-and-add-them-in-compound-or-document-type-so-that-user-can-apply-those-changes/1271 "2019-07-19T06:37:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gkr](https://avatars.discourse-cdn.com/v4/letter/g/e480ec/32.png) [@gkr](https://community.bloomreach.com/u/gkr)\
**Post date:** [July 19, 2019, 6:37am UTC](https://community.bloomreach.com/t/getting-list-of-strings-and-integers-from-2-rest-calls-and-add-them-in-compound-or-document-type-so-that-user-can-apply-those-changes/1271/1 "2019-07-19T06:37:25Z")

</div>

Hi Guys,

we have one requirement details are below, kindly give us some suggestions on implementation part.

I have to create one Compound or Document types in HIPPO, which should be ability to call REST api’s on demand to fetch list of values).

When USER adding above Compound or Document types to specific document USER should be able to select or search the String from the above list.

I guess i am not confusing you, please let me know if you need any other info, thanks in advance … 🙂

thanks & regards  
Ganesh

---

<div class="post-metadata">

**Author:** ![ponnuru765](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/ponnuru765/32/421_2.png) [@ponnuru765](https://community.bloomreach.com/u/ponnuru765)\
**Post date:** [July 22, 2019, 5:00pm UTC](https://community.bloomreach.com/t/getting-list-of-strings-and-integers-from-2-rest-calls-and-add-them-in-compound-or-document-type-so-that-user-can-apply-those-changes/1271/2 "2019-07-22T17:00:08Z")

</div>

Hi Ganesh

Coming to point1  
you have to create one Compound or Document types in HIPPO, which should be ability to call REST api’s on demand to fetch list of values).  
using tools you can create rest call use bean writer it will create controller as well and use REST config to create rest  
example: [http://localhost:8080/site/rest/documents](http://localhost:8080/site/rest/documents) …  
inside controller add as per your need search feature.

---

<div class="post-metadata">

**Author:** ![gkr](https://avatars.discourse-cdn.com/v4/letter/g/e480ec/32.png) [@gkr](https://community.bloomreach.com/u/gkr)\
**Post date:** [July 24, 2019, 1:05pm UTC](https://community.bloomreach.com/t/getting-list-of-strings-and-integers-from-2-rest-calls-and-add-them-in-compound-or-document-type-so-that-user-can-apply-those-changes/1271/3 "2019-07-24T13:05:46Z")

</div>

Hi Ponnuru765,

thanks for quick reply, i will try and let you know.

regards  
Ganesh
