Skip to content

guancyxx/django_jwt_test_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The goal is to create a django project, using django rest framwork, and jwt, and implement the following 3 endpoints:

  • /signup/, testing request:

    curl --location 'http://127.0.0.1:8000/signup/' \
    --data-raw '{
        "email": "[email protected]",
        "password": "123"
    }'
    • Expected server response: {id, email} of the user
  • /signin/ , testing request:

    curl --location 'http://127.0.0.1:8000/signin/' \
    --data-raw '{
        "email": "[email protected]",
        "password": "123"
    }'
    • Expected server response: dict of {access_token, refresh_token}
  • /me/, testing request:

    curl --location 'http://127.0.0.1:8000/me/' \
    --header 'Authorization: Bearer <access_token_from_signin>'
    • Expected server response: dict of {id, email} that associated with the token.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published