https://github.com/forhadulislam/django-restapi
A project based on Django REST framework
https://github.com/forhadulislam/django-restapi
django django-rest-framework holvi rest-api
Last synced: about 2 months ago
JSON representation
A project based on Django REST framework
- Host: GitHub
- URL: https://github.com/forhadulislam/django-restapi
- Owner: forhadulislam
- Created: 2018-10-19T00:16:29.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-22T04:06:19.000Z (over 7 years ago)
- Last Synced: 2025-01-11T16:50:39.350Z (over 1 year ago)
- Topics: django, django-rest-framework, holvi, rest-api
- Language: Python
- Homepage:
- Size: 47.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Django REST API Exercise
A project on REST API implementation using Django REST Framework.
### How to run the project
Make sure all of the requirements are installed
Django
djangorestframework
djangorestframework-jwt
After installing the requirements run the command:
python manage.py runserver
To run on a specific port:
python manage.py runserver 8000
To load money to a customer's account use this command:
python manage.py load_money customer_id float-amount currency(EUR, USD)
# currency is case sensitive
Example:
python manage.py load_money 7d901219 30.0 EUR
For receiving requests:
URI : /api/issuer
Query param: json
Method: GET
Value:
{
"type": "presentment",
"card_id": "4321LOBO",
"transaction_id": "1234ZORRO",
"merchant_name": "authorisation",
"merchant_country": "US",
"merchant_mcc": "5139",
"billing_amount": "90.00",
"billing_currency": "EUR",
"transaction_amount": "100.00",
"transaction_currency": "USD"
}