Create REST APIs using Next.JS | Dynamic API Routes and CRUD operations

preview_player
Показать описание
In this video, we will be seeing how you can create REST APIs and handle different kinds of HTTP requests using Next.JS API routes.

Useful links:

Chapters:
0:00 Create your first API route
2:27 CRUD APIs and HTTP methods
4:17 Create a Dynamic API route
6:53 Handling POST and DELETE methods
9:51 Testing all our APIs
Рекомендации по теме
Комментарии
Автор

thank you so much. its help me very much

Haidarali-ghci
Автор

So can Next do the same job as Nest in regards to creating your backend, thanks!

lardosian
Автор

hello, i don't understand why the POST method is in the [id] file. usually when we create a customer, we don't know the "id" that will be set to the customer right ? isn't it's better to put the POST outside that file or replace it by an update mehod?
thank you for your video

anvui
Автор

If I have to create api something like " then I have to keep creating folders which becomes more complex unlike in express

digitalnomadprabhu
Автор

Take a shot each time Mayank says "Particular"

rahistaffasia
Автор

Hey I am having a hard time understanding how to use a json file as a data base in my next js app. I know we need to use the api to for crud operations but i cant figure out how to manipulate the json file with the api... could you make a video on using a json file for a data base in next js.

zaynelovecraft
Автор

Dear Sir you fetch customer id api can you make products small video that create custom api in api folder and fetch internal api and show in browser just 3 or 4 items fetch i tried alot of videos everyone fetching external apis only 1 youtuber create custom api and fetch internal api but i donot understand can you make?

SalmanIqbal-krmh
Автор

I don't see the database in your project, Did you use some internal database or mysql ?

moizata
Автор

How are you setting the response status for the apis?

cr