Overview
Learn how to build a REST API with Next.js 13 in this comprehensive tutorial. Discover the new route handlers in Next.js and understand when to use API routes in your application. Create a new project, explore Next 13.3 changes, and set up environment variables and API keys. Implement GET, DELETE, POST, and PUT route handlers, as well as dynamic API routes. Follow along to create five API endpoints and gain valuable insights into building efficient REST APIs with Next.js 13.
Syllabus
Intro
Welcome
Next.js New Route Handlers
When to use API Routes for your app & when not to
Create a new project & Next 13.3 changes
Environment variables & API keys
GET route handler
DELETE route handler
POST route handler
PUT route handler
Dynamic API route
Next steps
Taught by
Dave Gray