{
  "openapi": "3.0.0",
  "info": {
    "title": "Asset",
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "version": "1.0.0"
  },
  "paths": {
    "/v1.0.0/asset/health": {
      "$ref": "../Http/schema.json#/paths/Health"
    },
    "/v1.0.0/asset/get-asset": {
      "post": {
        "deprecated": true,
        "summary": "Get Asset Info",
        "operationId": "getAssetInfo",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetAssetRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "success operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetInfo"
                }
              }
            }
          },
          "400": {
            "description": "invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/v1.0.0/asset/get-assets": {
      "post": {
        "summary": "Get Assets Info",
        "operationId": "getAssetsInfo",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GetAssetsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "success operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetInfoListResponse"
                }
              }
            }
          },
          "400": {
            "description": "invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "not found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AssetInfo": {
        "type": "object",
        "properties": {
          "assetId": {
            "type": "string"
          },
          "fingerprint": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "policyId": {
            "type": "string"
          },
          "supply": {
            "$ref": "#/components/schemas/BigInt"
          },
          "quantity": {
            "$ref": "#/components/schemas/BigInt",
            "deprecated": true
          }
        }
      },
      "BigInt": {
        "required": ["value", "__type"],
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "__type": {
            "type": "string",
            "enum": ["bigint"]
          }
        }
      },
      "ExtraData": {
        "type": "object",
        "properties": {
          "nftMetadata": {
            "type": "boolean"
          },
          "tokenMetadata": {
            "type": "boolean"
          }
        }
      },
      "ExtraDataAssetIds": {
        "type": "object",
        "properties": {
          "nftMetadata": {
            "type": "boolean"
          },
          "tokenMetadata": {
            "type": "boolean"
          }
        }
      },
      "GetAssetRequest": {
        "required": ["assetId"],
        "type": "object",
        "properties": {
          "assetId": {
            "type": "string"
          },
          "extraData": {
            "$ref": "#/components/schemas/ExtraData"
          }
        }
      },
      "GetAssetsRequest": {
        "required": ["assetIds"],
        "type": "object",
        "properties": {
          "assetIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "extraData": {
            "$ref": "#/components/schemas/ExtraDataAssetIds"
          }
        }
      },
      "AssetInfoListResponse": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/AssetInfo"
        }
      }
    }
  }
}
