The Python interpreter version used in the project is 2.7.6.
Django==1.9.1
djangorestframework==3.3.2
psycopg2==2.6.1
requests==2.9.1
xmltodict==0.9.2
with virtualenv: $ virtualenv <name>
or
with virtualenvwrapper: $ mkvirtualenv <name>
$ source ../<name>/bin/activate
or
$ workon <name>
$ git clone https://github.com/ematifrea/djrest_test
$ cd ../djrest_test
$ pip install -r requirements.txt
$ ./manage.py migrate
####to populate the default database( sqlite): $ ./manage.py loaddata_api
$ ./manage.py runserver
List orders : /orders/list/
Display 1 order: /orders/detail/1/
Search orders by model's fields and display result:
/orders/list/?<param>=<value>
where <param> can be any combination of the model fields : id, order_id,
marketplace, purchase_date, items, amount, currency, shipping
Create a new order: /orders/create/
Update an order: /orders/update/<pk>/
$ django-admin startproject djrest-test
$ cd djrest-test
$ ./manage.py startapp orders
$ ./manage.py createsuperuser
$ ./manage.py makemigrations
$ ./manage.py migrate