We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{ "status": "success" | "failure" // リクエストの成否 }
status
success
{ "status": "success", "data": リクエストの返り値 // 要参照: 各種エンドポイント }
failure
{ "status": "failure", "error": Error // リクエストにて発生したエラー }
/api/info
GET
{ "version": String, // TrainInfo_Botのバージョン "account": { // Botのアカウント情報 "id": String, // アカウントのID "acct": String, // アカウントのユーザー名 "display_name": String, // アカウントの表示名 "url": String // アカウントのURL } }
/api/list
simple
Boolean
Operation[]
/api/operation
name
String
Operation
{ "name": String, // 鉄道名 "status": "平常運転" | "運転見合わせ" | "運転再開見込" | "運転再開" | "遅延" | "一部運休" | "直通運転中止" | "折返し運転" | "お知らせ" | String, // 運行状況 "detail": String | null, // 運行情報の詳細 "createdAt": String | null // 発表日時 (YYYY/MM/DD hh:mm) }
The text was updated successfully, but these errors were encountered:
GenbuHase
No branches or pull requests
返り値について
基本形
status
がsuccess
の時status
がfailure
の時エンドポイント一覧
/api/info
(GET
)/api/list
(GET
)simple
… 詳細情報を含まない (Boolean
型)Operation[]
型)/api/operation
(GET
)name
… 鉄道名 (String
型)Operation
型)エンティティ一覧
Operation
The text was updated successfully, but these errors were encountered: