- config the setting.py
Upost/setting.py- Edit
SECRET_KEY - Config the email sender account
- Edit
- pip install requirements
pip install -r requirements.txt
- Create Super User
python3 manage.py createsuperuser --username admin --email admin@example.com
- Do the migrate
python manage.py migrate - run!
python3 manage.py runserver 8000
/api/user/loginPOST- username
- password
- return
token
/api/user/registerPOSTemailusername- return
tokenon via Email
/api/user/createPOSTtokenpasswordsex
/api/user/infoGET- Get user info
/api/post/b/GET- return All board
/api/post/b/<board_id/>GET- return Posts on board
/api/post/p/GET- return all Post
/api/post/p/<post_id>/GET- return post info
/api/b/<board_id>/createPOSTtitletext- Create Post
p/<post_id>/delGET- Delete Post
p/<post_id>/editPOSTtitletext- Edit Post
p/<post_id>/createPOSTtext
p/<comment_id>/delGET- Delete comment
p/<comment_id>/editPOSTtext- Edit comment
p/<post_id>/likeGET- like post
p/<post_id>/unlikeGET- unlike post
c/<comment_id>/likeGET- like comment
c/<comment_id>/unlikeGET- unlike comment
- Django
- Django Restful framwork
