diff --git a/app/swagger/merms_swagger.json b/app/swagger/merms_swagger.json index 4c6c7ac..ba99beb 100644 --- a/app/swagger/merms_swagger.json +++ b/app/swagger/merms_swagger.json @@ -97,6 +97,12 @@ "LoginResponse": { "$ref": "swagger/schemas/LoginResponse.json" }, + "Account": { + "$ref": "swagger/schemas/UserRequest.json" + }, + "AccountResponse": { + "$ref": "swagger/schemas/AccountResponse.json" + }, "Register": { "$ref": "swagger/schemas/RegisterRequest.json" }, diff --git a/app/swagger/paths/Account.json b/app/swagger/paths/Account.json index 787535e..d4288a0 100644 --- a/app/swagger/paths/Account.json +++ b/app/swagger/paths/Account.json @@ -4,8 +4,8 @@ "Account" ], "summary": "User Account + Profile ", - "description": "Initiate Login Request", - "operationId": "startLogin", + "description": "User Account Request", + "operationId": "account", "requestBody": { "description": "Post JSON to conduct login request", "content": { @@ -33,12 +33,12 @@ "content": { "application/json": { "schema": { - "$ref": "../schemas/LoginResponse.json" + "$ref": "../schemas/AccountResponse.json" } }, "application/xml": { "schema": { - "$ref": "../schemas/LoginResponse.json" + "$ref": "../schemas/AccountResponse.json" } } } diff --git a/app/swagger/schemas/AccountResponse.json b/app/swagger/schemas/AccountResponse.json new file mode 100644 index 0000000..791ff59 --- /dev/null +++ b/app/swagger/schemas/AccountResponse.json @@ -0,0 +1,49 @@ +{ + "type": "object", + "properties": { + "member_id": { + "type": "string", + "example": "200" + }, + "uid": { + "type": "string", + "example": "8888-999998-9999" + }, + "username": { + "type": "string", + "example": "username" + }, + "account_name": { + "type": "string", + "example": "account_name" + }, + "firstname": { + "type": "string", + "example": "firstname" + }, + "lastname": { + "type": "string", + "example": "lastname" + }, + "room": { + "type": "string", + "example": "room" + }, + "token": { + "type": "string", + "example": "username" + }, + "resultDescription": { + "type": "string", + "example": "Successful" + }, + "resultCode": { + "type": "string", + "example": "00" + } + }, + "xml": { + "name": "AccountResponse" + } +} +