Lecture Notes about REST APIs and Django REST framework, as well as how to use and design APIs.
It has a summary section on the left side of the page, following the Cornell note taking method, where the key points are summarised on the side of the noted.
Browser APIs are Contents
interfaces Browser APIs
provided by web Web Storage API
browsers that Geolocation
allow JavaScript to Drag-and-Drop
REST APIs
manipulate the
Application and Resource States
browser and its
State
functionality
Transferring States
Web Storage API REST
is similar to Representation
cookies and Transfer
Representational State Transfer
includes the
APIs Ideal scenario
sessionStorage
Common API Mistakes
REST are made Semantic challenge
public through the Application Semantics
web: Constraints
REST API Design
serve
descriptive
contnet Browser APIs
abode by the
connectdness interfaces provided by web browsers
principle allowing JavaScript to manipulate the
constrained browser and its functionality
media-types
bridges Web Storage API
semantic gap
Similar to cookies, it includes
sessionStorage to specify each origin,
REST APIs 1
, The state is a until the browser is closed,
particular
and
condition that
something is in at
localStorage which persists even when
a specific time the browser is closed
State of the
client is the Geolocation
page the user
is currently Provides user’s coordinates i.e.
visiting location to the application if the user
links gives permission
provide the
links uses navigator.geolocation
between
resources Drag-and-Drop
State of
server:
Drag and drop events, where some
elements are draggable
considers
state of
resources
server REST APIs
might have Web APIs are made public through the Web
multiple
resources REST APIs are Web APIs that
GET does - serves self-descriptive content
not change - abodes by connectedness principles
resource
- constrained media-types
state, while
POST and - bridges semantic gap
other
unsafe
methods ‼️ Django REST framework is actually a web
take API
resources
to a new
state
REST APIs 2
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller ileniamaiettabusiness. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for £5.56. You're not tied to anything after your purchase.