| Route | Description |
|---|---|
| POST /external-accounts | Creates the data of external accounts for linking to Real Dev Squad accounts |
| GET /external-accounts | Fetches the data (attributes) of a external account |
Creates the data of external accounts for linking to Real Dev Squad accounts
-
Params
None -
Query
None -
Body Possible values for
type: [discord]{ "type": "<ACCOUNT_TYPE> (String)", "token": "<ENCRYPTED_TOKEN> (String)", "attributes": "<ACCOUNT_ATTRIBUTES> (Object)", } -
Headers
Authorization: Bearer<JWT> -
Success Responses:
- Code: 201
- Content:
{ "message": "Added account data successfully" }
- Code: 201
-
Error Responses:
- Code: 400
- Content:
{ "statusCode": 400, "error": "Bad Request", "message": "Invalid Request" } - Code: 401
- Content:
{ "statusCode": 401, "error": "Unauthorized", "message": "Unauthorized Account" }- Code: 500
- Content:
{ "statusCode": 500, "error": "Internal Server Error", "message": "Something went wrong. Please contact admin" }
- Code: 400
Fetches the data (attributes) of a external account
-
Params
:token :<EXTERNAL_ACCOUNT_TOKEN> (String) -
Query
type:<ACCOUNT_TYPE> (String) -
Headers
None -
Cookie
rds-session:<JWT> -
Success Responses:
- Code: 200
- Content:
{ "attributes": "<ACCOUNT_ATTRIBUTES> (Object)" }
- Code: 200
-
Error Responses:
- Code: 401
- Content:
{ "statusCode": 401, "error": "Unauthorized", "message": "Unauthenticated User" }- Code: 500
- Content:
{ "statusCode": 500, "error": "Internal Server Error", "message": "Something went wrong. Please contact admin" }
- Code: 401