差分

ナビゲーションに移動 検索に移動
=成功したAPI=
==✅ 認証系 API=====① 一般ユーザ登録===
curl -X POST http://localhost/api/user/register \
-H "Content-Type: application/json" \
-d '{"display":"ギルドの誰か","id":"testuser","pass":"testpass"}'
===② ログイン(一般 or 管理者)===
curl -X POST http://localhost/api/user/login \
-H "Content-Type: application/json" \
-d '{"id":"testuser","pass":"testpass"}'
===③ 現在のログイン状態確認===
curl http://localhost/api/user/me -b cookie.txt
===④ ログアウト===
curl http://localhost/api/user/logout -b cookie.txt -c cookie.txt
===⑤ 一般ユーザの削除(自分で削除)===
curl -X POST http://localhost/api/user/delete -b cookie.txt -c cookie.txt
  curl -X POST http://localhost/api/char/create \ -H "Content-Type: application/json" \ -b cookie.txt -c cookie.txt \ -d '{ "name": "テストキャラ", "sheetUrl": "https://example.com/sheet123", "description": "テスト用キャラクターです\n改行もできるよ", "tags": "テスト,TRPG,ファンタジー" }' ==✅ キャラクター関連API=====キャラクター作成===
curl -X POST http://localhost/api/char/create \
-H "Content-Type: application/json" \
}'
====★作成されたキャラ====
"938146af": {
"id": "938146af",
}
==✅ ユニット関連=====ユニット作成===
curl -X POST http://localhost/api/unit/create \
-H "Content-Type: application/json" \
}'
===ユニット更新&メンバー追加===
curl -X POST http://localhost/api/unit/update \
-H "Content-Type: application/json" \
}'
===メンバー削除===
curl -X POST http://localhost/api/unit/update \
-H "Content-Type: application/json" \

案内メニュー