blob: c732bd09de48296002c2b047ee5452a3cb5b9078 [file] [log] [blame]
Ezhilarasidc19d792019-04-17 18:52:50 +05301.. This work is licensed under a Creative Commons Attribution 4.0 International License.
2.. http://creativecommons.org/licenses/by/4.0
3.. Copyright (C) 2019 IBM.
4
5Dynamic API
6-----------
7
8The nature of the API request and response is meant to be model driven and dynamic. They both share the same definition.
9
10The actionName, under the actionIdentifiers refers to the name of a Workflow (see workflow)
11
12The content of the payload is what is fully dynamic / model driven.
13
14The first top level element will always be either $actionName-request for a request or $actionName-response for a response.
15
16Then the content within this element is fully based on the workflow input and output.
17
18Here is how the a generic request and response look like.
19
20|image0|
21
Ezhilarasi3b4a9f62019-08-16 15:26:54 +053022.. |image0| image:: media/dyanmicapi.jpg
Ezhilarasidc19d792019-04-17 18:52:50 +053023 :height: 4.43750in
24 :width: 7.88889in