探索API - y-masaki/compati GitHub Wiki

API一覧

Method HTTP Request 説明
index GET /gifts ギフトリスト取得
accepts PATCH /gifts/accepts ギフト受け取り

index

ギフトリスト取得

HTTP Request

GET /gifts

Request Body

無し

Response

{
	"gifts" : { [ data-gift, ... ] }
}
プロパティ名 説明
gifts Array<Gift> ギフトリスト(data-gift参照)

accepts

ギフト受け取り

HTTP Request

PATCH /gifts/accepts

Request Body

{
	"ids" : [ 1, 2, 3, ... ]
}
プロパティ名 説明
ids Array<Integer> ギフトIDリスト

Response

{
	"coin" : 1,
	"gald" : 1,
	"gacha_p" : 1,
	"characters" : { [ data-character, ... ] },
	"units" : { [ data-unit, ... ] },
	"equipments" : { [ data-equipment, ... ] }
}
プロパティ名 説明
coin Integer コイン枚数
gald Integer ガルド数
gacha_p Integer ガシャポイント
characters Array<Character> キャラクタリスト(data-character参照)
units Array<Unit> ユニットリスト(data-unit参照)
equipments Array<Equipment> 装備品リスト(data-equipment参照)