illustration for Effectively Build RESTful APIs using Next.js API Routes

Effectively Build RESTful APIs using Next.js API Routes

20m closed-captioning
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
4.1
276
people completed
Bookmark
Download
RSS

Building an API might be an intimidating process, especially if you are starting to learn how to design your backend application.

You might find yourself asking how to design for performance? or how do you even create a consistent API?

RESTful APIs allow you to improve scalability, are cacheable and flexible.

API Routes are one of the most powerful features in Next.js because they let you build backend APIs without needing to create a custom server or spin up a new project/service. This eliminates the need to develop the backend for your application in another repository, which means less code, and less code means fewer bugs!

With this course, you will understand how to call handle different HTTP verbs for their RESTful APIs in Next.js as well as learn that Next.js is a viable option to create RESTful APIs.

With that said, after this course, you'll also learn and understand that having one file per route is okay, and each API route in Next.js is serverless, which means the concept of state doesn't exist.

Gain these skills:

  • Add middleware with next-connect
    • Understand the concept of middleware and how it affects requests
  • Refactoring RESTful APIs
  • How to call APIs in React/Next.js
  • Use dynamic routes

Credits

Kamil Khadeyev (illustration)

Learner Reviews

  • David Cameron
    a year ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    It covered a lot of basic information. I wish that it had done more though to tie some of the earlier parts together with the later ones.

  • RonGootman
    a year ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    quite basic, but helps grasping the gist :)

  • Ioan G. Istrate
    a year ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    that it was brief and to the point

  • Jon Seidel
    a year ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Focused, clearly communicated, straight-forward examples. Well done!

  • Marius G
    a year ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    need maybe a more in-depth approach to how things are working.

  • Yan Arlex Vallejo
    2 years ago
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    Star icon$$$
    What did you like about this course?

    Very good course, it is very useful to remember concepts on this topic.

Course Content

20m • 9 lessons

    You might also like these resources:

    illustration for Introduction to Cloudflare Workers

    Introduction to Cloudflare Workers

    Kristian Freeman・36m・Course

    Become familiar with the Workers CLI wrangler that we will use to bootstrap our Worker project. From there you'll understand how a Worker receives and returns requests/Responses. We will also build this serverless function locally for development and deploy it to a custom domain.

    illustration for Create an eCommerce Store with Next.js and Stripe Checkout

    Create an eCommerce Store with Next.js and Stripe Checkout

    Colby Fayock・1h 4m・Course

    This is a practical project based look at building a working e-commerce store using modern tools and APIs. Excellent for a weekend side-project for your developer project portfolio

    illustration for Practical Git for Everyday Professional Use

    Practical Git for Everyday Professional Use

    Trevor Miller・1h・Course

    git is a critical component in the modern web developers tool box. This course is a solid introduction and goes beyond the basics with some more advanced git commands you are sure to find useful.