Endpoints
Related routes
Filters
Posts: page, limit, q, userId; comments: postId, userId
Fields
| Field | Type | Description |
|---|---|---|
id | number | Post ID |
user_id | number | Author ID |
title | string | Title |
body | string | Body |
tags | array | Tags |
created_at | string | ISO timestamp |
Notes
- Comment fields: id, post_id, user_id, author, body, created_at.
- Writes are simulated and never stored.
Example
curl "https://www.temp-api.com/en/mock/posts/1/comments"
{
"code": 200,
"message": "ok",
"data": [
{ "id": 1, "post_id": 1, "author": "Olivia Bennett", "body": "This is a useful pattern." }
],
"meta": { "total": 2 }
}