Follow the following steps to setup your dev environment
Run the following commands to get started using virtualenv
# once - create virtual environment
virtualenv env -p python3.6
source env/bin/activate
1.make sure youve navigated to the folder containing the cloned files in your terminal
2.pip install -r requirements.txt
3.python manage.py migrate
4.python manage.py createsuperuser
5.python manage.py runserver
Visit List all the APIs documentation http://localhost:8080/docs/
Visit List all the APIs on localhost http://localhost:8080/api/
A dockerized micro service for a saas app. Our API allows subscriptions to a saas app, it also includes documentation of all allowed operations and you can test it straight from our server. No need for external testers like postman. We use our integrated curl setup to test our endpoints. We store user details, their plans, current subscriptions and all transactions. How To:
- All GET requests are to get information(retrieve what has been previously stored). 2 all POST are to add information(create new users, transactions etc.)
- All upt requests are to update stored data
- Patch is to overwrite.
- Delete deletes all stored data. E.g subscription.microapi.dev/api/plan/11/delete will delete a plan with the id 11. {ID} parameters relate to the id of a particular object. Every list, user, transaction and subscriptions are given ids. Use this to access them. Please note that two models can have the same id, since they exist as separate entities. To return data as json, please add /v1.json to the url. It also supports yaml, which can be gotten by appending /v1.json Also, a much more sophisticated doc is available by appending /redoc/.
This is Team Gold's backend Task