From 9067c85a79837e8a3b51b4607d5ac9ba7c1ab151 Mon Sep 17 00:00:00 2001 From: Stuart Kuentzel Date: Tue, 24 Sep 2024 17:54:25 +0900 Subject: [PATCH] adds network user api endpoints --- api/bringyour.yml | 86 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 85 insertions(+), 1 deletion(-) diff --git a/api/bringyour.yml b/api/bringyour.yml index a175ce1..6e0870d 100644 --- a/api/bringyour.yml +++ b/api/bringyour.yml @@ -387,6 +387,39 @@ paths: schema: $ref: "#/components/schemas/NetworkClientsResult" + /network/user: + get: + description: Get the network user + operationId: Network User + security: + - BearerAuth: [] + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/NetworkUserResult" + + + /network/user/update: + post: + description: Update network user profile + operationId: Network User Update + security: + - BearerAuth: [] + requestBody: + required: true + content: + application/json: + schema: + $ref: "#/components/schemas/NetworkUserUpdateArgs" + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/NetworkUserUpdateResult" + /preferences/set-preferences: post: description: | @@ -2712,4 +2745,55 @@ components: properties: referral_code: description: udid - type: string \ No newline at end of file + type: string + + NetworkUser: + type: object + properties: + user_id: + description: udid + type: string + user_name: + type: string + user_auth: + type: string + verified: + type: string + auth_type: + type: string + enum: + - password + - apple + - google + - bringyour + - guest + network_name: + type: string + + NetworkUserResult: + type: object + properties: + network_user: + $ref: "#/components/schemas/NetworkUser" + error: + type: object + properties: + message: + type: string + + NetworkUserUpdateArgs: + type: object + properties: + network_name: + type: string + username: + type: string + + NetworkUserUpdateResult: + type: object + properties: + error: + type: object + properties: + message: + type: string \ No newline at end of file