Back to problems

Design RESTful API for JSON Files

Object-Oriented Programming · Microsoft · Medium

Design a REST-style HTTP API for storing, retrieving, modifying, and removing JSON documents. Your interface should define sensible resource paths, HTTP methods, request bodies, response bodies, and status codes for common JSON-file operations. Examples Input: POST /json-files with body: Output: 201 Created with body: The server creates a JSON document and returns its assigned identifier. Input: GET /json-files/f-201 Output: 200 OK with body: The request fetches the document…

Checking your access…