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

sergio-alonso/keepcoding-django

Repository files navigation

KeepCoding Django

Install

make install

Development server

make start

httpie

http -v -f POST http://127.0.0.1:8000/api/v1/user/ email=user.name@example.com password=basicsecret is_admin=False
echo -ne "user.name@example.com:basicsecret" | base64 --wrap 0
http -v -f GET http://127.0.0.1:8000/api/v1/user/user.name@example.com/ 'Authorization: Basic dXNlci5uYW1lQGV4YW1wbGUuY29tOmJhc2ljc2VjcmV0'
http -v -f PATCH http://127.0.0.1:8000/api/v1/user/user.name@example.com/ email=user.name@example.com is_admin=True 'Authorization: Basic dXNlci5uYW1lQGV4YW1wbGUuY29tOmJhc2ljc2VjcmV0'
http -v -f DELETE http://127.0.0.1:8000/api/v1/user/user.name@example.com/ 'Authorization: Basic dXNlci5uYW1lQGV4YW1wbGUuY29tOmJhc2ljc2VjcmV0'

create user

http -v -f POST http://127.0.0.1:8000/api/v1/user/ email=user.name@example.com password=basicsecret is_admin=False

create post

http -v -f POST http://127.0.0.1:8000/api/v1/post/ title=NewPostTitle owner='user.name@example.com'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published