0% found this document useful (0 votes)
90 views1 page

8.designing A RESTful Web API

This document provides guidance on designing a RESTful web API using the Django REST framework. It outlines the installation process for the framework and the steps to create a new Django project and app. The example project is named 'restfulapi' with an app called 'myapp'.

Uploaded by

vinayak457
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
90 views1 page

8.designing A RESTful Web API

This document provides guidance on designing a RESTful web API using the Django REST framework. It outlines the installation process for the framework and the steps to create a new Django project and app. The example project is named 'restfulapi' with an app called 'myapp'.

Uploaded by

vinayak457
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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

You might also like