This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
specifications:uri [2016/07/25 09:21] Guvalif created |
specifications:uri [2021/04/01 13:51] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | FIXME **This page is not fully translated, yet. Please help completing the translation.**\\ //(remove this paragraph once the translation is finished)// | ||
| - | |||
| < | < | ||
| URI Definition | URI Definition | ||
| =============================================================================== | =============================================================================== | ||
| - | 基本仕様 | + | Basic Specification |
| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ||
| - | コントロールサーバーのホストは通常**" | + | Network host of Control Server is normally |
| - | ポートは**config.json**内の`port`プロパティに従って決定されます。(規定値は17264です。) | + | Its port is decided by `port` property written in **config.json**. (Default value is 17264.) |
| - | コントロールサーバーはREST APIを提供し、ユーザーは以下の書式により、 | + | The server provides |
| - | 各種リソースやコマンドを使用することができます。 | + | Thus, anyone can use each resource and command using following syntax. |
| ``` | ``` | ||
| Line 18: | Line 16: | ||
| ``` | ``` | ||
| - | `< | + | `< |
| - | (例: **ControlServer_Win_v2.0.1**であれば、**v2**となります。) | + | Basically its keeps pace to major version of the application. |
| + | (For-instance: In **ControlServer_Win_v2.0.1**, `< | ||
| - | ### リソース取得時に返却されるJSONのフォーマット | + | ### Returned |
| - | GETリクエストを実行した際、以下のようなJSONが返却されます。 | + | When you create |
| ```json | ```json | ||
| Line 32: | Line 31: | ||
| ``` | ``` | ||
| - | ### コマンド実行時に返却されるJSONのフォーマット | + | ### Returned |
| - | GET以外のHTTPリクエスト,および各種コマンドを実行した際、以下のようなJSONが返却されます。 | + | When you create |
| ```json | ```json | ||
| Line 47: | Line 46: | ||
| - | リソース一覧 | + | Resources List |
| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ||
| - | ### コマンドラインストリーム | + | ### Command-line Stream |
| - | WebSocketを用いてPLENを操作するストリームリソースを提供します。 | + | Could be gotten |
| - | コマンド名と各引数を**/ (スラッシュ)**で区切って送信することで、 | + | Sending command name and each argument with **/ (slash)** as separator, |
| - | Pythonで実装されているコマンドを直接呼び出すことが可能です。 | + | you can call directly commands implemented by Python. |
| - | ([参考](https:// | + | ([See also...](https:// |
| ```javascript | ```javascript | ||
| Line 64: | Line 63: | ||
| ``` | ``` | ||
| - | 戻り値は、Python上での各コマンドの戻り値を文字列化したものです。 | + | Returned value is stringified returned value on Python |
| - | ### モーション | + | ### Motion |
| - | PLENの動作を定義するモーションリソースを提供します。 | + | Could be gotten motion resource that defines |
| - | `< | + | Please set slot number you want to access to `< |
| ``` | ``` | ||
| Line 75: | Line 74: | ||
| ``` | ``` | ||
| - | |HTTPリクエスト|動作 | + | |HTTP Request|Operation |
| - | |:-------------|: | + | |: |
| - | |**GET** | + | |**GET** |
| - | |**DELETE** | + | |**DELETE** |
| - | |**PUT** | + | |**PUT** |
| ``` | ``` | ||
| Line 86: | Line 85: | ||
| ``` | ``` | ||
| - | |コマンド|動作 | + | |Commands|Operation |
| - | |:-------|:-----------------------| | + | |: |
| - | |**play**|モーションを再生します。| | + | |**play**|Play a motion.| |
| - | |**stop**|モーションを停止します。| | + | |**stop**|Stop a motion.| |
| - | ### バージョン情報 | + | ### Version Information |
| - | PLEN本体のバージョン情報に関するリソースを提供します。 | + | Could be gotten version information resource. |
| ``` | ``` | ||
| Line 99: | Line 98: | ||
| ``` | ``` | ||
| - | |HTTPリクエスト|動作 | + | |HTTP Request|Operation |
| - | |:-------------|: | + | |: |
| - | |**GET** | + | |**GET** |
| - | ### サーバー構成情報 | + | ### Construction Information of the Server |
| - | 以下のようなサーバー構成情報に関するリソースを提供します。 | + | Could be gotten server information resources below. |
| - | - APIのバージョン | + | - API version |
| - | - 要求するPLENのファームウェアバージョン | + | - Required firmware version of PLEN |
| ``` | ``` | ||
| Line 114: | Line 113: | ||
| ``` | ``` | ||
| - | |HTTPリクエスト|動作 | + | |HTTP Request|Operation |
| - | |:-------------|: | + | |: |
| - | |**GET** | + | |**GET** |
| - | 単独実行可能コマンド一覧 | + | Commands List (Doable by Itself) |
| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ||
| - | ### PLENへの接続 | + | ### Connect to PLEN (connect) |
| ``` | ``` | ||
| Line 128: | Line 127: | ||
| ``` | ``` | ||
| - | ### PLENからの切断 | + | ### Disconnect from PLEN (disconnect) |
| ``` | ``` | ||