SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
Basic Web Architecture
and REST Api Calls
The WEB APP
The web is a two-tiered architecture
● A web browser (The Client) that displays information.
● A web server that transfers information to the client
The Technologies
● On Client Side: HTML, CSS, JavaScript ...
● On Server Side: PHP, JavaScript, Java …
Their common knowledge is made mainly of URI and HTTP
● the URI (Universal Resource Identifier) has 4 parts: the protocol type, web
server domain, folder path (optional), web page HTML file (optional)
● HTTP (HyperText Transfer Protocol) is a request/response standard of a
client and a server.
How it works
● An HTTP client initiates a request
● Resources to be accessed by HTTP are identified using URIs
The request message consists of the following:
● Request line
● Headers
● An optional message body
Request Methods
The HTTP methods, also known as “verbs” are:
● HEAD
● GET
● POST
● PUT
● DELETE
● TRACE
● OPTIONS
● CONNECT
Safe Methods
● HEAD, GET, OPTIONS and TRACE are defined as safe (they only retrieve
information)
● POST, PUT, DELETE are intended for actions on your data
HTTP response
The first line of the HTTP response is called the STATUS LINE. Status Code is
part of it.
● Success: 2xx
● Redirection: 3xx
● Client-Side Error: 4xx
● Server-Side Error: 5xx
Examples: 200, 202, 301, 304, 404, 500
Client Request Example :D
● Request Line: POST localhost:8080/users/login
● Headers: Content-Type: application/json
● Body:
{
"email": "ralu.mihordea@ultragrup.ro",
"password": "ltMrQyX4"
}
Server Response Example
Status Line: 200 Ok
Body:
{
"status": true,
"errorMessage": "",
"payload": {
"userAuthToken": "eyJ0eXukhJev2iFRibQq09VWIS9Ap_rpiTc"
}
}
HTTP session state
● HTTP is a stateless protocol
● Hosts do not need to retain information about users between requests.
● Statelessness is a scalability property
● Solutions to this:
○ Cookies
○ Sessions
Cookie
● Cookie is a small piece of text stored on a user’s computer by a web browser
● A cookie consists of one or more name-value pairs containing infos like user
preferences
● Commonly used for: authenticating, shopping cart items, session tracking and
remembering specific information about users
Session
● server side storage of information
● persists throughout the user’s interaction with the site
● only a unique identifier is stored on the client (session id)
● For each HTTP request the session id is passed. The site pairs this session id
with it’s internal database and retrieves the stored variables for use by the
requested page.
Bibliography
● http://www.lassosoft.com/Tutorial-Understanding-Cookies-and-Sessions
● http://www.slideshare.net/cchamnap/introduction-to-web-architecture?qid=08
4fc228-f93f-4f32-ba77-cd827bacd537&v=&b=&from_search=1

More Related Content

What's hot (20)

PPTX
Complete Lecture on Css presentation
Salman Memon
 
PPTX
Dynamic HTML (DHTML)
Himanshu Kumar
 
PPTX
Hypertext transfer protocol (http)
Shimona Agarwal
 
PPTX
Basics of IP Addressing
Kushal Sheth
 
PPTX
Networking in Java
Tushar B Kute
 
PPT
Javascript
mussawir20
 
PDF
IT2255 Web Essentials - Unit II Web Designing
pkaviya
 
PPTX
HyperText Transfer Protocol (HTTP)
Gurjot Singh
 
PPTX
Internet security
Tapan Khilar
 
PPTX
Understanding Cross-site Request Forgery
Daniel Miessler
 
PPTX
Basic Server PPT (THDC)
Vineet Pokhriyal
 
PPTX
CCNA PPT
AIRTEL
 
PPT
Internet architecture
Naman Rastogi
 
PPT
Introduction to the Web API
Brad Genereaux
 
PPSX
Subnetting
selvakumar_b1985
 
PPTX
How Web Browsers Work
military
 
PPT
Proxy Server
guest095022
 
PPTX
What Is Express JS?
Simplilearn
 
PPTX
OSI Model
Shubham Pendharkar
 
PPT
Proxy servers
Kumar
 
Complete Lecture on Css presentation
Salman Memon
 
