This repo has the code for a Notes API, my first Django RESTful API project. Hope you liked it.
- Have
Pythonandpipinstalled on your local machine
Create an isolated environment for the project with virtualenv. You can install virtualenv with the following command:
pip install virtualenv
Clone the project from GitHub:
git clone https://github.com/Adiswat/RestAPI-projectNavigate to the cloned project directory:
cd RestAPI-project
Create a virtual environment for the project:
virtualenv venvThen, activate it:
.\venv\Scripts\activate (for Windows user)Install Django and Django REST Framework:
pip install -r requirements.txtFinally, cd into the notes_app folder and run the project:
python manage.py runserverGo to http://localhost:8000/api/ to see if the API is up and running to create notes:):
You can add notes and refresh the webpage to see the added notes. Then, view the created notes at 127.0.0.1:8000/api/id (e.g. http://127.0.0.1:8000/api/3/):
You can also delete or update the note on the detail page using the delete and put button respectively. Thank you:)
Eureka! We have completed our first REST API project.
Happy Coding:)

