Skip to content

Difficalcy.Catch v1

CatchCalculator


GET /api/info

Response 200 OK

{
    "rulesetName": "string",
    "calculatorName": "string",
    "calculatorPackage": "string",
    "calculatorVersion": "string",
    "calculatorUrl": "string"
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "type": "object",
    "properties": {
        "rulesetName": {
            "type": "string",
            "nullable": true
        },
        "calculatorName": {
            "type": "string",
            "nullable": true
        },
        "calculatorPackage": {
            "type": "string",
            "nullable": true
        },
        "calculatorVersion": {
            "type": "string",
            "nullable": true
        },
        "calculatorUrl": {
            "type": "string",
            "nullable": true
        }
    },
    "additionalProperties": false
}

GET /api/calculation

Input parameters

Parameter In Type Default Nullable Description
BeatmapId query string No
Combo query integer No
LargeDroplets query integer No
Misses query integer No
Mods query integer No
SmallDroplets query integer No

Response 200 OK

{
    "difficulty": {
        "total": 10.12
    },
    "performance": {
        "total": 10.12
    },
    "accuracy": 10.12,
    "combo": 10.12
}
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "type": "object",
    "properties": {
        "difficulty": {
            "$ref": "#/components/schemas/CatchDifficulty"
        },
        "performance": {
            "$ref": "#/components/schemas/CatchPerformance"
        },
        "accuracy": {
            "type": "number",
            "format": "double"
        },
        "combo": {
            "type": "number",
            "format": "double"
        }
    },
    "additionalProperties": false
}

POST /api/batch/calculation

Request body

[
    {
        "beatmapId": "string",
        "mods": 0,
        "combo": 296,
        "misses": 207,
        "smallDroplets": 253,
        "largeDroplets": 228
    }
]
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the request body
{
    "type": "array",
    "items": {
        "$ref": "#/components/schemas/CatchScore"
    }
}

Response 200 OK

[
    {
        "difficulty": {
            "total": 10.12
        },
        "performance": {
            "total": 10.12
        },
        "accuracy": 10.12,
        "combo": 10.12
    }
]
⚠️ This example has been generated automatically from the schema and it is not accurate. Refer to the schema for more information.

Schema of the response body
{
    "type": "array",
    "items": {
        "$ref": "#/components/schemas/CatchCalculation"
    }
}

Schemas

CalculatorInfo

Name Type
calculatorName string| null
calculatorPackage string| null
calculatorUrl string| null
calculatorVersion string| null
rulesetName string| null

CatchCalculation

Name Type
accuracy number(double)
combo number(double)
difficulty CatchDifficulty
performance CatchPerformance

CatchDifficulty

Name Type
total number(double)

CatchPerformance

Name Type
total number(double)

CatchScore

Name Type
beatmapId string
combo integer(int32)| null
largeDroplets integer(int32)| null
misses integer(int32)
mods integer(int32)
smallDroplets integer(int32)| null

Generated from difficalcy-catch OpenAPI schema