Skip to content

Commit

Permalink
Deploying to gh-pages from @ 681fce7 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
AiverAiva committed Oct 13, 2023
1 parent 6870574 commit 8d6da61
Showing 1 changed file with 74 additions and 2 deletions.
76 changes: 74 additions & 2 deletions bundle.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,83 @@
"description": "Basic checks to the api."
},
{
"name": "osu",
"description": "osu! related endpoints."
"name": "osu!",
"description": "osu! related."
}
],
"paths": {
"/osu/profileCard/{username}": {
"get": {
"tags": [
"osu!"
],
"summary": "Get player profile card image",
"description": "This endpoint returns an image of the player's profile data for the specified username. \nThe profile card contains visual representation of player data such as avatar, rank, and statistics.\n",
"operationId": "profileCard",
"parameters": [
{
"in": "path",
"name": "username",
"required": true,
"schema": {
"type": "string"
},
"description": "The username of the player for whom the profile card image is requested."
},
{
"in": "query",
"name": "mode",
"required": false,
"schema": {
"type": "string",
"enum": [
"osu",
"taiko",
"fruits",
"mania"
]
},
"description": "**Optional** mode parameter with possible values \"osu\", \"taiko\", \"fruits\"or \"mania\"."
}
],
"responses": {
"200": {
"description": "Successful response with player profile card image.",
"content": {
"image/png": {
"schema": {
"type": "string",
"format": "binary"
},
"examples": {
"response": {
"value": "an image"
}
}
}
}
},
"400": {
"description": "Player not found. Indicates that the specified username does not exist.",
"content": {
"application/json": {
"schema": {
"type": "string",
"format": "binary"
},
"examples": {
"response": {
"value": {
"error": "Unknown username or mode, please check the documents. (api.weikuwu.me)"
}
}
}
}
}
}
}
}
},
"/hello": {
"post": {
"tags": [
Expand Down

0 comments on commit 8d6da61

Please sign in to comment.