Skip to content

Commit 14b02d5

Browse files
authored
Use public endpoint for docs (#107)
Makes it easier to use
1 parent 640bb73 commit 14b02d5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: index/json-diff-and-patch.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -330,13 +330,13 @@ Which would result in the following patch:
330330
#### Diff examples using curl
331331

332332
```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 \
334334
'{ "before" : [{ "asdf" : "foo"}], "after" : [{ "asdf" : "bar"}]}'
335335
# Output: [ {"asdf": {"@after":"bar", "@before":"foo", "@op":"SwapValue"}} ]
336336
```
337337

338338
```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 \
340340
'{ "before" : [0,1,2], "after" : [0,1,2,3]}'
341341

342342
# Output:
@@ -353,7 +353,7 @@ $ curl -X POST -H "Content-Type: application/json" 'http://127.0.0.1:6363/api/di
353353
```
354354

355355
```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 \
357357
'{ "before" : { "asdf" : { "fdsa" : "quux"}}, "after" : { "asdf" : { "fdsa" : "quuz" }}}'
358358

359359
# Output:
@@ -380,15 +380,15 @@ Resulting in the following document:
380380
#### Patch examples using curl
381381

382382
```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 \
384384
'{ "before" : { "alpha" : 1, "asdf" : { "fdsa" : "quux"}}, "patch" : {
385385
"asdf": {"fdsa": {"@after":"quuz", "@before":"quux", "@op":"SwapValue"}}
386386
}}'
387387
# Output: {"alpha":1, "asdf": {"fdsa":"quuz"}}
388388
```
389389

390390
```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 '
392392
{ "before" : [0,1,2], "patch" : {
393393
"@op":"CopyList",
394394
"@rest": {

0 commit comments

Comments
 (0)