mindcurrent / djanky-django

Daniel's Janky Attempt at a Django RESTful API Server
0 stars 1 forks source link

Test new REST API with httpie #27

Open dpcunningham opened 4 years ago

dpcunningham commented 4 years ago

Project site: https://httpie.org/ GitHub repo: https://github.com/jakubroztocil/httpie#installation

dpcunningham commented 4 years ago
$ http  http://127.0.0.1:8000/users/
HTTP/1.1 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Length: 168
Content-Type: application/json
Date: Tue, 08 Oct 2019 21:57:57 GMT
Server: WSGIServer/0.2 CPython/3.6.8
Vary: Accept, Cookie
X-Frame-Options: SAMEORIGIN

{
    "count": 1,
    "next": null,
    "previous": null,
    "results": [
        {
            "email": "daniel.cunningham@mindcurrent.io",
            "groups": [],
            "url": "http://127.0.0.1:8000/users/1/",
            "username": "djadmin"
        }
    ]
}