# How to create a custom wrapper logic on remote web service API

**URL:** <https://community.dreamfactory.com/t/how-to-create-a-custom-wrapper-logic-on-remote-web-service-api/920>\
**Category:** Connecting to Web Services\
**Created:** [March 16, 2015, 7:20am UTC](https://community.dreamfactory.com/t/how-to-create-a-custom-wrapper-logic-on-remote-web-service-api/920 "2015-03-16T07:20:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nemo](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@nemo](https://community.dreamfactory.com/u/nemo)\
**Post date:** [March 16, 2015, 7:20am UTC](https://community.dreamfactory.com/t/how-to-create-a-custom-wrapper-logic-on-remote-web-service-api/920/1 "2015-03-16T07:20:15Z")

</div>

Hi,

I am a Dreamfactory newbie and I apologize if this question has been posted earlier (I could see one thread [Modifying the REST APIs](https://community.dreamfactory.com/t/modifying-the-rest-apis/132/2) but that is possibly not a duplicate).

I want to create a wrapper service API where I’d check few parameters and compute a hash a initiate a call to remote file service. For example, I want to check if the client request has certain header parameters, extract and validate the client id from the parameter and call a S3 service endpoint to fetch additional metadata. So, I created a custom remote web service and I could create a new API signature from the admin UI but I couldn’t find a way to implement the logic in the API implementation. Therefore, my question is can I not create a wrapper/custom web service API implementation (in any Dreamfactory supported language) and host the API implementation on Dreamfactory (or anywhere else) as a service API?

Currently, I have to implement such logic in the application layer and that will require individual implementation for each client platform and I want to keep all these logic behind a simple REST API.

Please feel free to suggest/refer to any pointers.

Thanks a lot,  
Nemo

---

<div class="post-metadata">

**Author:** ![nemo](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@nemo](https://community.dreamfactory.com/u/nemo)\
**Post date:** [March 19, 2015, 3:55pm UTC](https://community.dreamfactory.com/t/how-to-create-a-custom-wrapper-logic-on-remote-web-service-api/920/2 "2015-03-19T15:55:20Z")

</div>

Any thoughts/suggestions?

---

<div class="post-metadata">

**Author:** ![benbusse](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/benbusse/32/4_2.png) [@benbusse](https://community.dreamfactory.com/u/benbusse)\
**Post date:** [March 23, 2015, 5:00pm UTC](https://community.dreamfactory.com/t/how-to-create-a-custom-wrapper-logic-on-remote-web-service-api/920/3 "2015-03-23T17:00:47Z")

</div>

Hey @nemo, you can write a custom JS script in DreamFactory and call it as a REST API.

This blog post explains how it works [https://blog.dreamfactory.com/build-your-own-web-services-using-dreamfactory-custom-scripts](https://blog.dreamfactory.com/build-your-own-web-services-using-dreamfactory-custom-scripts)

A custom script may meet your requirements, give it a look.