Dynamic HTML (DHTML)
Himanshu Kumar
 
Hypertext transfer protocol (http)
Shimona Agarwal
 
Basics of IP Addressing
Kushal Sheth
 
Networking in Java
Tushar B Kute
 
Javascript
mussawir20
 
IT2255 Web Essentials - Unit II Web Designing
pkaviya
 
HyperText Transfer Protocol (HTTP)
Gurjot Singh
 
Internet security
Tapan Khilar
 
Understanding Cross-site Request Forgery
Daniel Miessler
 
Basic Server PPT (THDC)
Vineet Pokhriyal
 
CCNA PPT
AIRTEL
 
Internet architecture
Naman Rastogi
 
Introduction to the Web API
Brad Genereaux
 
Subnetting
selvakumar_b1985
 
How Web Browsers Work
military
 
Proxy Server
guest095022
 
What Is Express JS?
Simplilearn
 
Proxy servers
Kumar
 

Similar to Basic web architecture (20)

PPTX
Introduction to Web Architecture
Chamnap Chhorn
 
PPTX
rest-api-basics.pptx
AgungSutikno1
 
PDF
REST APIS web development for backend familiarity
ARTUROGOMEZGARCIA2
 
PPTX
Introductiontowebarchitecture 090922221506-phpapp01
Maisha Price
 
PPTX
rest-api-basics.pptx
FikiRieza2
 
PPTX
Rest WebAPI with OData
Mahek Merchant
 
PPTX
Api 101
DrSimoneDiCola
 
PPTX
Rest APIs Training
Shekhar Kumar
 
PDF
Web architecturesWeb architecturesWeb architectures
ShafeequeAhmed19
 
PDF
Web 7 | HTTP Request and Response
Mohammad Imam Hossain
 
PPTX
Introduction to REST - API
Chetan Gadodia
 
PDF
CNIT 129S: Ch 3: Web Application Technologies
Sam Bowne
 
PPTX
World wide web architecture presentation
ImMe Khan
 
PDF
REST Api with Asp Core
Irina Scurtu
 
PPTX
REST & RESTful Web Services
Halil Burak Cetinkaya
 
PPTX
Rest Webservice
Viyaan Jhiingade
 
PPTX
REST Methodologies
jrodbx
 
PDF
What is REST?
Saeid Zebardast
 
PPTX
HTTP and web service: A Deep Dive into Application Layer Protocols
shereenpriscilas1
 
PDF
CNIT 129S - Ch 3: Web Application Technologies
Sam Bowne
 
Introduction to Web Architecture
Chamnap Chhorn
 
rest-api-basics.pptx
AgungSutikno1
 
REST APIS web development for backend familiarity
ARTUROGOMEZGARCIA2
 
Introductiontowebarchitecture 090922221506-phpapp01
Maisha Price
 
rest-api-basics.pptx
FikiRieza2
 
Rest WebAPI with OData
Mahek Merchant
 
Rest APIs Training
Shekhar Kumar
 
Web architecturesWeb architecturesWeb architectures
ShafeequeAhmed19
 
Web 7 | HTTP Request and Response
Mohammad Imam Hossain
 
Introduction to REST - API
Chetan Gadodia
 
CNIT 129S: Ch 3: Web Application Technologies
Sam Bowne
 
World wide web architecture presentation
ImMe Khan
 
REST Api with Asp Core
Irina Scurtu
 
REST & RESTful Web Services
Halil Burak Cetinkaya
 
Rest Webservice
Viyaan Jhiingade
 
REST Methodologies
jrodbx
 
What is REST?
Saeid Zebardast
 
HTTP and web service: A Deep Dive into Application Layer Protocols
shereenpriscilas1
 
CNIT 129S - Ch 3: Web Application Technologies
Sam Bowne
 
Ad

More from Ralu Mihordea (6)

PDF
Fragmente de Rafinament
Ralu Mihordea
 
PDF
echinoctiuDivin.pdf
Ralu Mihordea
 
PDF
Time Lapses on Automation
Ralu Mihordea
 
PDF
Bug reporting
Ralu Mihordea
 
PDF
Documentation in Software Testing
Ralu Mihordea
 
