/oowlish

Django REST API that provides information about customers.

Primary LanguagePython

OOWLISH-Task

Django REST API that provides information about customers.

Project Setup

Install requirements

$ pip install -r requirements.txt --user

Management command : Create two extra fields for latitude and longitude using Google Maps API

$ python manage.py Google_Maps_API

Management command : import the customers.csv file into your database

$ python manage.py Database

Update the database

$ python manage.py migrate

Start the web server on http://127.0.0.1:8000/

$ python manage.py runserver

Usage

HTTP verbs Paths Used for
GET api/customers/ List all customers
GET api/customers/id Show a single customer

Simple web page to consume the REST API

http://127.0.0.1:8000/swagger/

Swagger Screenshot

List all customers image Show a single customer image MySQL Database image