This is an API developed with testing purposes, here is developed a cashback system based in orders generated by dealers.

The app is entirely dockerized and its steps needs the installation of Docker and Docker Compose.

Installing and running the app

git clone git@github.com:aldo774/gb_cashback.git
cd gb_cashback
docker-compose -f dev.yml up python

Run the tests

docker-compose -f dev.yml up tests

for initial tests, there is an initial user that can be used:

user: 15350946056 password: apassword

REST API

Usage

Auth:

Here we're using JWT authentication.

Headers:
Authorization: Bearer <token>

Collection:

There is a collection at this repo that can be used to eval all endpoints

Openapi

There is a openapi for each endpoint in this project http://localhost:8000/swagger/