# Account

## Create an account

<mark style="color:green;">`POST`</mark> `https://api.lolwallpapers.net/beta/account`

#### Request Body

| Name        | Type   | Description                                     |
| ----------- | ------ | ----------------------------------------------- |
| displayName | string | The name that will be displayed on the website. |
| email       | string | A valid email address.                          |
| password    | string | A 8 characters long (minimum) password.         |
| bio         | string | A little description about the user.            |

{% tabs %}
{% tab title="201 Account successfully created." %}

```
{
    "status": "success",
    "data": null
}
```

{% endtab %}

{% tab title="400 Validation failed." %}

```
{
    "status": "fail",
    "data": {
        "displayName": [
            "This value should not be blank."
        ],
        "email": [
            "This value should not be blank."
        ],
        "password": [
            "This value should not be blank."
        ]
    }
}
```

{% endtab %}
{% endtabs %}

## Get the account information

<mark style="color:blue;">`GET`</mark> `https://api.lolwallpapers.net/beta/account`

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}

## Edit the account

<mark style="color:purple;">`PATCH`</mark> `https://api.lolwallpapers.net/beta/account`

#### Request Body

| Name        | Type   | Description                                     |
| ----------- | ------ | ----------------------------------------------- |
| displayName | string | The name that will be displayed on the website. |
| email       | string | A valid email address.                          |
| password    | string | A 8 characters long (minimum) password.         |
| bio         | string | A little description about the user.            |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}

## Get a list of wallpapers

<mark style="color:blue;">`GET`</mark> `https://api.lolwallpapers.net/beta/account/wallpapers`

#### Query Parameters

| Name  | Type   | Description                                                                                      |
| ----- | ------ | ------------------------------------------------------------------------------------------------ |
| limit | string | <p>The amount of wallpapers to display per page.<br>Default: 20<br>Minimum: 1<br>Maximum: 50</p> |
| page  | string | <p>The page to display.<br>Default: 1<br>Minimum: 1</p>                                          |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}
