Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/steveklabnik/merge_patch_test
A site showing off application/json-merge-patch
https://github.com/steveklabnik/merge_patch_test
Last synced: 23 days ago
JSON representation
A site showing off application/json-merge-patch
- Host: GitHub
- URL: https://github.com/steveklabnik/merge_patch_test
- Owner: steveklabnik
- Created: 2013-05-18T21:50:56.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-05-19T03:38:52.000Z (over 11 years ago)
- Last Synced: 2024-11-01T01:24:30.911Z (2 months ago)
- Language: Ruby
- Homepage: http://json-merge-patch.herokuapp.com/
- Size: 148 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## merge_patch_test
Try out `application/json-merge-patch`.
This site lets you try out the latest draft of [draft-snell-merge](http://tools.ietf.org/html/draft-snell-merge--08).
To try, go to [http://json-merge-patch.herokuapp.com](http://json-merge-patch.herokuapp.com).
Or:
```
$ git clone https://github.com/steveklabnik/merge_patch_test.git
$ cd merge_patch_test
$ bundle
$ bin/rails s
```Then, open up [http://localhost:3000](http://localhost:3000).
Or, if you want to try from the command-line:
```bash
$ curl -i http://localhost:3000/merges \
-X GET \
-H "Accept: application/json-merge-patch" \
-d merge[original]={%22foo%22%3A%22bar%22} \
-d merge[patch]={%22foo%22%3A%22baz%22}
```gives:
```text
HTTP/1.1 200 OK
Content-Type: application/json-merge-patch; charset=utf-8
Date: Sat, 18 May 2013 22:19:42 GMT
Content-Length: 13{"foo":"baz"}
```