Перейти к содержанию
SoulFire LogoSoulFire

Check recipe materials

Это руководство доступно только на английском.

POST
/v1/recipes:canCraft

Authorization

headerAuthorizationBearer <JWT>

Preferred API authentication. Use a JWT with the api audience.

Request Body

application/json
  1. body
scope?
recipeId?string
count?integer
Formatint32

Response Body

Successful response.

application/json
  1. response
canCraft?boolean
maximumCraftCount?integer
Formatint32
missing?array<>
requiredStation?string|null
Example Request
curl -X POST 'http://127.0.0.1:38765/v1/recipes:canCraft' \
  -H 'Content-Type: application/json' \
  -d '{
  "recipeId": "",
  "count": 0
}'
Example Response
{
  "canCraft": true,
  "maximumCraftCount": 0,
  "missing": [
    {
      "ingredient": {
        "itemIds": [
          "string"
        ],
        "tags": [
          "string"
        ],
        "count": 0
      },
      "available": 0,
      "missing": 0
    }
  ],
  "requiredStation": "string"
}

Полезна ли эта страница?