WP BHav
WP BHav
PRACTICAL 5
a. Create a page using java script, which sorts elements of array in ascending array using
bubble sort.
PROGRAM:
<!DOCTYPE html>
<html>
<head>
<title>Bubble Sort Example</title>
</head>
<body>
<h1>Bubble Sort Example</h1>
<p>Click the button to sort the array in ascending order:</p>
<button onclick="bubbleSort()">Sort Array</button>
<p id="result"></p>
<script>
function bubbleSort() { // The array to be sorted
var arr = [55, 34, 20, 9, 22, 18, 111];
// Loop through the array
for (var i = 0; i<arr.length - 1; i++) { // Last i elements are already in place
for (var j = 0; j <arr.length - i - 1; j++) {
// Swap if the element is greater than the next element
if (arr[j] >arr[j+1]) {
var temp = arr[j];
arr[j] = arr[j+1];
arr[j+1] = temp;
}
}
}
EN.NO-210410107114 Page|44
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLO
TECHNOLOGY
OUTPUT:
b. Create an HTML page with JavaScript , which contains a text box and button, When
you click on button itdisplays content of text box in alert box.
PROGRAM:
<!DOCTYPE html>
<html>
<head>
<title>Text Box Alert Example</title>
<script>
function displayText()
{
var textBox = document.getElementById("myTextBox");
var text = textBox.value;
alert(text);
}
</script>
</head>
<body>
<label for="myTextBox">Enter some text:</label>
<input type="text" id="myTextBox">
<button onclick="displayText()">Display
"displayText()">Display Text</button>
EN.NO-210410107114 Page|45
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLO
TECHNOLOGY
Addition
Subtraction
Multiplication
EN.NO-210410107114 Page|47
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLO
TECHNOLOGY
d. Create an HTML page with java script, which takes numbers as inputs and display
Odd numbers, EvenNumbers on the web page.
PROGRAM:
<!DOCTYPE html>
<html>
<head>
<title>Odd
title>Odd and Even Number Finder</title>
<script type="text/javascript">
function findNumbers() {
// Get the input numbers from the user
let startNum = Number(document.getElementById("startNum").value);
let endNum = Number(document.getElementById
Number(document.getElementById("endNum").value);
// Find and display the odd and even numbers
let oddNumbers = [];
let evenNumbers = [];
for (let i = startNum; i<= endNum; i++) {
if (i % 2 === 0) {
evenNumbers.push(i);}
else
{oddNumbers.push(i); }
}
document.getElementById("oddNumbers").innerHTML = "Odd Numbers: " + oddNumbers.join(", ");
document.getElementById("evenNumbers").innerHTML = "Even Numbers: " + evenNumbers.join(", ");
EN.NO-210410107114 Page|48
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLO
TECHNOLOGY
OUTPUT:
EN.NO-210410107114 Page|49
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLOGY
e. Using JavaScript complete the form validation for fields in the given form.
i. Name(User can enter text)
ii. Password(minimum six characters)
iii. Address(user can enter text & number)
iv. Phone no.(User can enter only numeric values)
v. Email address
a. E-mail address must in [email protected] format (Validate Using JavaScript)
b. Display error message dialog box if user does not enter e-mail address in proper format.
vi. Two radio buttons for gender(male/female)
vii. Checkboxes for different hobbies
viii. One list for countries (at least 10 different countries in list)
ix. One submit button(error message should be displayed on the click of submit button if
validation check
fails OR message should be displayed “data submitted successfully”)
x. Reset Button (all fields on the form should be clear)
PROGRAM:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initialscale=1.0">
<title>Document</title>
</head>
<body>
<form id="myForm">
<label for="name">Name:</label><br>
EN.NO-210410107114 Page|50
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLOGY
EN.NO-210410107114 Page|54
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLO
TECHNOLOGY
EN.NO-210410107114 Page|55
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLOGY
PROGRAM:
<!DOCTYPE html>
<html>
<head>
<title>Button Color Change Example</title>
<style>
body {
background-color: white;
}
button {
font-size: 20px; padding: 10px 20px; margin: 10px; border: none;
border-radius: 5px; cursor: pointer;
}
.red {
background-color: red; color: white;
}
.green { background-color: green; color: white;
}
.blue {
background-color: blue; color: white;
}
</style>
</head>
<body>
<h1>Button Color Change Example</h1>
<p>Click on a button to change the background color:</p>
EN.NO-210410107114 Page|56
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLO
TECHNOLOGY
<script>
// Get all the buttons
var buttons = document.querySelectorAll("button"); // Add an event listener to each button
buttons.forEach(function(button) {
button.addEventListener("click", function() { // Get the color class from the button's class list
var colorClass = button.classList[0];
OUTPUT:
EN.NO-210410107114 Page|57
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLO
TECHNOLOGY
EN.NO-210410107114 Page|58
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLO
TECHNOLOGY
PROGRAM:
<!DOCTYPE html>
<html>
<head>
<title>Open Window</title>
<script>
function openWindow() {
var width = 500; var height = 500;
var status = "yes"; varurl = "http://www.example.com";
var windowName = "exampleWindow";
var windowFeatures = "width=" + width + ",height=" + height + ",status=" + status;
window.open(url, windowName,
owName, windowFeatures); }
</script>
</head>
<body>
<button onclick="openWindow()">Open Window</button>
</body>
</html>
OUTPUT:
EN.NO-210410107114 Page|59
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLO
TECHNOLOGY
PROGRAM:
<!DOCTYPE html>
<html>
<head>
<title>Open
Open Multiple Windows on Button Click</title>
</head>
<body>
<button onclick="openWindows()">Open Windows</button>
<script>
function openWindows() {
// Set the number of windows you want to open
var numWindows = 3; // Loop through and open each window
for (var i = 0; i<numWindows; i++) {
window.open('https://www.example.com'); }}
</script>
</body>
</html>
OUTPUT:
EN.NO-210410107114 Page|60
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLOGY
PROGRAM:
<!DOCTYPE html>
<html>
<head>
<title>Textbox to New Window
</title>
</head>
<body>
<h1>Textbox to New Window</h1>
<form>
label for="text">Enter Text:</label>
<input type="text" id="text" name="text">
<br>
<button type="button"
onclick="openNewWindow()">Submit
</button>
</form>
<script>
function openNewWindow()
{
const text = document.getElementById("text").value;
constnewWindow = window.open("", "newWindow", "width=500,height=500");
newWindow.document.write(`<h1>Text Entered:</h1><p>${text}</p>`);
}
</script>
</body>
EN.NO-210410107114 Page|61
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLO
TECHNOLOGY
OUTPUT:
j. Write a script to hide the text when hide button is clicked and to show the text
Whenshow button is clicked.
PROGRAM:
<html>
<body>
<!-- HTML code with text and buttons -->
<div id="text">This is the text to be hidden/showed</div>
<button id="hide">Hide</button>
<button id="show">Show</button>
<script>
// Get the text and buttons elements
const text
xt = document.getElementById("text");
consthideButton = document.getElementById("hide");
constshowButton = document.getElementById("show");
EN.NO-210410107114 Page|62
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLO
TECHNOLOGY
OUTPUT:
EN.NO-210410107114 Page|63
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLOGY
PRACTICAL 6
a. Introduction to PHP and MYSQL.
PHP (Hypertext Preprocessor) is a server-side scripting language designed for web development. It is
widely used for creating dynamic web pages and web applications. PHP code is executed on the server side,
and the resulting HTML is sent to the client's browser for display.
MySQL is a popular open-source relational database management system that is used for storing, organizing
and retrieving data. It uses Structured Query Language (SQL) to access and manipulate the data stored in
the database. MySQL is often used in conjunction with PHP to build web applications that require persistent
data storage.
PHP and MySQL are commonly used together to create dynamic web applications. PHP can be used to
generate HTML pages dynamically based on user input, and MySQL can be used to store and retrieve data
entered by users. For example, a simple online store might use PHP to display products and prices on a web
page, and MySQL to store information about customer orders.
PHP and MySQL are both open-source technologies, which means that they are free to use and can be
customized to meet specific development needs. There are also many resources available online for learning
PHP and MySQL, including tutorials, forums, and documentation.
b. Create php page with name 1.php With fields username and password. 2 buttons ok
and cancel. On click of okbutton data filled in the fields should be displayed on the
next page.(use post and get method)
PROGRAM:
<!DOCTYPE html>
<html>
<head>
<title>Login Form</title>
</head>
<body>
EN.NO-210410107114 Page|64
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLOGY
<label for="password">Password:</label>
<input type="password" id="password" name="password"><br>
</form>
</body>
</html>
PROGRAM:
<!DOCTYPE html>
<html>
<head>
<title>Submitted Data</title>
</head>
<body>
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$username = $_POST["username"];
$password = $_POST["password"];
echo "<p>Username: $username</p>";
echo "<p>Password: $password</p>";
}
?>
</body>
EN.NO-210410107114 Page|65
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLOGY
OUTPUT:
c. Create php page with name 1.php With fields username and password. 2 buttons ok
and cancel. On click of okbutton Retrieve the username & password and check if
username= “admin” and password=”admin” go toadmin.php. if username= “visitor”
and password=”visitor” go to visitor.php.
PROGRAM:
name1.php
<!DOCTYPE html>
<html>
<body>
<form method="post" action="check.php" id="form">
<label>Password :</label>
<input type="password" name="pwd"/><br>
Check.php
<html>
<body>
<?php if($_POST["fname"]=="admin"&&$_POST["pwd"]=="admin")
header("Location: http://localhost/admin.php");
if($_POST["fname"]=="visitor"&&$_POST["pwd"]=="visitor")
header("Location: http://localhost/visitor.php"); ?>
</body>
</html>
Admin.php
<html>
<body>
<h2>Welcome admin!</h2>
</body>
</html>
Visitor.php
<html>
<body>
<h2>Welcome visitor!</h2>
</body>
EN.NO-210410107114 Page|67
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLOGY
EN.NO-210410107114 Page|68
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLOGY
PROGRAM:
Cookie.php
<!DOCTYPE html>
<html>
<body>
<form method="post" action="1.php" id="form">
<label>First Name :</label><input type="text" name="fname"/><br>
<label>Last Name :</label><input type="text" name="lname"/><br>
<label>Email-id :</label><input type="text" name="email"/><br>
<label>Phone-no :</label><input type="text" name="phoneno"/><br>
<label>City :</label><input type="text" name="city"/><br>
<input type="submit" name="submit" value="OK">
<input type="reset" value="Cancel">
</form>
</body></html>
1.php
<!DOCTYPE html>
<html>
<body>
<h2>This is 1.php</h2><br>
<?phpsetcookie("c1",$_POST["fname"]); setcookie("c2",$_POST["lname"]); setcookie("c3",$_POST["email"]);
setcookie("c4",$_POST["phoneno"]); setcookie("c5",$_POST["city"]);
?>
<a href="http://localhost/details.php">Show Details</a>
</body>
</html>
Details.php
<!DOCTYPE html>
<html>
<body>
<h2>Your details</h2><br>
<?php
echo "Name : " ,$_COOKIE["c1"],"<br>"; echo "Surname:
",$_COOKIE["c2"],"<br>"; echo "Email-id: ",$_COOKIE["c3"],"<br>"; echo
"Phone-no: ",$_COOKIE["c4"],"<br>"; echo "City: ",$_COOKIE["c5"],"<br>";
EN.NO-210410107114 Page|69
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLOGY
OUTPUT:
EN.NO-210410107114 Page|70
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLOGY
e. Same program as above but instead of using cookie use session to store information
PROGRAM:
Session.php
<!DOCTYPE html>
<html>
<body>
<form method="post" action="1.php" id="form">
<label>First Name :</label><input type="text" name="fname"/><br>
<label>Last Name :</label><input type="text" name="lname"/><br>
<label>Email-id :</label><input type="text" name="email"/><br>
<label>Phone-no :</label><input type="text" name="phoneno"/><br>
<label>City :</label><input type="text" name="city"/><br>
<input type="submit" name="submit" value="OK">
<input type="reset" value="Cancel">
</form>
</body>
</html>
1.php
EN.NO-210410107114 Page|71
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLOGY
<!DOCTYPE html>
<html>
<body>
<h2>This is 1.php</h2><br>
<?phpsetcookie("c1",$_POST["fname"]); setcookie("c2",$_POST["lname"]);
setcookie("c3",$_POST["email"]);
setcookie("c4",$_POST["phoneno"]); setcookie("c5",$_POST["city"]); ?>
<a href="http://localhost/details.php">Show Details</a>
</body>
</html>
Details.php
<!DOCTYPE html>
<html>
<body>
<h2>Your details</h2><br>
<?php
echo "Name : " ,$_COOKIE["c1"],"<br>"; echo "Surname: ",$_COOKIE["c2"],"<br>"; echo "Email-id:
",$_COOKIE["c3"],"<br>"; echo "Phone-no: ",$_COOKIE["c4"],"<br>"; echo "City:
",$_COOKIE["c5"],"<br>";
?>
</body>
</html>
OUTPUT:
EN.NO-210410107114 Page|72
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLOGY
EN.NO-210410107114 Page|73
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLOGY
PRACTICAL 7
a. Create a database name student_info in my sql using php coding. Create table name
personal_info with the fields Name,Password,Address,Phoneno.,Email address. Add
information of 5 students in the database.(All things should be done through php
coding.)
PROGRAM:
<html>
<body>
<?php
$servername = "localhost";
$username = "root";
$password = "admin";
$conn = new mysqli($servername, $username, $password); if ($conn->connect_error)
{die("Connection failed: " . $conn->connect_error);
}
$sql2 = "CREATE TABLE personal_info( name VARCHAR(30), password VARCHAR(30),
address VARCHAR(30), phoneno VARCHAR(30), email VARCHAR(50))";
$dbname="student_info";
$conn = new mysqli($servername, $username, $password, $dbname);
if ($conn->query($sql2) === TRUE)
{echo "Table personal_info created successfully<br>";} else {echo
"Error creating table: " . $conn->error;}
$sql3 = "INSERT INTO personal_info
(name,password,address,phoneno,email)
VALUES ('AA', 'DJ','Baroda','7600050563', '[email protected]')";
$sql4 = "INSERT INTO personal_info
(name,password,address,phoneno,email)
VALUES ('BB', 'AS','Baroda','7600099999', '[email protected]')";
$sql5 = "INSERT INTO personal_info
(name,password,address,phoneno,email)
VALUES ('CC', 'NP','Baroda','9999950563', '[email protected]')";
$sql6 = "INSERT INTO personal_info
(name,password,address,phoneno,email)
VALUES ('DD', 'SV','Baroda','8888850563', '[email protected]')";
$sql7 = "INSERT INTO personal_info
(name,password,address,phoneno,email)
VALUES ('EE', 'KS','Baroda','1111150563', '[email protected]')";
EN.NO-210410107114 Page|74
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLOGY
OUTPUT:
EN.NO-210410107114 Page|75
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLOGY
PROGRAM:
<!DOCTYPE html>
<html>
<body>
<form method="post" action="formdb2.php" id="form">
<label>ID: </label><input type="text" name="id"/><br>
<label>First Name :</label><input type="text" name="fname"/><br>
<label>Last Name :</label><input type="text" name="lname"/><br>
<label>Email-id :</label><input type="text" name="email"/><br>
<label>Phone-no :</label><input type="text" name="phoneno"/><br>
<label>City :</label><input type="text" name="city"/><br>
<input type="submit" name="submit" value="OK">
<input type="reset" value="Cancel">
<br>
</form><button
onclick="window.location.href='delete.php'">Delete record</button><br>
<button
onclick="window.location.href='update.php'">Update record</button>
</body>
</html>
Formdb2.php
<html>
<body>
<h2>Values are updated!</h2>
<br>
<?php
$vo=$_POST["id"];
$v1=$_POST["fname"];
$v2=$_POST["lname"];
$v3=$_POST["email"];
$v4=$_POST["phoneno"];
$v5=$_POST["city"];
?>
<?php
$mysqli = new mysqli("localhost","root","vb","practical8b");
EN.NO-210410107114 Page|76
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLOGY
$mysqli ->close();
?>
<a href="http://localhost/displaytable.php">Display table</a>
</body>
</html>
Displaytable.php
<html>
<body>
<h2>Your table!</h2><br>
<?php
$mysqli = new mysqli("localhost","root","vb","practical8b");
echo
'<tr>
<td>'.$field0name.'</td>
<td>'.$field1name.'</td>
<td>'.$field2name.'</td>
<td>'.$field3name.'</td>
<td>'.$field4name.'</td>
EN.NO-210410107114 Page|77
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLOGY
Delete.php
<!DOCTYPE html>
<html>
<body>
<h2>Deletion page!</h2>
<form method="post" action="deleteid.php" id="form">
<label>Enter the ID of the person whose record you want to delete :
</label>
<input type="text" name="delid"/><br>
<input type="submit" name="submit" value="Delete">
</form>
</body>
</html>
Deleteid.php
<!DOCTYPE html>
<html>
<body>
<h2>Record Deleted!</h2>
<br>
<?php
$mysqli = new mysqli("localhost","root","vb","practical8b");
$v0=$_POST["delid"];
$mysqli ->query("DELETE FROM practical8btable where id='$v0'");
$mysqli ->close();
?>
<a href="http://localhost/displaytable.php">Display table</a>
</body>
</html>
Update.php
<!DOCTYPE html>
<html>
<body>
EN.NO-210410107114 Page|78
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLO
TECHNOLOGY
OUTPUT:
EN.NO-210410107114 Page|79
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLOGY
EN.NO-210410107114 Page|80
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLOGY
PROGRAM:
<!DOCTYPE html>
<html>
<body>
<div id="demo">
<h2>The XMLHttpRequest Object</h2>
<button type="button" onclick="loadDoc()">Change
Content</button>
</div>
<script> function loadDoc() { var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 &&this.status == 200) {
document.getElementById("demo").innerHTML = this.responseText;
} };
xhttp.open("GET", "ajax_info.txt", true); xhttp.send(); }
</script>
</body>
</html>
OUTPUT:
EN.NO-210410107114 Page|81
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLOGY
PROGRAM:
<!DOCTYPE html>
<html>
<body>
<div id="demo">
<h2>The XMLHttpRequest Object</h2>
<button type="button" onclick="loadDoc('ajax_info.txt', myFunction)">Change Content
</button>
</div>
<script>
function loadDoc(url, cFunction)
{
var xhttp; xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function ()
{
if (this.readyState == 4 &&this.status == 200)
{
cFunction(this);
} };
xhttp.open("GET", url, true);
xhttp.send();
}
function myFunction(xhttp)
{
document.getElementById("demo").innerHTML = xhttp.responseText;
}
</script>
EN.NO-210410107114 Page|82
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLOGY
OUTPUT:
EN.NO-210410107114 Page|83
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLOGY
What is Node.js?
Why Node.js?
Node.js eliminates the waiting, and simply continues with the next request.
Node.js runs single-threaded, non-blocking, asynchronously programming, which is very memory efficient.
EN.NO-210410107114 Page|84
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLOGY
Node.js files must be initiated in the "Command Line Interface" program of your computer.
How to open the command line interface on your computer depends on the operating system. For Windows
users, press the start button and look for "Command Prompt", or simply write "cmd" in the search field.
Navigate to the folder that contains the file "myfirst.js", the command line interface window should look
something like this:
C:\Users\Your Name>_
The file you have just created must be initiated by Node.js before any action can take place.
Start your command line interface, write node myfirst.js and hit enter:
Initiate "myfirst.js":
C:\Users\Your Name>node myfirst.js
Now, your computer works as a server!
If anyone tries to access your computer on port 8080, they will get a "Hello World!" message in return!
Start your internet browser, and type in the address: http://localhost:8080
EN.NO-210410107114 Page|85
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLOGY
Node.js has a set of built-in modules which you can use without any further installation.
Include Modules
To include a module, use the require() function with the name of the module:
var http = require('http');
Now your application has access to the HTTP module, and is able to create a server: http.createServer(function
(req, res) { res.writeHead(200, {'Content-Type': 'text/html'}); res.end('Hello World!'); }).listen(8080);
You can create your own modules, and easily include them in your applications.
The following example creates a module that returns a date and time object:
Example
Create a module that returns the current date and time: exports.myDateTime = function () { return
Date(); };
Use the exports keyword to make properties and methods available outside the module file.
Save the code above in a file called "myfirstmodule.js"
Now you can include and use the module in any of your Node.js files.
Example
Use the module "myfirstmodule" in a Node.js file:
var http = require('http'); var dt = require('./myfirstmodule'); http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/html'}); res.write("The date and time are currently: " +
dt.myDateTime()); res.end(); }).listen(8080);
EN.NO-210410107114 Page|86
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLOGY
The Node.js file system module allows you to work with the file system on your computer.
To include the File System module, use the require() method:
var fs = require('fs');
Common use for the File System module:
• Read files
• Create files
• Update files
• Delete files
• Rename files
Events in Node.js
Every action on a computer is an event. Like when a connection is made or a file is opened.
Objects in Node.js can fire events, like the readStream object fires events when opening and closing a file:
Example
EN.NO-210410107114 Page|87
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLOGY
CSS Frameworks:
o Bootstrap: One of the most popular CSS frameworks, Bootstrap offers pre-designed templates and
components for creating responsive and mobile-first websites. It simplifies the process of styling web
applications.
o Tailwind CSS: Unlike traditional CSS frameworks, Tailwind CSS provides low-level utility classes that
can be composed to build custom designs. It offers flexibility and eliminates the need for writing custom
CSS.
EN.NO-210410107114 Page|88
SARDAR VALLABHBHAI PATEL INSTITUTE OF TECHNOLOGY
API Technologies:
o GraphQL: A query language and runtime for APIs that provides a more efficient, powerful, and flexible
alternative to REST APIs. GraphQL enables clients to request only the data they need, reducing over-
fetching and under-fetching of data.
o RESTful APIs: Representational State Transfer (REST) is an architectural style for designing networked
applications. RESTful APIs use HTTP methods like GET, POST, PUT, and DELETE to perform CRUD
operations (Create, Read, Update, Delete) on resources
EN.NO-210410107114 Page|89