Clone this repo
git clone https://github.com/b4isty/kredily_ecommerce_api.git
To run the project use docker run command below
docker-compose up --build
To enter into docker terminal use below command
docker-compose exec <container_name> bash
To run tests go to docker terminal and run
python manage.py test
To create a user go to register API at api/sign-up
Sample payload
{
"username": "test_user",
"password": "abc@123"
}
To login navigate to api/token/
Sample payload
{
"username": "test_user",
"password": "abc@123"
}
It will return a token. Use that token in header to authenticate the user on other APIs
To refresh token navigate to api/token/refresh/
accordingly with following payload
{
"token": "your token"
}
For detail API documentation check below API doc link
http://127.0.0.1:8000/doc/