Create Restful Server authored by Derek Williams's avatar Derek Williams
<details>
<summary>
# **POST - Login**
</summary>
<details id="login-success">
<summary>
## **Successful Login**
</summary>
This endpoint is responsible for logging in players. A payload consisting of a username/password combination is required. This is an example of a successful login request.
## Request
```http
POST /login
```
## Body
```json
{
"username": "Merlin_Offline",
"password": "pw"
}
```
## Response
```json
{
"playerID": 29,
"authKey": "MjlNZXJsaW5fT2ZmbGluZQ=="
}
```
</summary>
</details>
<details id="login-failed">
<summary>
## **Failed Login**
</summary>
This is an example of a failed login request.
## Request
```http
POST /login
```
## Body
```json
{
"username": "Merlin_Offline",
"password": "password"
}
```
## Response
```text
Invalid Login - Incorrect Username/Password
```
</summary></details>
</details>