# dumpdata
python manage.py dumpdata movies -o movies.json
# loaddata (db 없는 경우 migrate부터 시작)
python manage.py migrate
python manage.py loaddata movies.json
http://127.0.0.1:8000/api/v1/swagger/
http://127.0.0.1:8000/api/v1/accounts/login/
[POST] body
- username
- password
- return key
{
"key": "b3f603700116ea7c4754d44eeea44d30936e1e1d"
}
http://127.0.0.1:8000/api/v1/accounts/logout/
[POST] headers
- Authorization
- return
{
"detail": "로그아웃되었습니다."
}
http://127.0.0.1:8000/api/v1/accounts/signup/
[POST] body
- username
- password1
- password2
- return
{
"key": "b3f603700116ea7c4754d44eeea44d30936e1e1d"
}
- naver :
http://127.0.0.1:8000/api/v1/accounts/naver/login/
- google :
http://127.0.0.1:8000/api/v1/accounts/google/login/
- kakao :
http://127.0.0.1:8000/api/v1/accounts/kakao/login/