# Example app using a REST Api

**URL:** <https://forums.fusetools.com/t/example-app-using-a-rest-api/3268>\
**Category:** General\
**Created:** [August 5, 2015, 6:32pm UTC](https://forums.fusetools.com/t/example-app-using-a-rest-api/3268 "2015-08-05T18:32:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![eric](https://avatars.discourse-cdn.com/v4/letter/e/898d66/32.png) [@eric](https://forums.fusetools.com/u/eric)\
**Post date:** [August 5, 2015, 6:32pm UTC](https://forums.fusetools.com/t/example-app-using-a-rest-api/3268/1 "2015-08-05T18:32:53Z")

</div>

A lot of us don’t use parse at all, I work for sony on the playstation network for my day job and would love to use fuse in our next hackathon.

I have read the docs a lot and it’s still unclear how to accomplish these basic features and what the design pattern is.

If you guys have the bandwidth, I personally would love to see an example that’s paired with sample rest api maybe with or nodejs/rails.

Just a simple app that can do this.

• CRUD operations from different resources • Token based Authentication

If this can be accomplished, I can hook this up into the PSN and create something to show off with the execs.

---

<div class="post-metadata">

**Author:** ![Kristian\_Hasselknipp](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/kristian_hasselknipp/32/549_2.png) [@Kristian\_Hasselknipp](https://forums.fusetools.com/u/Kristian_Hasselknipp)\
**Post date:** [August 11, 2015, 8:08am UTC](https://forums.fusetools.com/t/example-app-using-a-rest-api/3268/2 "2015-08-11T08:08:06Z")

</div>

Hi there.

There will probably pop up some examples like this in the near future, but until then you could take a look at [https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) (which we point to from the FuseJS docs). It might have what you need 🙂

---

<div class="post-metadata">

**Author:** ![me14](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/me14/32/443_2.png) [@me14](https://forums.fusetools.com/u/me14)\
**Post date:** [May 12, 2016, 10:46pm UTC](https://forums.fusetools.com/t/example-app-using-a-rest-api/3268/3 "2016-05-12T22:46:56Z")

</div>

Any REST api example with CURD and authentication?

---

<div class="post-metadata">

**Author:** ![Anders\_Bondehagen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_bondehagen/32/98_2.png) [@Anders\_Bondehagen](https://forums.fusetools.com/u/Anders_Bondehagen)\
**Post date:** [June 10, 2016, 12:05pm UTC](https://forums.fusetools.com/t/example-app-using-a-rest-api/3268/4 "2016-06-10T12:05:36Z")

</div>

This is a simple example showing github authentication [https://github.com/fusetools/fuse-samples/tree/master/Samples/GithubOAuth](https://github.com/fusetools/fuse-samples/tree/master/Samples/GithubOAuth)

---

<div class="post-metadata">

**Author:** ![patrice](https://avatars.discourse-cdn.com/v4/letter/p/e274bd/32.png) [@patrice](https://forums.fusetools.com/u/patrice)\
**Post date:** [October 21, 2016, 3:43pm UTC](https://forums.fusetools.com/t/example-app-using-a-rest-api/3268/5 "2016-10-21T15:43:44Z")

</div>

That’s one below par example. The post parameters directly in the URI, who does that anymore.  
We’re missing an example where POST data is sent properly in the body… Just a thought.

---

<div class="post-metadata">

**Author:** ![markusdrake](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/markusdrake/32/81_2.png) [@markusdrake](https://forums.fusetools.com/u/markusdrake)\
**Post date:** [October 21, 2016, 8:47pm UTC](https://forums.fusetools.com/t/example-app-using-a-rest-api/3268/6 "2016-10-21T20:47:14Z")

</div>

If you need a more mature solution please look at the following GitHub Repo:

> **[marmelab/restful.js](https://github.com/marmelab/restful.js/tree/master)**
>
> restful.js - A pure JS client for interacting with server-side RESTful resources. Think Restangular without Angular.

Which is a JS framework for interacting with REST endpoints.

Also worth mentioning that I have no idea what Fusetools does and does not support in terms of JavaScript, so you may also need this Fetch polyfill.

> **[github/fetch](https://github.com/github/fetch)**
>
> A window.fetch JavaScript polyfill.

---

<div class="post-metadata">

**Author:** ![Anders\_Lassen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_lassen/32/522_2.png) [@Anders\_Lassen](https://forums.fusetools.com/u/Anders_Lassen)\
**Post date:** [October 22, 2016, 7:28am UTC](https://forums.fusetools.com/t/example-app-using-a-rest-api/3268/7 "2016-10-22T07:28:20Z")

</div>

Fuse supports `fetch` so any example or lib involving that would work.

You work with REST APIs in fuse exactly the same way you would on the web or in any other JS framework, just google any relevant example/tutorial, e.g. [https://www.sitepoint.com/introduction-to-the-fetch-api/](https://www.sitepoint.com/introduction-to-the-fetch-api/)
