The JSON Playground provides a mock REST API to play around with JSON data.
To create a playground, send a POST request to /playgrounds
.
- Automatic deletion after 30 minutes.
- Create an own SQLite database for the playground.
- Return the playground ID and a JWT that will be needed to interact with the playground.
Method | Endpoints |
---|---|
GET | /articles |
GET | /articles/{articleId} |
GET | /articles/{articleId}/comments |
GET | /articles/{articleId}/comments/{commentID} |
POST | /playgrounds |
All endpoints require a valid JWT.
Method | Endpoints |
---|---|
GET/POST | /playgrounds/{playgroundId}/articles |
GET/PUT/DELETE | /playgrounds/{playgroundId}/articles/{articleId} |
GET/POST | /playgrounds/{playgroundId}/articles/{articleId}/comments |
GET/PUT/DELETE | /playgrounds/{playgroundId}/articles/{articleId}/comments/{commentID} |
GET | /playgrounds/{playgroundId}/comments/{commentID} |
{
"id": 1,
"title": "JSON Playground API",
"content": "The JSON Playground provides a mock REST API to play around with JSON data.",
}
{
"id": 1,
"articleId": 1,
"content": "Great API!",
}