Designing a RESTful Web API UNIT-V
5.7 Designing a RESTful Web API
In UNIT-I you learned about the characteristics of Representational State Transfer
(REST) systems and RESTful web APIs. In this section you will learn how to develop a
RESTful web API. The example in this section uses the Django REST framework [33] for
building a REST API. With the Django framework already installed, the Django REST
framework can be installed as follows:
pip install djangorestframework
pip install markdown
pip install django-filter
After installing the Django REST framework, create a new Django project named rest fulapi,
and then start a new app called myapp, as follows:
django-admin.py startprojectrestfulapi
cd restfulapi
python manage.py startappmyapp
MRITS/II-II/CSE-IoT/Sensors and Devices 18