Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exercise by key #4049

Merged
merged 8 commits into from
Jan 18, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update documentation
CHANGELOG_BEGIN

- [JSON API - Experimental] Support Exercise by Key. See #4009.

CHANGELOG_END
  • Loading branch information
leo-da committed Jan 16, 2020
commit 70534936a0d9d88c69e25b002c6549ec2de8dd13
21 changes: 18 additions & 3 deletions docs/source/json-api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -402,10 +402,10 @@ POST ``/command/exercise``

Exercise a choice on a contract.

``"contractId": "#124:0"`` is the value from the create output.
Exercise by ContractId Request
------------------------------

Request
-------
``"contractId": "#124:0"`` is the value from the create output.

application/json body:

Expand All @@ -420,6 +420,21 @@ application/json body:
}
}

Exercise by Contract Key Request
--------------------------------

application/json body:

.. code-block:: json

{
"templateId": "Account:Account",
"key": ["Alice", "abc123"],
"choice": "Archive",
"argument": {}
}


Response
--------

Expand Down