Software DevelopmentBeginner 1 to 2 hours

Design a Simple REST API for a Blog

Define basic CRUD endpoints for a standard blog application.

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.

This appears on your public Badge.

0/20000 charactersMarkdown supported

One per line or comma separated. Up to 5 links.

By submitting, you agree your submission text, name, and evaluation will appear on a public Badge URL.