fairlio API (0.0.1)

Download OpenAPI specification:Download

fairlio は、ユーザにとって公平なガチャを提供するためのシステムです。
ガチャはダッシュボードから作成、確率を設定し、API を通じて抽選を行って、結果を取得することができます。

設定した確率や、実際にユーザが行った抽選は fairlio が提供するページから確認することができ、公平に抽選したことを証明することができます。

Spin the gacha

ガチャを回してアイテムを取得します。

Authorizations:
ApiKey
header Parameters
Idempotency-Key
required
string

Key to make each request idempotent. If you specify the same value, the same result will be returned whether the request contents match or do not match.

Request Body schema: application/json
required
gachaId
required
string (ValueGachaId)

identifier of the gacha

Responses

Request samples

Content type
application/json
{
  • "gachaId": "20749359c20948aea6af42454565a0f820240201"
}

Response samples

Content type
application/json
{
  • "spin": {
    },
  • "item": {}
}

Get the result of spin

回したガチャの結果を参照します。

Authorizations:
ApiKey
path Parameters
spinId
required
string

Identifier of the spin

Responses

Response samples

Content type
application/json
{
  • "spin": {
    },
  • "item": {}
}