@@ -330,13 +330,13 @@ Which would result in the following patch:
330
330
#### Diff examples using curl
331
331
332
332
``` shell
333
- $ curl -X POST -H " Content-Type: application/json" ' http ://127.0.0.1:6363/api/diff ' -d \
333
+ $ curl -X POST -H " Content-Type: application/json" ' https ://cloud.terminusdb.com/jsondiff ' -d \
334
334
' { "before" : [{ "asdf" : "foo"}], "after" : [{ "asdf" : "bar"}]}'
335
335
# Output: [ {"asdf": {"@after":"bar", "@before":"foo", "@op":"SwapValue"}} ]
336
336
```
337
337
338
338
``` bash
339
- $ curl -X POST -H " Content-Type: application/json" ' http ://127.0.0.1:6363/api/diff ' -d \
339
+ $ curl -X POST -H " Content-Type: application/json" ' https ://cloud.terminusdb.com/jsondiff ' -d \
340
340
' { "before" : [0,1,2], "after" : [0,1,2,3]}'
341
341
342
342
# Output:
@@ -353,7 +353,7 @@ $ curl -X POST -H "Content-Type: application/json" 'http://127.0.0.1:6363/api/di
353
353
```
354
354
355
355
``` bash
356
- $ curl -X POST -H " Content-Type: application/json" ' http ://127.0.0.1:6363/api/diff ' -d \
356
+ $ curl -X POST -H " Content-Type: application/json" ' https ://cloud.terminusdb.com/jsondiff ' -d \
357
357
' { "before" : { "asdf" : { "fdsa" : "quux"}}, "after" : { "asdf" : { "fdsa" : "quuz" }}}'
358
358
359
359
# Output:
@@ -380,15 +380,15 @@ Resulting in the following document:
380
380
#### Patch examples using curl
381
381
382
382
``` shell
383
- $ curl -X POST -H " Content-Type: application/json" ' http ://127.0.0.1:6363/api/patch ' -d \
383
+ $ curl -X POST -H " Content-Type: application/json" ' https ://cloud.terminusdb.com/jsonpatch ' -d \
384
384
' { "before" : { "alpha" : 1, "asdf" : { "fdsa" : "quux"}}, "patch" : {
385
385
"asdf": {"fdsa": {"@after":"quuz", "@before":"quux", "@op":"SwapValue"}}
386
386
}}'
387
387
# Output: {"alpha":1, "asdf": {"fdsa":"quuz"}}
388
388
```
389
389
390
390
``` bash
391
- $ curl -X POST -H " Content-Type: application/json" ' http ://127.0.0.1:6363/api/patch ' -d '
391
+ $ curl -X POST -H " Content-Type: application/json" ' https ://cloud.terminusdb.com/jsonpatch ' -d '
392
392
{ "before" : [0,1,2], "patch" : {
393
393
"@op":"CopyList",
394
394
"@rest": {
0 commit comments