Skip to content

The JSON Playground provides a mock REST API to play around with JSON data.

Notifications You must be signed in to change notification settings

renja-g/JSON-Playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON Playground API

Project Definition

The JSON Playground provides a mock REST API to play around with JSON data.

Playground Creation

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.

Endpoints

Open Endpoints

Method Endpoints
GET /articles
GET /articles/{articleId}
GET /articles/{articleId}/comments
GET /articles/{articleId}/comments/{commentID}
POST /playgrounds

Playground Endpoints

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}

Data Structure

Article

{
  "id": 1,
  "title": "JSON Playground API",
  "content": "The JSON Playground provides a mock REST API to play around with JSON data.",
}

Comment

{
  "id": 1,
  "articleId": 1,
  "content": "Great API!",
}

About

The JSON Playground provides a mock REST API to play around with JSON data.

Resources

Stars

Watchers

Forks

Languages