# REST Architecture - Part 1: Building The API

**URL:** <https://community.auth0.com/t/rest-architecture-part-1-building-the-api/30669>\
**Category:** Blog Discussions\
**Tags:** nodejs, restful-api, api, restful, express\
**Created:** [September 10, 2019, 5:14pm UTC](https://community.auth0.com/t/rest-architecture-part-1-building-the-api/30669 "2019-09-10T17:14:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ramiro](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ramiro/32/8077_2.png) [@ramiro](https://community.auth0.com/u/ramiro)\
**Post date:** [September 10, 2019, 5:14pm UTC](https://community.auth0.com/t/rest-architecture-part-1-building-the-api/30669/1 "2019-09-10T17:14:00Z")

</div>

Learn how to build client-server systems by applying the REST architecture principles. Part 1 shows how to build a true RESTful API by using Node.js and Express.js.

[Read on 🛠](https://auth0.com/blog/rest-architecture-part-1-building-api/)

Brought to you by @andrea.chiarelli 👨🏻‍💻

 ![REST Architecture - Part 1: Building The API](https://global.discourse-cdn.com/auth0/original/2X/5/56333a4ff00bc9b235886a142412870851fc2dc6.png)

---

<div class="post-metadata">

**Author:** ![andrea.chiarelli](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/andrea.chiarelli/32/16034_2.png) [@andrea.chiarelli](https://community.auth0.com/u/andrea.chiarelli)\
**Post date:** [September 11, 2019, 1:44pm UTC](https://community.auth0.com/t/rest-architecture-part-1-building-the-api/30669/2 "2019-09-11T13:44:01Z")

</div>

Hi there,  
Feel free to share your thoughts about the article!

---

<div class="post-metadata">

**Author:** ![DigitalWolfCa](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/digitalwolfca/32/12814_2.png) [@DigitalWolfCa](https://community.auth0.com/u/DigitalWolfCa)\
**Post date:** [February 27, 2021, 6:50pm UTC](https://community.auth0.com/t/rest-architecture-part-1-building-the-api/30669/3 "2021-02-27T18:50:20Z")

</div>

I love this Blog post, Thank you. Just to let you know I ran in to some problems after starting this from scratch.

package-lock.json `7 vulnerabilities` from the `git clone -b starting-point`

My fix was to remove packages and package-lock.json and run the install and then having to `npm audit fix --force`

After doing this I ran in to…

```
E:\AUTH-BLOG-Daskboard-Project\auth0-restful-dashboard\auth0-restful-management-api\Auth0Manager.js:102
            .getClients()
             ^

TypeError: Cannot read property 'getClients' of undefined

```

Any thoughts?

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [March 1, 2021, 1:39pm UTC](https://community.auth0.com/t/rest-architecture-part-1-building-the-api/30669/4 "2021-03-01T13:39:44Z")

</div>

Tagging you @andrea.chiarelli for visibility

---

<div class="post-metadata">

**Author:** ![andrea.chiarelli](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/andrea.chiarelli/32/16034_2.png) [@andrea.chiarelli](https://community.auth0.com/u/andrea.chiarelli)\
**Post date:** [March 1, 2021, 3:55pm UTC](https://community.auth0.com/t/rest-architecture-part-1-building-the-api/30669/5 "2021-03-01T15:55:00Z")

</div>

Hey @DigitalWolfCa, thank you for reporting this issue.  
I will investigate and come back to you as soon as possible.

---

<div class="post-metadata">

**Author:** ![andrea.chiarelli](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/andrea.chiarelli/32/16034_2.png) [@andrea.chiarelli](https://community.auth0.com/u/andrea.chiarelli)\
**Post date:** [March 2, 2021, 10:17am UTC](https://community.auth0.com/t/rest-architecture-part-1-building-the-api/30669/6 "2021-03-02T10:17:26Z")

</div>

Hi @DigitalWolfCa,  
I applied the `audit fix` to my local copy of the project, but I’m not able to reproduce your issue. Of course, I’m assuming you followed the steps indicated in the article after cloning the `starting-point` branch.  
Can you provide more details about your issue or even better, can you share your code to take a look at it?  
Also, have you tried to run the final version of the project downloaded from [our GitHub repository](https://github.com/auth0-blog/auth0-restful-dashboard)?

---

<div class="post-metadata">

**Author:** ![stephanie.chamblee](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/stephanie.chamblee/32/26087_2.png) [@stephanie.chamblee](https://community.auth0.com/u/stephanie.chamblee)\
**Post date:** [March 30, 2021, 5:18am UTC](https://community.auth0.com/t/rest-architecture-part-1-building-the-api/30669/7 "2021-03-30T05:18:17Z")

</div>

This topic was automatically closed 27 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 15, 2021, 3:57pm UTC](https://community.auth0.com/t/rest-architecture-part-1-building-the-api/30669/8 "2021-12-15T15:57:32Z")

</div>


