# Is it possible to build a REST API in a Canister?

**URL:** <https://forum.dfinity.org/t/is-it-possible-to-build-a-rest-api-in-a-canister/5355>\
**Category:** Getting Started\
**Created:** [June 19, 2021, 3:13pm UTC](https://forum.dfinity.org/t/is-it-possible-to-build-a-rest-api-in-a-canister/5355 "2021-06-19T15:13:30Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![paulyoung](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/paulyoung/32/5251_2.png) [@paulyoung](https://forum.dfinity.org/u/paulyoung)\
**Post date:** [January 25, 2022, 1:52am UTC](https://forum.dfinity.org/t/is-it-possible-to-build-a-rest-api-in-a-canister/5355/10 "2022-01-25T01:52:18Z")

</div>

There’s some more detailed info here:

> [@How do you call http\_request on localhost?](https://forum.dfinity.org/t/how-do-you-call-http-request-on-localhost/5184/4):
>
> The way I did it for now was to edit /etc/hosts to add an entry like: 127.0.0.1 myproject.localhost Then start icx-proxy like this: icx-proxy --fetch-root-key --address 127.0.0.1:8453 --dns-alias myproject.localhost:rrkah-fqaaa-aaaaa-aaaaq-cai -v -v That way I can make HTTP requests to http://myproject.localhost:8453. You can pick a different host name and port.

---

_[View the full topic](https://forum.dfinity.org/t/is-it-possible-to-build-a-rest-api-in-a-canister/5355)._
