Skip to content

Commit

Permalink
Freeze JSON API v1 (digital-asset#5387)
Browse files Browse the repository at this point in the history
* move JSON API doc to "Building applications"

* stop describing JSON API as experimental; limit to calling WebSocket endpoints alpha

* remove "(experimental)" from daml json-api docstring

* add changelog

CHANGELOG_BEGIN
- [JSON API] First stable version of the ``/v1`` endpoints, with
  the exception of the WebSocket endpoints, which remain in alpha.
  See `issue digital-asset#4458 <https://github.com/digital-asset/daml/issues/4458>`_.
CHANGELOG_END

* move json-api in PDF ToC, adapting to digital-asset#5411 c496e2b

- pointed out by @cocreature; thanks
  • Loading branch information
S11001001 authored Apr 3, 2020
1 parent 55f3762 commit ff68252
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/configs/pdf/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ Building applications
:maxdepth: 2

app-dev/app-arch
json-api/index
daml2js/index
app-dev/bindings-ts/index
json-api/index
DAML Script <daml-script/index>
upgrade/index
app-dev/authentication
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ DAML SDK documentation
:caption: Building applications

app-dev/app-arch
json-api/index
daml2js/index
app-dev/bindings-ts/index
json-api/index
DAML Script <daml-script/index>
upgrade/index
app-dev/authentication
Expand Down
26 changes: 16 additions & 10 deletions docs/source/json-api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@
HTTP JSON API Service
#####################

**WARNING:** the HTTP JSON API described in this document is actively
being designed and is *subject to breaking changes*, including all
request and response elements demonstrated below or otherwise
implemented by the API. We welcome feedback about the API on `our issue
tracker
<https://github.com/digital-asset/daml/issues/new?milestone=HTTP+JSON+API+Maintenance>`_
or `on Slack <https://hub.daml.com/slack/>`_.

Please keep in mind that the presence of **/v1** prefix in the the URLs below does not mean that the endpoint interfaces are stabilized.

The **JSON API** provides a significantly simpler way than :doc:`the Ledger
API </app-dev/ledger-api>` to interact with a ledger by providing *basic active contract set functionality*:

Expand Down Expand Up @@ -1084,6 +1074,18 @@ HTTP Response
Streaming API
*************

**WARNING:** the WebSocket endpoints described below are in alpha,
so are *subject to breaking changes*, including all
request and response elements demonstrated below or otherwise
implemented by the API. We welcome feedback about the API on `our issue
tracker
<https://github.com/digital-asset/daml/issues/new?milestone=HTTP+JSON+API+Maintenance>`_
or `on Slack <https://hub.daml.com/slack/>`_.

Please keep in mind that the presence of **/v1** prefix in the the
WebSocket URLs does not mean that the endpoint interfaces are
stabilized.

Two subprotocols must be passed with every request, as described in
`Passing token with WebSockets <#passing-token-with-websockets>`__.

Expand Down Expand Up @@ -1151,6 +1153,8 @@ Contracts Query Stream
- Scheme: ``ws``
- Protocol: ``WebSocket``

*Endpoint is in alpha as described above.*

List currently active contracts that match a given query, with
continuous updates.

Expand Down Expand Up @@ -1315,6 +1319,8 @@ Fetch by Key Contracts Stream
- Scheme: ``ws``
- Protocol: ``WebSocket``

*Endpoint is in alpha as described above.*

List currently active contracts that match one of the given ``{templateId, key}`` pairs, with continuous updates.

``application/json`` body must be sent first, formatted according to the following rule:
Expand Down

0 comments on commit ff68252

Please sign in to comment.