# Where do I put my custom REST methods?

**URL:** <https://discuss.emberjs.com/t/where-do-i-put-my-custom-rest-methods/4228>\
**Category:** Ember Data\
**Created:** [February 21, 2014, 8:10am UTC](https://discuss.emberjs.com/t/where-do-i-put-my-custom-rest-methods/4228 "2014-02-21T08:10:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jamalsoueidan](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/jamalsoueidan/32/234_2.png) [@jamalsoueidan](https://discuss.emberjs.com/u/jamalsoueidan)\
**Post date:** [February 21, 2014, 10:05am UTC](https://discuss.emberjs.com/t/where-do-i-put-my-custom-rest-methods/4228/2 "2014-02-21T10:05:51Z")

</div>

> [@Building complex REST url](http://discuss.emberjs.com/t/building-complex-rest-url/4207/4):
>
> You can add custom methods in the same one adapter. App.ProductAdapter = DS.RESTAdapter.extend({ someCustomMethod: function(customData) { // Here you can handle custom data, and after that send POST request return this.ajax('/ajax.php', 'POST', { data: customData }); } }); … usage var customAdapter = this.container.lookup('adapter:product'); var data = { username: "michael", password: "123456", clientID: "2", productID: 201 }; customAdapter.someCustomMe…

---

_[View the full topic](https://discuss.emberjs.com/t/where-do-i-put-my-custom-rest-methods/4228)._
