Toolbox for developers / Free HTTP based JSON store

Free JSON storage

This tool allows you to store JSON bins, and manipulate this data over a simple HTTP API.

You can use this service for tutorials, sharing code examples or mocking requests. You can also use this REST API for websites, web and mobile applications on development and qualification environments.

You can see the user guide, and the API documentation to help you to use this hosting service

Disclaimer: It is currently a BETA service.

JSON data





Security key (Optionnal) *
Private **


* The security key is used to protect access, modification and deletion of the bin.
If security key is completed, it will be required to update and delete the bin.
The security key is required to request the private bins, but not required for the public bins.

** Private: The security key is required to request private bins.
The public bin can be requested by everyone who knows the URI without the security key.



User guide

You can use this user interface to store JSON that are accessible through the user interface and an HTTP API.

  • Copy and paste, drag and drop a JSON file or directly type in the editors above.
    You can also click on "load JSON from URL" button to load your JSON data from a URL (Must be https).
    You can also click on "Browse JSON file" button to load your JSON data from a local file.
  • If you want to protect your JSON data from modification and deletion, fill in the "security key" field.
    If you want to protect access to your JSON data, check the "private" checkbox field.
  • Clicks on "Save" button in order to save your JSON data.
    The URI to directly access this JSON will be displayed.

Note: JSON data is limited to 100 Ko per bin.

You can also use a REST API, see below.

API documentation

You can download the OpenAPI definition here or consult the documentation below.

  • Request JSON
  • Create JSON
  • Update JSON
  • Partially update JSON
  • Delete JSON
GET /api/json-storage/bin/:id

Return a json bin.

Headers
Hearder codeDescriptionData typeRequired
Security-keyRequired to request a private bin.StringOptionnal
JavaScript example:
const request = new XMLHttpRequest();
request.open("GET", "https://extendsclass.com/api/json-storage/bin/:id", true);
request.onreadystatechange = () => {
	alert(request.responseText);
};
request.send();
Response
Success: 200
{
	-- Your JSON data
}
Error: 404
{
	"status": 1
	"message": "Bin not found"
}
Error: 422
{
	"status": 1
	"message": "Id must be specified"
}

POST /api/json-storage/bin

Create a json bin.

Headers
Hearder codeDescriptionData typeRequired
Security-keyThe security key of your bin (maximum of 256 characters).
The security key allows to protect your bin against requests, modifications and deletions.
The security key is required to update and delete your bin.
The security key is required to request the private bins, but not required for the public bins.
StringOptionnal
PrivateThe security key is required to request private bins. Public by default.BooleanOptionnal
Request
{
	-- Your JSON data
}
JavaScript example:
const request = new XMLHttpRequest();
request.open("POST", "https://extendsclass.com/api/json-storage/bin", true);
request.setRequestHeader("Content-type", "application/json");
request.setRequestHeader("Security-key", "Your security key");
request.setRequestHeader("Private", "true");
request.onreadystatechange = () => {
};
request.send('{"name": "my JSON"}');
Response
Success: 201
{
	"status": 0,
	"uri": "https://extendsclass.com/api/json-storage/bin/:id",
	"id": ":id"
}
Error: 413
{
	"status": 1
	"message": "JSON data too large"
}
Error: 413
{
	"status": 1
	"message": "Security key is too large"
}
Error: 422
{
	"status": 1
	"message": "Id can not be specified"
}
Error: 422
{
	"status": 1
	"message": "Security key is required for private bin"
}
PUT /api/json-storage/bin/:id

Update a json bin.

Headers
Hearder codeDescriptionData typeRequired
Security-keyRequired to update a bin protected by a security key.StringOptionnal
Request
{
	-- Your JSON data updated
}
JavaScript example:
const request = new XMLHttpRequest();
request.open("PUT", "https://extendsclass.com/api/json-storage/bin/:id", true);
request.setRequestHeader("Content-type", "application/json");
request.setRequestHeader("Security-key", "Your security key");
request.onreadystatechange = () => {
};
request.send('{"name": "my updated JSON"}');
Response
Success: 200
{
	"status": 0,
	"data": -- your JSON data updated
}
Error: 401
{
	"status": 1
	"message": "Wrong security key"
}
Error: 404
{
	"status": 1
	"message": "Bin not found"
}
Error: 413
{
	"status": 1
	"message": "JSON data too large"
}
Error: 422
{
	"status": 1
	"message": "Id must be specified"
}
PATCH /api/json-storage/bin/:id

Partially update a json bin with JSON Merge Patch.

Headers
Hearder codeDescriptionData typeRequired
Security-keyRequired to update a bin protected by a security key.StringOptionnal
Request
{
	-- Your JSON Merge Patch
}
JavaScript example:
const request = new XMLHttpRequest();
request.open("PATCH", "https://extendsclass.com/api/json-storage/bin/:id", true);
request.setRequestHeader("Content-type", "application/merge-patch+json");
request.setRequestHeader("Security-key", "Your security key");
request.onreadystatechange = () => {
};
request.send('{"name": "my JSON Merge Patch", "name2": null}');
Response
Success: 200
{
	"status": 0,
	"data": -- your JSON data updated
}
Error: 401
{
	"status": 1
	"message": "Wrong security key"
}
Error: 404
{
	"status": 1
	"message": "Bin not found"
}
Error: 413
{
	"status": 1
	"message": "JSON data too large"
}
Error: 422
{
	"status": 1
	"message": "Id must be specified"
}
DELETE /api/json-storage/bin/:id

Delete a json bin.

Headers
Hearder codeDescriptionData typeRequired
Security-keyRequired to delete a bin protected by a security key.StringOptionnal
JavaScript example:
const request = new XMLHttpRequest();
request.open("DELETE", "https://extendsclass.com/api/json-storage/bin/:id", true);
request.setRequestHeader("security-key", "Your security key");
request.onreadystatechange = () => {
};
request.send();
Response
Success: 200
{
	"status": 0
}
Error: 401
{
	"status": 1
	"message": "Wrong security key"
}
Error: 404
{
	"status": 1
	"message": "Bin not found"
}
Error: 422
{
	"status": 1
	"message": "Id must be specified"
}

The HTTP API supports cross-origin resource sharing (CORS requests are accepted from any origin), you will not have any cross domain issues.

Why store JSON ?

Sometimes we needed a quick location to store a configuration file or data. We do not always have the possibility to easily make these data available online

This hosting service allows you to do this, store and make available online :)



Load JSON data
URL
You can report a bug or give feedback by adding a comment (below) or by clicking "Contact me" link (at the top right hand corner of the page).

Comments





Disclaimer: The tools are provided "as is", without warranty of any kind, either express or implied.
Any links to third-party website or software available on this website are provided "as is",
without warranty of any kind, either express or implied and are to be used at your own risk.