πŸ“– Step 6: Development#440 / 498

REST API

RESTful API

πŸ“–One-line summary

An API design style that represents resources as URLs and manipulates them with HTTP methods.

✨Example

// REST API (RESTful API)

μžμ›μ„ URL둜 ν‘œν˜„ν•˜κ³  HTTP λ©”μ„œλ“œλ‘œ μ‘°μž‘ν•˜λŠ” κ·œμΉ™μ„ λ”°λ₯΄λŠ” API 섀계 방식

> ready_

⚑Vibe coding prompt examples

>_

Design REST API endpoints for a blog service, with URLs, methods, and request/response examples for posts, comments, and likes in a table.

>_

Redesign this API list (/getUser, /deletePost?id=3) to follow REST principles.

>_

Define conventions for pagination, sorting, and filtering via query parameters in a REST API, with Next.js example code.

Try these prompts in your AI coding assistant!