Skip to content

Commit

Permalink
docs: API quick links [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
jg-rp committed Sep 22, 2023
1 parent 4dd2a01 commit 5e30621
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion docs/docs/README_API.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# JSON P3 API Documentation

TODO:
Welcome to the API documentation for JSON P3. Also see the [quick start guide](/quick-start) for an introduction to using JSON P3.

## API Quick Links

- [JSONPathEnvironment](/api/classes/jsonpath.JSONPathEnvironment)
- [JSONPathEnvironment Options](/api/namespaces/jsonpath#jsonpathenvironmentoptions)
- [JSONPathNodeList](/api/classes/jsonpath.JSONPathNodeList)
- [JSONPathNode](/api/classes/jsonpath.JSONPathNode)
2 changes: 1 addition & 1 deletion docs/docs/guides/json-patch.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# JSON Patch

[JSON Patch](./quick-start.md#json-patch) ([RFC 6902](https://datatracker.ietf.org/doc/html/rfc6902)) is a standard for describing update operations to perform on JSON-like data. Each operation includes, at least, an `op` string and a `path`, which is a [JSON Pointer](./json-pointer.md).
JSON Patch ([RFC 6902](https://datatracker.ietf.org/doc/html/rfc6902)) is a standard for describing update operations to perform on JSON-like data. Each operation includes, at least, an `op` string and a `path`, which is a [JSON Pointer](./json-pointer.md).

Use [`jsonpatch.apply(ops, data)`](../api/namespaces/jsonpatch.md#apply) to apply _ops_ to _data_, where _ops_ should be an array of [`OpObject`s](../api/namespaces/jsonpatch.md#opobject), as per RFC 6902. Patch operation are applied sequentially and, unless the target JSON document's root value is replaced, **data is modified in place**.

Expand Down

0 comments on commit 5e30621

Please sign in to comment.