KeepCoding Django
make install
make start
http -v -f POST http://127.0.0.1:8000/api/v1/user/ [email protected] password=basicsecret is_admin=False
echo -ne "[email protected]:basicsecret" | base64 --wrap 0
http -v -f GET http://127.0.0.1:8000/api/v1/user/[email protected]/ 'Authorization: Basic dXNlci5uYW1lQGV4YW1wbGUuY29tOmJhc2ljc2VjcmV0'
http -v -f PATCH http://127.0.0.1:8000/api/v1/user/[email protected]/ [email protected] is_admin=True 'Authorization: Basic dXNlci5uYW1lQGV4YW1wbGUuY29tOmJhc2ljc2VjcmV0'
http -v -f DELETE http://127.0.0.1:8000/api/v1/user/[email protected]/ 'Authorization: Basic dXNlci5uYW1lQGV4YW1wbGUuY29tOmJhc2ljc2VjcmV0'
http -v -f POST http://127.0.0.1:8000/api/v1/user/ [email protected] password=basicsecret is_admin=False
http -v -f POST http://127.0.0.1:8000/api/v1/post/ title=NewPostTitle owner='[email protected]'