---
# System prepended metadata

title: Untitled

---

部落格 api

登入
/login GET {"username":"","password":""}

null
{
    "name": "aaa",
    "e_mail": "aaaa@bbb",
    "username": "aaa",
    "phone": null,
    "birthday": null
}

註冊
/signup POST {"name":"","e_mail":"","username":"","password":"","checkPassword":""}

"兩次輸入密碼不相符"
"該帳號已被使用"
"新增會員資料時發生錯誤"
Success

查USER的全部文章
/{userName} GET

{"article_id":"","title":"","content":"","islock":"","password":"","password_hint":"","created_time":"","modified":"",commentList:{"comment_id":"","content":"","created_time":""}}

查看沒有鎖密碼的文章
/{userName}/{id} GET

{"article_id":"","title":"","content":"","islock":"","password":"","password_hint":"","created_time":"","modified":"",commentList:{"comment_id":"","content":"","created_time":""}}

查看有鎖密碼的文章
/{userName}/{id} POST {"articlePassword":""}

密碼錯誤return null
{"article_id":"","title":"","content":"","islock":"","password":"","password_hint":"","created_time":"","modified":"",commentList:{"comment_id":"","content":"","created_time":""}}

儲存文章
/{userName}/edit POST {{"title":"","content":"","islock":"0 or 1","password":"","password_hint":""},{"tag_id":"","name":""}}

"新增文章時發生錯誤"
"Success"

取得文章分類
/{userName}/getAllTag GET

{"tag_id":"","name":""}


