# discourse haus
AWS EC2 instance 18.205.161.225
url https://forum.daohaus.club/
discourse api https://docs.discourse.org/#tag/Posts
pokemol spike branch feature/dc-comments
## new dao
* create new and add option on current daos
* save link to category to dao meta
* add link to dh/poke
https://forum.daohaus.club/categories.json
POST
```
{
"name": "TEST2",
"color": "000000",
"text_color": "ffffff"
}
```
headers
```
Content-Type:application/json
Api-Key: [key]
Api-Username:[username]
```
response
```
{
"category": {
"id": 9,
"name": "TEST4",
"color": "283bdc",
"text_color": "7e1eaf",
"slug": "test4",
...
}
}
```
## new proposal
* optional create new post
* save to proposal meta
* link to from proposal
* ? when using a discourse post in link field auto fill proposal
https://forum.daohaus.club/posts.json
post
```
{
"title": "dao name - proposal title",
"raw": "start discussion about [proposal title] below ",
"category": 6
}
```
headers
```
Content-Type:application/json
Api-Key: [key]
Api-Username:[username]
```
response
```
{
"id": 27,
"created_at": "2020-09-20T19:55:49.920Z",
"cooked": "<p>start discussion about [proposal title] below</p>",
"post_number": 1,
"topic_id": 20,
"topic_slug": "dao-name-proposal-title",
...
}
```
example url: https://forum.daohaus.club/t/dao-name-proposal-title/20
## notifications
* user can receive email notifications on new proposals from discourse account
## list posts
need api for that too