GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - codingforentrepreneurs/REST-API-Basics: This is a basic guide on how to build a REST API with Django & Python. For much deeper depth, check out our new course on REST API: (https://kirr.co/90kxtx)

BranchesTags
Open more actions menu

Latest commit

 

History

12 Commits
12 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
description.txt
description.txt
 
 
restapi-basics.sublime-project
restapi-basics.sublime-project
 
 
restapi-basics.sublime-workspace
restapi-basics.sublime-workspace
 
 
startup_and_description.txt
startup_and_description.txt
 
 

Repository files navigation

Rest API Basics LOGO

REST API Basics

This is a basic, and rapid fire, guide on how to build a REST API with Django & Python. For much deeper depth and understanding, check out our new course on REST API.

Software

  • Django 1.11.8 (https://kirr.co/hjogvt)
  • Python 3.6.3 (https://kirr.co/ftq97z)
  • Django Rest Framework 3.7.3 (https://kirr.co/svez0s)
  • Django Rest Framework JWT 1.11.0 (https://kirr.co/vpibmo)

Related Source Code: https://kirr.co/9gqpkg

Initial Setup

virtualenv -p python3 restapi-basics

# activate it 
# mac: `source bin/activate`
# windows: `.\Scripts\activate`

pip install django==1.11.8 djangorestframework==3.7.3 djangorestframework-jwt==1.11.0

mkdir src && cd src

django-admin startproject cfehome .
django-admin startapp postings

Update your settings to reflect the following:

INSTALLED_APPS = [
    ...
    'rest_framework',
    'postings'
]



REST_FRAMEWORK = {
    'DEFAULT_PERMISSION_CLASSES': (
        'rest_framework.permissions.IsAuthenticated',
    ),
    'DEFAULT_AUTHENTICATION_CLASSES': (
        'rest_framework_jwt.authentication.JSONWebTokenAuthentication',
        'rest_framework.authentication.SessionAuthentication',
        'rest_framework.authentication.BasicAuthentication',
    ),
}

About

This is a basic guide on how to build a REST API with Django & Python. For much deeper depth, check out our new course on REST API: (https://kirr.co/90kxtx)

Topics

basicsdjangodjango-rest-frameworkdjangorestframeworkdjangorestframework-jwtpythonrest-apitutorial

Resources

Readme
MIT license
Activity

Stars

179 stars

Watchers

15 watching

Forks

113 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.