Docsity

Web Application Architecture and APIs, Summaries of Computer Science

Toggle sidebar
bg1
Aman Sharma Intern (Technical-Engineering)
Web app architecture :-
The interconnections between applications, databases, and middleware systems on the
web are described by the web application architecture. It is the design that specifies the
link between the client-side and server for a better online experience. To reduce security
risks, particularly the danger posed by malicious software, web design divides the
application into discrete sections that are safeguarded individually.
All applications are made up of two primary components:
Client side:- Also called the front end, where HTML, CSS, and JavaScript are used to
create and store the code. It is the location of user engagement.
Server side:- Also called the backend, which oversees company operations and answers
to HTTP queries. The server-side code is created in languages like Java, PHP, Ruby,
Python, etc.
Source:- https://reinvently.com/wp-content/uploads/2019/08/scheme.jpg
Web Application Components :-
UI/UX Web Application Components – Activity logs, dashboards, notifications,
settings, analytics, etc. are included in this. These elements have no bearing on how
a web application architecture functions. Instead, they are a component of a web
app's interface layout strategy.
Structural Components – Client and server sides are the two main structural
elements of a web application.
1.
2.
pf3
pf4
pf5

Partial preview of the text

Download Web Application Architecture and APIs and more Summaries Computer Science in PDF only on Docsity!

Web app architecture :- The interconnections between applications, databases, and middleware systems on the web are described by the web application architecture. It is the design that specifies the link between the client-side and server for a better online experience. To reduce security risks, particularly the danger posed by malicious software, web design divides the application into discrete sections that are safeguarded individually. All applications are made up of two primary components: Client side:- Also called the front end, where HTML, CSS, and JavaScript are used to create and store the code. It is the location of user engagement. Server side:- Also called the backend, which oversees company operations and answers to HTTP queries. The server-side code is created in languages like Java, PHP, Ruby, Python, etc.

Source:- https://reinvently.com/wp-content/uploads/2019/08/scheme.jpg Web Application Components :- UI/UX Web Application Components – Activity logs, dashboards, notifications, settings, analytics, etc. are included in this. These elements have no bearing on how a web application architecture functions. Instead, they are a component of a web app's interface layout strategy. Structural Components – Client and server sides are the two main structural elements of a web application.

  1. CSS, HTML, and JS are used to construct the client component. No alterations to the user's operating system or device are necessary because it is already present in the web browser. The functionality of a web application that the end user interacts with is represented by the client component.
  2. Server Component - of the programming languages and frameworks that can be used to develop the server Java, .Net, NodeJS, PHP, Python, and Ruby on Rails are just a few component. App logic and database are at least two of the server component's components. The former serves as the web application's primary command centre, while the latter houses all of the persistent data. Types of Web Application Architecture 1. Static web pages It's quite easy to create static Web pages. Languages like HTML, JavaScript, and CSS, among others, are used in its writing. When a client requests a static web page from a server, the server responds by sending the requested web page to the client directly. Web browsers are used to view these web pages. Pages on static websites won't update until manually changed.

Source :_ https://media.geeksforgeeks.org/wp-content/uploads/20190523110623/Untitled-Diagram-371.png

  1. Dynamic Web page CGI, AJAX, ASP, ASP.NET, and other programming languages are used to create dynamic web pages. The content of pages on dynamic websites varies depending on the visitor. Compared to a static web page, it takes longer to load. Where information is updated often, such as stock prices, the weather, etc., dynamic web sites are employed.

https://media.geeksforgeeks.org/wp-content/uploads/20190930195656/http_req_res.png

HTML The HyperText Markup Language or HTML is the standard markup language for documents designed to be displayed in a web browser. It can be assisted by technologies such as Cascading Style Sheets and scripting languages such as JavaScript. DOM The Document Object Model (DOM) is an extensible markup language (XML) and HTML (HyperText Markup Language) programming interface. It outlines the logical organisation of documents as well as how they may be accessed and changed. DOM is a method of representing the website in a hierarchically structured form, making it simpler for programmers and users to navigate the document. Using the DOM, we may quickly access and modify HTML tags, IDs, classes, attributes, or elements using the Document object's given commands or methods. JavaScript can access the web page's HTML and CSS using the DOM and can also give HTML elements behaviour. Therefore, Document Object Model is essentially an API that interacts with and represents HTML or XML documents. Object Model The behaviour of a document and the objects it is made up of, like tag elements with attributes in HTML, are also included in the model of a document that uses objects to represent its structure. Properties of DOM: Let’s see the properties of the document object that can be accessed and modified by the document object.

source:- https://linuxhint.com/wp-content/uploads/2022/01/HTML-DOM-1.jpg

Window Object: The browser's Window Object is always at the top of the hierarchy. It functions similarly to an API in that all of the browser's properties and methods may be configured and accessed through it. The browser automatically creates it. Document object: A document object is created when an HTML document is loaded into a window. A number of the 'document' object's properties refer to other objects, allowing access to and alteration of the web page's content. We always begin by accessing the 'document' object whenever we need to access any element on an HTML page. Window object has a document object as a property. Form Object: It is represented by form tags. Link Object: It is represented by link tags. Anchor Object: It is represented by a href tags. Form Control Elements:: Form can have many control elements such as text fields, buttons, radio buttons, checkboxes, etc. Javascript event handlers An event is defined as a change in an object's state. There are a number of events in HTML that show when a user or browser performs a certain action. Js responds to these events when javascript code is embedded in HTML and permits execution. The act of responding to events is known as event handling. As a result, js uses event handlers to handle HTML events. For example, when a user clicks over the browser, add js code, which will execute the task to be performed on the event.

Source:- slideshare

OPEN API OpenAPIs • The (OAS) is a standardised format that is frequently used for describing REST APIs. You can use OpenAPI to specify your API's endpoints, operation parameters, request responses, and authentication flows. The OpenAPI format is simple to read and comprehend for both programmers and machines. Currently, 2.0 and 3.0 are the two principal OpenAPI releases (the latest release is 3.0.3). While it makes some significant advancements, it also makes it more difficult to decide which version to use. We'll examine some of the most significant variations between OpenAPI 2.0 & 3.0. Version 2.0 In version 2.0, the three elements that make up the BAPI endpoint URL are Host, basePath, and schemas. These component values are combined to produce the endpoint URL. According to this specification, an API's endpoint URL can only be defined once. Version 3.0 is thus released in order to lessen this constraint. Version 3.

  • With version 3.0, reusable objects like examples, parameters, answers, request bodies, links, security plans, and schemas are now included in the new Components called Object. Headers and callbacks can also be found in the Components Object. In version 2.0, you could describe headers but couldn’t reuse them as easily as in version 3.0. JSON Schema is now extendedly supported in version 3.0, allowing you to use more JSON Schema terms than in version 2.0.