π 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!