0% found this document useful (0 votes)
4 views16 pages

Lecture 1.2.2

The document outlines a course on Web Framework in Cloud using AngularJS, focusing on cloud web development and REST APIs. It covers key concepts such as the principles of REST, RESTful HTTP methods, and the benefits of using REST over SOAP. Additionally, it includes course outcomes, a syllabus, suggestive readings, and assessment questions related to cloud computing and RESTful API development.

Uploaded by

Nitin Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views16 pages

Lecture 1.2.2

The document outlines a course on Web Framework in Cloud using AngularJS, focusing on cloud web development and REST APIs. It covers key concepts such as the principles of REST, RESTful HTTP methods, and the benefits of using REST over SOAP. Additionally, it includes course outcomes, a syllabus, suggestive readings, and assessment questions related to cloud computing and RESTful API development.

Uploaded by

Nitin Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 16

APEX INSTITUTE OF TECHNOLOGY

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

Web Framework in Cloud (AngularJS)(21CST-439)


Faculty: Ms. Rubbina (E16582)

Lecture – 10, 11
DISCOVER . LEARN . EMPOWER
Introduction 1
COURSE OUTCOMES
On completion of this course, the students shall be able to:-
The students will become familiar with the concepts cloud web development, REST
CO1
API’s, use of REST API’s in AngularJS.

The students shall become equipped to build AngularJS applications for helping
CO2
businesses going into digital transformation.

The students shall be able to compare within different frameworks available and select
CO3
best possible framework.

Students will learn methods for deploying AngularJS applications to cloud platforms,
CO4
including considerations for hosting, scalability, and security.

Students will understand common security threats (e.g., XSS, CSRF) and best practices
CO5
for securing AngularJS applications.
2
Unit-1 Syllabus

Unit-1 Introduction to Cloud environment and web services Contact Hours: 12 hours
Introduction
and evolution of Evolution of cloud computing, Fundamentals of cloud services, Introduction to
Cloud cloud framework, Cloud service providers
computing
Representationa
Introduction to REST architecture, Different methods of describing and using
l State Transfer resources, Designing REST applications
REST

3
Contents to be covered
Introduction to REST architecture

4
What is REST?

• REST (Representational State Transfer) is an architectural style for


designing networked applications. RESTful systems typically
communicate over HTTP and are designed around resources, which
can be identified by URLs. Resources can be manipulated using a
uniform set of stateless operations.

By: Pramod Vishwakarma (E9758) 5


Key Principles of REST

• Client-Server Architecture: The client and server operate


independently. The client is responsible for the user interface and the
server handles data storage and logic. This separation simplifies the
design and improves scalability.
• Statelessness: Each client request to the server must contain all the
information needed to understand and process the request. The
server does not store any client context between requests. This makes
the system easier to scale and more robust.
• Cacheability: Responses from the server can be explicitly marked as
cacheable or non-cacheable. If a response is cacheable, clients can
reuse the cached response in future requests, improving performance.
By: Pramod Vishwakarma (E9758) 6
Key Principles of REST
• Uniform Interface: RESTful systems adhere to a uniform interface,
which simplifies and decouples the architecture. This uniform
interface includes:
• Resource Identification: Resources are identified in requests using URIs.
• Resource Manipulation via Representations: Clients interact with resources
using representations (e.g., JSON, XML).
• Self-descriptive Messages: Each message includes enough information to
describe how to process the message.
• Hypermedia as the Engine of Application State (HATEOAS): Clients interact
with the application entirely through hypermedia provided dynamically by
application servers.

By: Pramod Vishwakarma (E9758) 7


Key Principles of REST
• Layered System: A RESTful system can be composed of multiple
layers, with each layer having its own responsibility. For example, a
proxy or load balancer can be placed between the client and server to
improve scalability and security.
• Code on Demand (Optional): Servers can extend client functionality
by sending executable code (e.g., JavaScript). This is optional and not
frequently used in practice.

By: Pramod Vishwakarma (E9758) 8


RESTful HTTP Methods

• RESTful systems typically use standard HTTP methods to perform


operations on resources:
• GET: Retrieve a representation of a resource.
• POST: Create a new resource or submit data to a server.
• PUT: Update an existing resource.
• DELETE: Remove a resource.
• PATCH: Apply partial modifications to a resource.

By: Pramod Vishwakarma (E9758) 9


RESTful Responses

• RESTful responses usually contain:


• Status Code: Indicates the result of the request (e.g., 200 OK, 404 Not
Found).
• Headers: Provide metadata about the response (e.g., Content-Type).
• Body: Contains the resource representation or a message (e.g., error
details).

By: Pramod Vishwakarma (E9758) 10


Benefits of REST

• Scalability: Statelessness and caching improve scalability.


• Performance: Cacheable responses and efficient HTTP methods
enhance performance.
• Simplicity: Uniform interface and clear resource identification simplify
development and maintenance.
• Interoperability: Standardized methods and formats (e.g., JSON, XML)
facilitate communication between different systems.

By: Pramod Vishwakarma (E9758) 11


REST vs. SOAP

• Protocol: REST is an architectural style and uses HTTP. SOAP (Simple


Object Access Protocol) is a protocol with more rigid standards.
• Message Format: REST often uses JSON or XML. SOAP messages are
XML-based.
• Complexity: REST is simpler and more lightweight, whereas SOAP
offers more features like built-in error handling and security, but at
the cost of increased complexity.

By: Pramod Vishwakarma (E9758) 12


SUGGESTIVE READINGS
Text Books / Reference Books
TEXT BOOKS
T1 : Moyer, C.M. (2012). Building applications in the cloud : concepts, patterns, and projects. Upper Saddle River, N.J:
Addison-Wesley.
T2 : Ambler, T. and Cloud, N. (2015). JavaScript frameworks for modern web dev. New York: Apress.

REFERENCE BOOKS
R1 : Zaigham Mahmood (2015). Software engineering frameworks for the cloud computing paradigm. Springer.
R2 : Williamson, K. (2015). Learning AngularJS A Guide to AngularJS Development. Sebastopol O’reilly & Associates.
.

13
Summary

REST, short for Representational State Transfer, is an architectural style used


in designing networked applications, especially web services. It provides a set
of guidelines for creating scalable and maintainable web APIs (Application
Programming Interfaces) that can be accessed via the Internet Protocol.

14
Assessment Questions
Q What are the primary characteristics that define cloud computing?
Q How did the advent of personal computers (PC Era) change the computing landscape?
Q What is the client-server model, and why was it significant in the evolution of computing?
Q What role did virtualization play in advancing cloud computing technologies?
Q How does the pay-as-you-go pricing model benefit cloud users?
Q How does edge computing differ from traditional cloud computing?
Q What are some common design patterns used in RESTful API development?
Q What tools and technologies can assist in developing and testing RESTful APIs?
Q What factors should businesses consider when choosing a cloud service provider?
Q How does the OpenStack framework facilitate cloud infrastructure management?
Q What are the deployment models of cloud computing (public, private, hybrid, community)?
15
THANK YOU

For queries
Email: [email protected]
16

You might also like