<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-build-a-restful-api-with-adonisjs-kn8wggm0a" -->

---
title: How to Build a RESTful API with AdonisJS | daily.dev
description: How to build a RESTful API with AdonisJS 5 will be a game-changer for developers. You will learn how to properly build out the authentication and authorization...
canonical: https://daily.dev/posts/how-to-build-a-restful-api-with-adonisjs-kn8wggm0a
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to Build a RESTful API with AdonisJS | daily.dev
og:description: How to build a RESTful API with AdonisJS 5 will be a game-changer for developers. You will learn how to properly build out the authentication and authorization...
og:url: https://daily.dev/posts/how-to-build-a-restful-api-with-adonisjs-kn8wggm0a
og:image: https://api.daily.dev/og/posts/Kn8wggm0a.png
og:image:alt: How to Build a RESTful API with AdonisJS
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Build a RESTful API with AdonisJS

**[freeCodeCamp](https://daily.dev/sources/freecodecamp)** · 12 min read · 8 upvotes · 1 comments

## Summary

How to build a RESTful API with AdonisJS 5 will be a game-changer for developers. You will learn how to properly build out the authentication and authorization process within the Adonis JS 5 framework. In this tutorial, we will explore the nitty-gritty of building RESTful APIs with AdnisJS 5.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.freecodecamp.org/news/build-a-restful-api-with-adonisjs/>

## Community discussion

Top comments from developers on daily.dev.

**@bendevweb** · 0 upvotes

> it looks cool 👍

---

Tags: [#database](https://daily.dev/tags/database), [#authentication](https://daily.dev/tags/authentication), [#authorization](https://daily.dev/tags/authorization), [#adonisjs](https://daily.dev/tags/adonisjs)

[View this post on daily.dev](https://daily.dev/posts/how-to-build-a-restful-api-with-adonisjs-kn8wggm0a)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to Build a RESTful API with AdonisJS","url":"https://daily.dev/posts/how-to-build-a-restful-api-with-adonisjs-kn8wggm0a","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-build-a-restful-api-with-adonisjs-kn8wggm0a"},"datePublished":"2022-11-29T22:46:02.658Z","dateModified":"2022-11-29T22:46:02.657Z","description":"How to build a RESTful API with AdonisJS 5 will be a game-changer for developers. You will learn how to properly build out the authentication and authorization...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/21dcc80d5d42dacefaf7e4af165e25ce","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/21dcc80d5d42dacefaf7e4af165e25ce","isAccessibleForFree":true,"articleSection":"freeCodeCamp","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"freeCodeCamp","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1628412854/logos/freecodecamp","url":"https://daily.dev/sources/freecodecamp"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/how-to-build-a-restful-api-with-adonisjs-kn8wggm0a","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":8},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"database,authentication,authorization,adonisjs","timeRequired":"PT12M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"freeCodeCamp","item":"https://daily.dev/sources/freecodecamp"},{"@type":"ListItem","position":3,"name":"How to Build a RESTful API with AdonisJS"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/how-to-build-a-restful-api-with-adonisjs-kn8wggm0a","comment":[{"@type":"Comment","text":"it looks cool 👍","datePublished":"2022-12-05T13:31:01.062Z","url":"https://daily.dev/posts/Kn8wggm0a#c-vDCBWCeNr","author":{"@type":"Person","name":"Ben Devweb","url":"https://daily.dev/bendevweb","image":"https://avatars.githubusercontent.com/u/88207582?v=4"}}]}
```

