Skip to content

Secure RESTful API Using the Django REST framework and JWT authentication in comply with OWASP and GDPR standards.

Notifications You must be signed in to change notification settings

Pascal273/SoftDesk_RESTful_API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This is the 10th project for the Python path of Openclassrooms. The goal is to Create a Secure RESTful API Using Django REST.

Required Setup to run the program:

  1. Python version 3.10.2 or higher must be installed.
  2. Create the directory in which you want to keep the program.
  3. Open your terminal.
  4. Navigate to the folder that contains the manage.py and requirements.txt files
  5. Create your Virtual Environment by running the command: python -m venv venv
  6. Activate the Environment by running: venv\Scripts\activate.bat (Windows) or venv\Scripts\activate.ps1 (Powershell) or source venv/bin/activate (OS)
  7. Install the Requirements by running the command: pip install -r requirements.txt

How to run the program:

  1. Open your terminal
  2. Navigate to the directory that contains the manage.py file
  3. Activate the environment by running: venv\Scripts\activate.bat (Windows) or venv\Scripts\activate.ps1 (Powershell) or source venv/bin/activate (OS)
  4. Run the command: python manage.py runserver (Windows) or python3 manage.py runserver(Mac) The default port is 8000. Add the port-number as a parameter to runserver to use a different port to run the server. For Example: python manage.py runserver 9000

When the server is running after step 4 of the procedure, the Softdesk-RESTful-API can be accessed with your browser by pasting the URL: http://127.0.0.1:8000/ or copy and paste the URL that is displayed in the Terminal.

Steps 1-3 are only required for initial installation. For subsequent launches, you only have to execute step 4 from the root folder of the project.

Technologies

Django -version 4.0.3 djangorestframework-simplejwt -version 5.1.0 djangorestframework -version 3.13.1 drf-nested-routers -version 0.93.4

Endpoint Documentation

Postman

About

Secure RESTful API Using the Django REST framework and JWT authentication in comply with OWASP and GDPR standards.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages