The Scenario
A client wants a basic headless CMS for their new tech blog. The system needs to support managing `Posts` and user `Comments` on those posts.
The Brief
Write a minimal REST API specification for managing Posts and Comments. Focus heavily on using the correct HTTP verbs (GET, POST, PUT, DELETE) and standard URL routing conventions.
Deliverables
- A list of the necessary endpoints including the HTTP method and route path (e.g., `GET /posts`)
- A brief description of what each endpoint does
- A JSON payload example of what a successful `POST /posts` request body would look like
Submission Guidance
We are looking for standard REST conventions. Pay attention to how you nest routes (e.g., how do you fetch comments for a specific post?).
Submit Your Work
Your submission is graded against the rubric on the right. If you pass, you get a public Badge URL you can share on LinkedIn. There is no draft save, so work offline first and paste your finished response here.