Skip to content
This repository has been archived by the owner on Sep 30, 2019. It is now read-only.

Latest commit

 

History

History
31 lines (21 loc) · 1019 Bytes

README.md

File metadata and controls

31 lines (21 loc) · 1019 Bytes

KeepCoding Django

Install

make install

Development server

make start

httpie

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'

create user

http -v -f POST http://127.0.0.1:8000/api/v1/user/ [email protected] password=basicsecret is_admin=False

create post

http -v -f POST http://127.0.0.1:8000/api/v1/post/ title=NewPostTitle owner='[email protected]'