Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/circlecell/jsoncompare.com
https://github.com/circlecell/jsoncompare.com
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/circlecell/jsoncompare.com
- Owner: circlecell
- License: isc
- Created: 2016-02-04T14:55:32.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T02:33:58.000Z (over 1 year ago)
- Last Synced: 2024-08-01T16:44:21.636Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 22.6 MB
- Stars: 113
- Watchers: 9
- Forks: 41
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jsoncompare.com [![Build Status](https://travis-ci.org/circlecell/jsoncompare.com.svg?branch=master)](https://travis-ci.org/circlecell/jsoncompare.com)
Source code for [jsoncompare.com](jsoncompare.com).
## API
``POST https://jsoncompare.com/api/save`` - saves current application state on S3.
A body should include 3 keys:
- ``simple`` *string* - base64-encoded value of the Simple tab
- ``batch`` *string[]* - an array of base64-encoded values for the Batch tab
- ``diff`` *object* - data forthe Diff tab with keys "left" (base64-encoded value of the left side editor) and "right" (base64-encoded value of the right side editor).Response JSON includes ``key`` - a name of newly created file on S3 (MD5 hash of the body) or ``error`` if there is an error.
Example:
```js
>>>
{
"simple": "eyJhIjogMX0=",
"batch": ["eyJiIjogMn0=", "eyJjIjogM30=", "eyJkIjogNH0="],
"diff": {
"left": "eyJlIjogNX0=",
"right": "eyJmIjogNn0="
}
}
<<<
{ "key":"aac35abfc8e25a4914cf90da13aa29e9" }
`````GET https://jsonlintcom.s3.amazonaws.com/{key}.json`` - gets an application state by given key.