From 73efa4fe91d2471dec7bbfad40c40e86c2c2d93f Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Wed, 6 Mar 2024 10:46:11 -0500 Subject: [PATCH] [U] Update docs --- docs/api-v2.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/docs/api-v2.md b/docs/api-v2.md index d6d11ad0..c265081c 100644 --- a/docs/api-v2.md +++ b/docs/api-v2.md @@ -4,6 +4,11 @@ Located at: [icu.samnyan.aqua.net.CardController](icu/samnyan/aqua/net/CardController.kt) +**/card/default-game** : Get the default game for the card. + +* username: String +* **Returns**: Game ID + **/card/link** : Bind a card to the user. This action will migrate selected data from the card to the user's ghost card. * token: String @@ -23,6 +28,23 @@ Located at: [icu.samnyan.aqua.net.CardController](icu/samnyan/aqua/net/CardContr * **Returns**: Success message +### Frontier : /api/v2/frontier + +Located at: [icu.samnyan.aqua.net.Frontier](icu/samnyan/aqua/net/Frontier.kt) + +**/frontier/lookup-card** : Lookup a card by access code + +* ftk: String +* accessCode: String +* **Returns**: Card information + +**/frontier/register-card** : Register a new card by access code + +* ftk: String +* accessCode: String +* **Returns**: Card information + + ### UserRegistrar : /api/v2/user Located at: [icu.samnyan.aqua.net.UserRegistrar](icu/samnyan/aqua/net/UserRegistrar.kt) @@ -58,3 +80,14 @@ Located at: [icu.samnyan.aqua.net.UserRegistrar](icu/samnyan/aqua/net/UserRegist * key: String * value: String * **Returns**: Success message + +**/user/keychip** : Get a Keychip ID so that the user can connect to the server. + +* token: String +* **Returns**: Success message + +**/user/upload-pfp** : Upload a profile picture for the user. + +* token: String +* file: MultipartFile +* **Returns**: Success message