PPTX
Automation With Frank
Ralu Mihordea
 
Fragmente de Rafinament
Ralu Mihordea
 
echinoctiuDivin.pdf
Ralu Mihordea
 
Time Lapses on Automation
Ralu Mihordea
 
Bug reporting
Ralu Mihordea
 
Documentation in Software Testing
Ralu Mihordea
 
Automation With Frank
Ralu Mihordea
 
Ad

Recently uploaded (20)

PPTX
AEM User Group: India Chapter Kickoff Meeting
jennaf3
 
PDF
Dipole Tech Innovations – Global IT Solutions for Business Growth
dipoletechi3
 
PDF
ERP Consulting Services and Solutions by Contetra Pvt Ltd
jayjani123
 
PDF
UITP Summit Meep Pitch may 2025 MaaS Rebooted
campoamor1
 
PPTX
Homogeneity of Variance Test Options IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
PDF
IObit Driver Booster Pro 12.4.0.585 Crack Free Download
henryc1122g
 
PPTX
Get Started with Maestro: Agent, Robot, and Human in Action – Session 5 of 5
klpathrudu
 
PPTX
Customise Your Correlation Table in IBM SPSS Statistics.pptx
Version 1 Analytics
 
PPTX
Comprehensive Risk Assessment Module for Smarter Risk Management
EHA Soft Solutions
 
PDF
How to Hire AI Developers_ Step-by-Step Guide in 2025.pdf
DianApps Technologies
 
PDF
AOMEI Partition Assistant Crack 10.8.2 + WinPE Free Downlaod New Version 2025
bashirkhan333g
 
PPTX
Milwaukee Marketo User Group - Summer Road Trip: Mapping and Personalizing Yo...
bbedford2
 
PDF
Everything you need to know about pricing & licensing Microsoft 365 Copilot f...
Q-Advise
 
PDF
[Solution] Why Choose the VeryPDF DRM Protector Custom-Built Solution for You...
Lingwen1998
 
PPTX
Build a Custom Agent for Agentic Testing.pptx
klpathrudu
 
PDF
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
PDF
Technical-Careers-Roadmap-in-Software-Market.pdf
Hussein Ali
 
PDF
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
PDF
AI Prompts Cheat Code prompt engineering
Avijit Kumar Roy
 
AEM User Group: India Chapter Kickoff Meeting
jennaf3
 
Dipole Tech Innovations – Global IT Solutions for Business Growth
dipoletechi3
 
ERP Consulting Services and Solutions by Contetra Pvt Ltd
jayjani123
 
UITP Summit Meep Pitch may 2025 MaaS Rebooted
campoamor1
 
Homogeneity of Variance Test Options IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
SciPy 2025 - Packaging a Scientific Python Project
Henry Schreiner
 
IObit Driver Booster Pro 12.4.0.585 Crack Free Download
henryc1122g
 
Get Started with Maestro: Agent, Robot, and Human in Action – Session 5 of 5
klpathrudu
 
Customise Your Correlation Table in IBM SPSS Statistics.pptx
Version 1 Analytics
 
Comprehensive Risk Assessment Module for Smarter Risk Management
EHA Soft Solutions
 
How to Hire AI Developers_ Step-by-Step Guide in 2025.pdf
DianApps Technologies
 
AOMEI Partition Assistant Crack 10.8.2 + WinPE Free Downlaod New Version 2025
bashirkhan333g
 
Milwaukee Marketo User Group - Summer Road Trip: Mapping and Personalizing Yo...
bbedford2
 
Everything you need to know about pricing & licensing Microsoft 365 Copilot f...
Q-Advise
 
[Solution] Why Choose the VeryPDF DRM Protector Custom-Built Solution for You...
Lingwen1998
 
Build a Custom Agent for Agentic Testing.pptx
klpathrudu
 
Download Canva Pro 2025 PC Crack Full Latest Version
bashirkhan333g
 
Technical-Careers-Roadmap-in-Software-Market.pdf
Hussein Ali
 
Wondershare PDFelement Pro Crack for MacOS New Version Latest 2025
bashirkhan333g
 
AI Prompts Cheat Code prompt engineering
Avijit Kumar Roy
 

Basic web architecture