Mark code sample languages explicitly

This commit is contained in:
mDuo13
2020-09-10 02:18:40 -07:00
parent eb6142f270
commit d46202a04f
92 changed files with 531 additions and 450 deletions

View File

@@ -12,7 +12,7 @@ _`consensus_info`メソッドは、権限のないユーザーは実行できな
*WebSocket*
```
```json
{
"id": 99,
"command": "consensus_info"
@@ -21,7 +21,7 @@ _`consensus_info`メソッドは、権限のないユーザーは実行できな
*JSON-RPC*
```
```json
{
"method": "consensus_info",
"params": [
@@ -32,7 +32,7 @@ _`consensus_info`メソッドは、権限のないユーザーは実行できな
*コマンドライン*
```
```sh
#Syntax: consensus_info
rippled consensus_info
```
@@ -49,7 +49,7 @@ rippled consensus_info
*JSON-RPC*
```
```json
{
"result" : {
"info" : {
@@ -124,9 +124,10 @@ rippled consensus_info
*コマンドライン*
```
```json
Loading: "/etc/rippled.cfg"
Connecting to 127.0.0.1:5005
{
"result" : {
"info" : {

View File

@@ -12,7 +12,7 @@ An example of the request format:
*WebSocket*
```
```json
{
"id": 99,
"command": "consensus_info"
@@ -21,7 +21,7 @@ An example of the request format:
*JSON-RPC*
```
```json
{
"method": "consensus_info",
"params": [
@@ -32,7 +32,7 @@ An example of the request format:
*Commandline*
```
```sh
#Syntax: consensus_info
rippled consensus_info
```
@@ -49,7 +49,7 @@ An example of a successful response:
*JSON-RPC*
```
```json
{
"result" : {
"info" : {
@@ -124,9 +124,10 @@ An example of a successful response:
*Commandline*
```
```json
Loading: "/etc/rippled.cfg"
Connecting to 127.0.0.1:5005
{
"result" : {
"info" : {

View File

@@ -14,7 +14,7 @@ _`feature`メソッドは、権限のないユーザーは実行できない[管
*WebSocket - すべてリスト*
```
```json
{
"id": "list_all_features",
"command": "feature"
@@ -23,7 +23,7 @@ _`feature`メソッドは、権限のないユーザーは実行できない[管
*WebSocket - 拒否*
```
```json
{
"id": "reject_multi_sign",
"command": "feature",
@@ -34,7 +34,7 @@ _`feature`メソッドは、権限のないユーザーは実行できない[管
*JSON-RPC*
```
```json
{
"method": "feature",
"params": [
@@ -48,7 +48,7 @@ _`feature`メソッドは、権限のないユーザーは実行できない[管
*コマンドライン*
```
```sh
#Syntax: feature [<feature_id> [accept|reject]]
rippled feature 4C97EBA926031A7CF7D7B36FDE3ED66DDA5421192D63DE53FFB46E43B9DC8373 accept
```
@@ -72,7 +72,7 @@ rippled feature 4C97EBA926031A7CF7D7B36FDE3ED66DDA5421192D63DE53FFB46E43B9DC8373
*WebSocket - すべてリスト*
```
```json
{
"id": "list_all_features",
"status": "success",
@@ -116,7 +116,7 @@ rippled feature 4C97EBA926031A7CF7D7B36FDE3ED66DDA5421192D63DE53FFB46E43B9DC8373
*WebSocket - 拒否*
```
```json
{
"id": "reject_multi_sign",
"status": "success",
@@ -136,8 +136,9 @@ rippled feature 4C97EBA926031A7CF7D7B36FDE3ED66DDA5421192D63DE53FFB46E43B9DC8373
*JSON-RPC*
```
```json
200 OK
{
"result": {
"4C97EBA926031A7CF7D7B36FDE3ED66DDA5421192D63DE53FFB46E43B9DC8373": {
@@ -153,9 +154,10 @@ rippled feature 4C97EBA926031A7CF7D7B36FDE3ED66DDA5421192D63DE53FFB46E43B9DC8373
*コマンドライン*
```
```json
Loading: "/etc/rippled.cfg"
Connecting to 127.0.0.1:5005
{
"result": {
"4C97EBA926031A7CF7D7B36FDE3ED66DDA5421192D63DE53FFB46E43B9DC8373": {

View File

@@ -14,7 +14,7 @@ An example of the request format:
*WebSocket - list all*
```
```json
{
"id": "list_all_features",
"command": "feature"
@@ -23,7 +23,7 @@ An example of the request format:
*WebSocket - reject*
```
```json
{
"id": "reject_multi_sign",
"command": "feature",
@@ -34,7 +34,7 @@ An example of the request format:
*JSON-RPC*
```
```json
{
"method": "feature",
"params": [
@@ -48,7 +48,7 @@ An example of the request format:
*Commandline*
```
```sh
#Syntax: feature [<feature_id> [accept|reject]]
rippled feature 4C97EBA926031A7CF7D7B36FDE3ED66DDA5421192D63DE53FFB46E43B9DC8373 accept
```
@@ -72,7 +72,7 @@ An example of a successful response:
*WebSocket - list all*
```
```json
{
"id": "list_all_features",
"status": "success",
@@ -116,7 +116,7 @@ An example of a successful response:
*WebSocket - reject*
```
```json
{
"id": "reject_multi_sign",
"status": "success",
@@ -136,8 +136,9 @@ An example of a successful response:
*JSON-RPC*
```
```json
200 OK
{
"result": {
"4C97EBA926031A7CF7D7B36FDE3ED66DDA5421192D63DE53FFB46E43B9DC8373": {
@@ -153,9 +154,10 @@ An example of a successful response:
*Commandline*
```
```json
Loading: "/etc/rippled.cfg"
Connecting to 127.0.0.1:5005
{
"result": {
"4C97EBA926031A7CF7D7B36FDE3ED66DDA5421192D63DE53FFB46E43B9DC8373": {

View File

@@ -12,7 +12,7 @@ _`fetch_info`メソッドは、権限のないユーザーは実行できない[
*WebSocket*
```
```json
{
"id": 91,
"command": "fetch_info",
@@ -22,7 +22,7 @@ _`fetch_info`メソッドは、権限のないユーザーは実行できない[
*JSON-RPC*
```
```json
{
"method": "fetch_info",
"params": [
@@ -35,7 +35,7 @@ _`fetch_info`メソッドは、権限のないユーザーは実行できない[
*コマンドライン*
```
```sh
#Syntax: fetch_info [clear]
rippled fetch_info
```
@@ -56,7 +56,7 @@ rippled fetch_info
*JSON-RPC*
```
```json
{
"result" : {
"info" : {
@@ -94,9 +94,10 @@ rippled fetch_info
*コマンドライン*
```
```json
Loading: "/etc/rippled.cfg"
Connecting to 127.0.0.1:5005
{
"result" : {
"info" : {

View File

@@ -12,7 +12,7 @@ An example of the request format:
*WebSocket*
```
```json
{
"id": 91,
"command": "fetch_info",
@@ -22,7 +22,7 @@ An example of the request format:
*JSON-RPC*
```
```json
{
"method": "fetch_info",
"params": [
@@ -35,7 +35,7 @@ An example of the request format:
*Commandline*
```
```sh
#Syntax: fetch_info [clear]
rippled fetch_info
```
@@ -56,7 +56,7 @@ An example of a successful response:
*JSON-RPC*
```
```json
{
"result" : {
"info" : {
@@ -94,9 +94,10 @@ An example of a successful response:
*Commandline*
```
```json
Loading: "/etc/rippled.cfg"
Connecting to 127.0.0.1:5005
{
"result" : {
"info" : {

View File

@@ -12,7 +12,7 @@ _`get_counts`メソッドは、権限のないユーザーは実行できない[
*WebSocket*
```
```json
{
"id": 90,
"command": "get_counts",
@@ -22,7 +22,7 @@ _`get_counts`メソッドは、権限のないユーザーは実行できない[
*JSON-RPC*
```
```json
{
"method": "get_counts",
"params": [
@@ -35,7 +35,7 @@ _`get_counts`メソッドは、権限のないユーザーは実行できない[
*コマンドライン*
```
```sh
#Syntax: get_counts [min_count]
rippled get_counts 100
```
@@ -56,7 +56,7 @@ rippled get_counts 100
*JSON-RPC*
```
```json
{
"result" : {
"AL_hit_rate" : 48.36725616455078,
@@ -93,9 +93,10 @@ rippled get_counts 100
*コマンドライン*
```
```json
Loading: "/etc/rippled.cfg"
Connecting to 127.0.0.1:5005
{
"result" : {
"AL_hit_rate" : 48.36725616455078,
@@ -150,4 +151,4 @@ Connecting to 127.0.0.1:5005
<!--{# common link defs #}-->
{% include '_snippets/rippled-api-links.md' %}
{% include '_snippets/tx-type-links.md' %}
{% include '_snippets/rippled_versions.md' %}
{% include '_snippets/rippled_versions.md' %}

View File

@@ -12,7 +12,7 @@ An example of the request format:
*WebSocket*
```
```json
{
"id": 90,
"command": "get_counts",
@@ -22,7 +22,7 @@ An example of the request format:
*JSON-RPC*
```
```json
{
"method": "get_counts",
"params": [
@@ -35,7 +35,7 @@ An example of the request format:
*Commandline*
```
```sh
#Syntax: get_counts [min_count]
rippled get_counts 100
```
@@ -56,7 +56,7 @@ An example of a successful response:
*JSON-RPC*
```
```json
{
"result" : {
"AL_hit_rate" : 48.36725616455078,
@@ -93,9 +93,10 @@ An example of a successful response:
*Commandline*
```
```json
Loading: "/etc/rippled.cfg"
Connecting to 127.0.0.1:5005
{
"result" : {
"AL_hit_rate" : 48.36725616455078,

View File

@@ -12,7 +12,7 @@
*WebSocket*
```
```json
{
"id": "print_req_1",
"command": "print"
@@ -37,9 +37,10 @@ rippled print
*コマンドライン*
```
```json
Loading: "/etc/rippled.cfg"
Connecting to 127.0.0.1:5005
{
"result" : {
"app" : {
@@ -233,4 +234,4 @@ Connecting to 127.0.0.1:5005
<!--{# common link defs #}-->
{% include '_snippets/rippled-api-links.md' %}
{% include '_snippets/tx-type-links.md' %}
{% include '_snippets/rippled_versions.md' %}
{% include '_snippets/rippled_versions.md' %}

View File

@@ -12,7 +12,7 @@ An example of the request format:
*WebSocket*
```
```json
{
"id": "print_req_1",
"command": "print"
@@ -37,9 +37,10 @@ An example of a successful response:
*Commandline*
```
```json
Loading: "/etc/rippled.cfg"
Connecting to 127.0.0.1:5005
{
"result" : {
"app" : {

View File

@@ -12,7 +12,7 @@
*WebSocket*
```
```json
{
"id": 1,
"command": "validator_list_sites"
@@ -21,7 +21,7 @@
*JSON-RPC*
```
```json
{
"method": "validator_list_sites",
"params": [
@@ -32,7 +32,7 @@
*コマンドライン*
```
```sh
#Syntax: validator_list_sites
rippled validator_list_sites
```
@@ -49,7 +49,7 @@ rippled validator_list_sites
*WebSocket*
```
```json
{
"id":5,
"status":"success",
@@ -70,8 +70,9 @@ rippled validator_list_sites
*JSON-RPC*
```
```json
200 OK
{
"result": {
"status": "success",
@@ -89,9 +90,10 @@ rippled validator_list_sites
*コマンドライン*
```
```json
Loading: "/etc/rippled.cfg"
Connecting to 127.0.0.1:5005
{
"result": {
"status": "success",
@@ -131,4 +133,4 @@ Connecting to 127.0.0.1:5005
<!--{# common link defs #}-->
{% include '_snippets/rippled-api-links.md' %}
{% include '_snippets/tx-type-links.md' %}
{% include '_snippets/rippled_versions.md' %}
{% include '_snippets/rippled_versions.md' %}

View File

@@ -12,7 +12,7 @@ An example of the request format:
*WebSocket*
```
```json
{
"id": 1,
"command": "validator_list_sites"
@@ -21,7 +21,7 @@ An example of the request format:
*JSON-RPC*
```
```json
{
"method": "validator_list_sites",
"params": [
@@ -32,7 +32,7 @@ An example of the request format:
*Commandline*
```
```sh
#Syntax: validator_list_sites
rippled validator_list_sites
```
@@ -49,7 +49,7 @@ An example of a successful response:
*WebSocket*
```
```json
{
"id":5,
"status":"success",
@@ -70,8 +70,9 @@ An example of a successful response:
*JSON-RPC*
```
```json
200 OK
{
"result": {
"status": "success",
@@ -89,9 +90,10 @@ An example of a successful response:
*Commandline*
```
```json
Loading: "/etc/rippled.cfg"
Connecting to 127.0.0.1:5005
{
"result": {
"status": "success",

View File

@@ -12,7 +12,7 @@
*WebSocket*
```
```json
{
"id": 1,
"command": "validators"
@@ -21,7 +21,7 @@
*JSON-RPC*
```
```json
{
"method": "validators",
"params": [
@@ -32,7 +32,7 @@
*コマンドライン*
```
```sh
#Syntax: validators
rippled validators
```
@@ -49,7 +49,7 @@ rippled validators
*WebSocket*
```
```json
{
"id":5,
"status":"success",
@@ -83,8 +83,9 @@ rippled validators
*JSON-RPC*
```
```json
200 OK
{
"result":{
"local_static_keys": [],
@@ -116,9 +117,10 @@ rippled validators
*コマンドライン*
```
```json
Loading: "/etc/rippled.cfg"
Connecting to 127.0.0.1:5005
{
"result":{
"local_static_keys": [],
@@ -179,4 +181,4 @@ Connecting to 127.0.0.1:5005
<!--{# common link defs #}-->
{% include '_snippets/rippled-api-links.md' %}
{% include '_snippets/tx-type-links.md' %}
{% include '_snippets/rippled_versions.md' %}
{% include '_snippets/rippled_versions.md' %}

View File

@@ -12,7 +12,7 @@ An example of the request format:
*WebSocket*
```
```json
{
"id": 1,
"command": "validators"
@@ -21,7 +21,7 @@ An example of the request format:
*JSON-RPC*
```
```json
{
"method": "validators",
"params": [
@@ -32,7 +32,7 @@ An example of the request format:
*Commandline*
```
```sh
#Syntax: validators
rippled validators
```
@@ -49,7 +49,7 @@ An example of a successful response:
*WebSocket*
```
```json
{
"id":5,
"status":"success",
@@ -83,8 +83,9 @@ An example of a successful response:
*JSON-RPC*
```
```json
200 OK
{
"result":{
"local_static_keys": [],
@@ -116,9 +117,10 @@ An example of a successful response:
*Commandline*
```
```json
Loading: "/etc/rippled.cfg"
Connecting to 127.0.0.1:5005
{
"result":{
"local_static_keys": [],