Skip to content

Commit d3c15a8

Browse files
authored
Merge pull request #2825 from tequdev/ja-versions
[JA] translate version rpcs
2 parents 95319ba + 07011d9 commit d3c15a8

File tree

3 files changed

+235
-2
lines changed
  • @i18n/ja/docs/references/http-websocket-apis/public-api-methods
  • docs/references/http-websocket-apis/public-api-methods/server-info-methods

3 files changed

+235
-2
lines changed
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
---
2+
seo:
3+
description: APIバージョン情報を取得します。
4+
labels:
5+
- コアサーバ
6+
---
7+
# version
8+
[[ソース]](https://github.com/XRPLF/clio/blob/develop/src/rpc/handlers/VersionHandler.hpp "ソース")
9+
10+
`version`コマンドは、[Clioサーバ](../../../../concepts/networks-and-servers/the-clio-server.md)のAPIバージョン情報を取得します。`rippled`サーバーの場合は、代わりに[`version` (`rippled`)](../server-info-methods/version.md)をご覧ください。{% badge href="https://github.com/XRPLF/clio/releases/tag/1.0.0" %}新規: Clio v2.0.0{% /badge %}
11+
12+
13+
## リクエストのフォーマット
14+
リクエストフォーマットの例:
15+
16+
{% tabs %}
17+
18+
{% tab label="WebSocket" %}
19+
```json
20+
{
21+
"command": "version"
22+
}
23+
```
24+
{% /tab %}
25+
26+
{% tab label="JSON-RPC" %}
27+
```json
28+
{
29+
"method": "version",
30+
"params": [
31+
{}
32+
]
33+
}
34+
```
35+
{% /tab %}
36+
37+
{% /tabs %}
38+
39+
<!-- [Try it! >](websocket-api-tool.html#version) -->
40+
41+
リクエストはパラメーターを必要としません。
42+
43+
## レスポンスのフォーマット
44+
45+
成功したレスポンスの例:
46+
47+
{% tabs %}
48+
49+
{% tab label="WebSocket" %}
50+
```json
51+
{
52+
"result": {
53+
"version": {
54+
"first": 1,
55+
"last": 2,
56+
"good": 1
57+
}
58+
},
59+
"status": "success",
60+
"type": "response",
61+
"warnings": [
62+
{
63+
"id": 2001,
64+
"message": "This is a clio server. clio only serves validated data. If you want to talk to rippled, include 'ledger_index':'current' in your request"
65+
}
66+
]
67+
}
68+
```
69+
{% /tab %}
70+
71+
{% tab label="JSON-RPC" %}
72+
```json
73+
200 OK
74+
75+
{
76+
"result": {
77+
"version": {
78+
"first": 1,
79+
"last": 2,
80+
"good": 1
81+
}
82+
},
83+
"status": "success",
84+
"type": "response",
85+
"warnings": [
86+
{
87+
"id":2001,
88+
"message":"This is a clio server. clio only serves validated data. If you want to talk to rippled, include 'ledger_index':'current' in your request"
89+
}
90+
]
91+
}
92+
```
93+
{% /tab %}
94+
95+
{% /tabs %}
96+
97+
レスポンスは[標準フォーマット][]に従い、成功した結果は`info`オブジェクトのみを含むものとなります。
98+
99+
`version`オブジェクトは、次のフィールドのいずれかを返します。
100+
101+
| フィールド || 説明 |
102+
|:-----------|:-------|:------------------------------|
103+
| `first` | 文字列 | サポートされる最低のAPIリリース |
104+
| `last` | 文字列 | サポートされる最高のAPIリリース |
105+
| `good` | 文字列 | 指定されていない場合のデフォルトのAPI |
106+
107+
## 考えられるエラー
108+
109+
* [汎用エラータイプ][]のいずれか。
110+
111+
{% raw-partial file="/docs/_snippets/common-links.md" /%}
Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
---
2+
seo:
3+
description: APIバージョン情報を取得します。
4+
labels:
5+
- コアサーバ
6+
---
7+
# version
8+
9+
[[ソース]](https://github.com/XRPLF/rippled/blob/develop/src/ripple/beast/core/SemanticVersion.cpp "ソース")
10+
11+
`version`コマンドは、rippledサーバーのAPIバージョン情報を取得します。`Clio`サーバーの場合は、代わりに[`version` (`clio`)](../clio-methods/version.md)をご覧ください。
12+
13+
14+
## リクエストのフォーマット
15+
リクエストフォーマットの例:
16+
17+
{% tabs %}
18+
19+
{% tab label="WebSocket" %}
20+
```json
21+
{
22+
"command": "version"
23+
}
24+
```
25+
{% /tab %}
26+
27+
{% tab label="JSON-RPC" %}
28+
```json
29+
{
30+
"method": "version",
31+
"params": [
32+
{}
33+
]
34+
}
35+
```
36+
{% /tab %}
37+
38+
{% tab label="コマンドライン" %}
39+
```sh
40+
#Syntax: version
41+
rippled version
42+
```
43+
{% /tab %}
44+
45+
{% /tabs %}
46+
47+
[試してみる >](/resources/dev-tools/websocket-api-tool#version)
48+
49+
リクエストはパラメーターを必要としません。
50+
51+
52+
## レスポンスのフォーマット
53+
54+
成功したレスポンスの例:
55+
56+
{% tabs %}
57+
58+
{% tab label="WebSocket" %}
59+
```json
60+
{
61+
"result": {
62+
"version": {
63+
"first": "1.0.0",
64+
"good": "1.0.0",
65+
"last": "1.0.0"
66+
}
67+
},
68+
"status": "success",
69+
"type": "response"
70+
}
71+
```
72+
{% /tab %}
73+
74+
{% tab label="JSON-RPC" %}
75+
```json
76+
200 OK
77+
78+
{
79+
"result": {
80+
"version": {
81+
"first": "1.0.0",
82+
"good": "1.0.0",
83+
"last": "1.0.0"
84+
}
85+
},
86+
"status": "success",
87+
"type": "response"
88+
}
89+
```
90+
{% /tab %}
91+
92+
{% tab label="コマンドライン" %}
93+
```json
94+
{
95+
"result": {
96+
"version": {
97+
"first": "1.0.0",
98+
"good": "1.0.0",
99+
"last": "1.0.0"
100+
}
101+
},
102+
"status": "success",
103+
"type": "response"
104+
}
105+
```
106+
{% /tab %}
107+
108+
{% /tabs %}
109+
110+
レスポンスは[標準フォーマット][]に従い、成功した結果は`version`オブジェクトのみを含むものとなります。
111+
112+
`version`オブジェクトは、次のフィールドのいずれかを返します。
113+
114+
| フィールド || 説明 |
115+
|:-----------|:-------|:------------------------------|
116+
| `first` | 文字列 | サポートされる最低のAPIリリース |
117+
| `last` | 文字列 | サポートされる最高のAPIリリース |
118+
| `good` | 文字列 | 指定されていない場合のデフォルトのAPI |
119+
120+
### 考えられるエラー
121+
122+
* [汎用エラータイプ][]のいずれか。
123+
124+
{% raw-partial file="/docs/_snippets/common-links.md" /%}

docs/references/http-websocket-apis/public-api-methods/server-info-methods/version.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ An example of a successful response:
7474
```json
7575
200 OK
7676

77-
Headers
78-
7977
{
8078
"result": {
8179
"version": {

0 commit comments

Comments
 (0)