# Discourse API가 반환하는 필드 설명

**URL:** https://meta.discourse.org/t/description-of-fields-returned-by-discourse-api/168968
**Category:** Development
**Tags:** rest-api
**Created:** [11월 2, 2020, 7:28오전 UTC](https://meta.discourse.org/t/description-of-fields-returned-by-discourse-api/168968 "2020-11-02T07:28:20Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [11월 2, 2020, 6:13오후 UTC](https://meta.discourse.org/t/description-of-fields-returned-by-discourse-api/168968/2 "2020-11-02T18:13:54Z")

</div>

> [@Goutham\_Tholpadi](#):
>
> 이 정보를 어디서 얻을 수 있는지 조언을 구합니다.

사이트에 [Data Explorer 플러그인](https://meta.discourse.org/t/data-explorer-plugin/32566)이 설치되어 있다면, 항목 위에 마우스를 올려서 사용되는 숫자 코드의 세부 정보를 확인할 수 있습니다:

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/7/f707a4fe2029d7be32b40292f7a22ba7cbeadd6c.png)

예를 들어, `posts` 테이블의 `post_type` 필드 위에 마우스를 올리면 다음과 같은 값이 표시됩니다:

- regular: 1
- moderator action: 2
- small action: 3
- whisper: 4

[Data Explorer](https://meta.discourse.org/t/32566?silent=true) 외에 이 정보를 찾을 수 있는 유일한 곳은 Discourse 코드입니다. 예를 들어, `user_actions` 테이블의 각 `action_type`의 의미를 찾으려면 Rails 콘솔에 `UserAction.types`를 입력하세요. 그러면 다음과 같은 값이 반환됩니다:

`{:like=>1, :was_liked=>2, :bookmark=>3, :new_topic=>4, :reply=>5, :response=>6, :mention=>7, :quote=>9, :edit=>11, :new_private_message=>12, :got_private_message=>13, :solved=>15, :assigned=>16}`

---

_[View the full topic](https://meta.discourse.org/t/description-of-fields-returned-by-discourse-api/168968)._
