feat: Fixes #210. Add Mermaid.js Gitbook plugin. Generate API flow diagram (#211)

* feat: Add Mermaid.js Gitbook plugin. Generate API flow diagram

* fix: Remove HTTP from diagram. Change text to funnel user to WS
This commit is contained in:
Luke Schoen
2018-10-10 13:16:36 +02:00
committed by Jaco Greeff
parent af10c69d2b
commit bba764bd28
3 changed files with 10 additions and 0 deletions
+8
View File
@@ -18,6 +18,14 @@ import isFunction from '@polkadot/util/is/function';
* @name Rpc
* @summary The API may use a HTTP or WebSockets provider.
* @description It allows for querying a Polkadot Client Node.
* WebSockets provider is recommended since HTTP provider only supports basic querying.
*
* ```mermaid
* graph LR;
* A[Api] --> |WebSockets| B[WsProvider];
* B --> |endpoint| C[ws://127.0.0.1:9944]
* ```
*
* @example
* <BR>
*