Skip to content

Difficalcy.Mania v1

ManiaCalculator


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
Goods query integer No
Greats query integer No
Mehs query integer No
Misses query integer No
Mods query integer No
Oks query integer No

Response 200 OK

{
    "difficulty": {
        "total": 10.12
    },
    "performance": {
        "total": 10.12,
        "difficulty": 10.12
    },
    "accuracy": 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/ManiaDifficulty"
        },
        "performance": {
            "$ref": "#/components/schemas/ManiaPerformance"
        },
        "accuracy": {
            "type": "number",
            "format": "double"
        }
    },
    "additionalProperties": false
}

POST /api/batch/calculation

Request body

[
    {
        "beatmapId": "string",
        "mods": 180,
        "misses": 95,
        "mehs": 118,
        "oks": 30,
        "goods": 216,
        "greats": 142
    }
]
⚠️ 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/ManiaScore"
    }
}

Response 200 OK

[
    {
        "difficulty": {
            "total": 10.12
        },
        "performance": {
            "total": 10.12,
            "difficulty": 10.12
        },
        "accuracy": 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/ManiaCalculation"
    }
}

Schemas

CalculatorInfo

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

ManiaCalculation

Name Type
accuracy number(double)
difficulty ManiaDifficulty
performance ManiaPerformance

ManiaDifficulty

Name Type
total number(double)

ManiaPerformance

Name Type
difficulty number(double)
total number(double)

ManiaScore

Name Type
beatmapId string
goods integer(int32)
greats integer(int32)
mehs integer(int32)
misses integer(int32)
mods integer(int32)
oks integer(int32)

Generated from difficalcy-mania OpenAPI schema