# Admin API

## Remove

<mark style="color:red;">`DELETE`</mark> `/admin/remove`

Admin Remove

#### Path Parameters

| Name                                          | Type   | Description |
| --------------------------------------------- | ------ | ----------- |
| idContent\*<mark style="color:red;">\*</mark> | String | Content Id  |

#### Headers

| Name                                       | Type   | Description |
| ------------------------------------------ | ------ | ----------- |
| cookie\*<mark style="color:red;">\*</mark> | String | accessToken |

{% tabs %}
{% tab title="200: OK Response remove success" %}

```javascript
{
    "data" : null,
    "message": "successfully removed"
}
```

{% endtab %}

{% tab title="400: Bad Request Response bad request" %}

```javascript
{
    "data" null,
    "message" : "invalid request"
}
```

{% endtab %}

{% tab title="500: Internal Server Error Response server error" %}

```javascript
{
    "data" null,
    "message" : "server error"
}
```

{% endtab %}
{% endtabs %}

## Add

<mark style="color:green;">`POST`</mark> `/admin/add`

Admin Add

#### Headers

| Name                                       | Type   | Description |
| ------------------------------------------ | ------ | ----------- |
| cookie\*<mark style="color:red;">\*</mark> | String | accessToken |

#### Request Body

| Name                                                | Type   | Description      |
| --------------------------------------------------- | ------ | ---------------- |
| content\_type<mark style="color:red;">\*</mark>     | String | content type     |
| content\_category<mark style="color:red;">\*</mark> | String | content category |
| content\_name<mark style="color:red;">\*</mark>     | String | content name     |

{% tabs %}
{% tab title="201: Created Response content add success" %}

```javascript
{
  "data" : [
      { 
        "id" : PK,
        "content_type" : "movie",
        "content_category" : "동기부여",
        "content_name" : "성공적인 삶",
        "content_image": "https://allforyou.s3.amazonaws.com...",
        "like": 12
      }, ...
  ],
  "message" : "successfully added"
}
```

{% endtab %}

{% tab title="401: Unauthorized Response content add fail" %}

```javascript
{
    "data" null,
    "message" : "invalid request"
}
```

{% endtab %}

{% tab title="500: Internal Server Error Response server error" %}

```javascript
{
    "data" null,
    "message" : "server error"
}
```

{% endtab %}
{% endtabs %}
