> For the complete documentation index, see [llms.txt](https://documenttesting.gitbook.io/ecolog-api-reference/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documenttesting.gitbook.io/ecolog-api-reference/reference/api/action.md).

# 실천

## 실천 조회 <a href="#view" id="view"></a>

## 전체 실천의 이름과 ID를 조회할 수 있는 API

<mark style="color:green;">`POST`</mark> `https://www.eco-log-backend.kro.kr/api/behavior`

#### Headers

| Name                                    | Type   | Description                                          |
| --------------------------------------- | ------ | ---------------------------------------------------- |
| key<mark style="color:red;">\*</mark>   | String | Authorization                                        |
| value<mark style="color:red;">\*</mark> | String | <p>로그인 시 JWT<br>  - ex. <code>Bearer {토큰}</code></p> |

{% tabs %}
{% tab title="200: OK " %}
{% tabs %}
{% tab title="Schema" %}

{% endtab %}
{% endtabs %}

```json
{
	"spend": [
		{
			"behavior": 1,
			"name": "친환경 상점 이용"
		},
		{
			"behavior": 2,
			"name": "소비 없는 하루"
		},
		{
			"behavior": 3,
			"name": "중고 거래"
		},
		...
	],
	"outdoor": [
		{
			"behavior": 6,
			"name" "대중 교통 이용"
		}, 
		...
	],
	...
}
```

{% endtab %}
{% endtabs %}

| 항목         | 타입      | 설명                                                                                                                |
| ---------- | ------- | ----------------------------------------------------------------------------------------------------------------- |
|            | Array   | <p>실천의 카테고리</p><ul><li>spend: 소비</li><li>outdoor: 외출</li><li>living: 생활</li><li>eat: 식사</li><li>etc: 기타</li></ul> |
| behaviorId | Integer | 실천 ID                                                                                                             |
| name       | String  | 실천 이름                                                                                                             |
