Está en la página 1de 12

Web

AP I
In this píesentation, we'll exploíe the woíld of Web API. Discoveí how it woíks and leaín about its
íelationship with JavaScíipt and otheí tools.

by NIľYOM ľIKHE
W hat is an
AP I?
Application Universal Did You Know
Program m ing Language
APIs can be used to
Interface
APIs use a univeísal access and utilize
An API is a set of language to enable data fíom exteínal
foímats and píotocols communication souíces with
allowing acíoss platfoíms and automated tasks.
communication systems.
between diffeíent
applications.
The Role Of JavaScript in Web
AP I AJAX

J avaScíipt is essential in implementing


asynchíonous communication with APIs
thíough AJ AX (Asynchíonous J avaScíipt
and XML)

1 2 3

Dynam ic Web Content M anipulation Of AP I Data

J avaScíipt is used to cíeate dynamic J avaScíipt is used to manipulate data


web content, such as animations, íetíieved fíom APIs, enabling dynamic
videos, and inteíactive foíms. display of content in íeal-time.
Types of Web
AP Is

RESTful AP I SOAP AP I GraphQL AP I

Repíesentational State Simple Object Access A queíy language foí


ľ íansfeí is a web Píotocol is used to APIs, developed by
aíchitectuíe teíminology exchange stíuctuíed data Facebook.
used foí distíibuted between web-based GíaphQL offeís a moíe
systems such as the Woíld seívices. SOAP is widely efficient, poweíful, and
Wide Web. RESľ ful API is a used in enteípíise-level flexible
populaí design choice due to businesses due to its íobust alteínative to RESľ ful API.
its simplicity and scalability. secuíity model.
Cors Error in Web
AP I
1 W hy CORS Fixing CORS Error 3 Preventing
2 is Needed? CORS Error
CORS eííoí can be
CORS (Cíoss-Oíigin íesolved by adding Hľ ľ P ľ o píevent CORS eííoís,
Resouíce Shaíing) allows headeís to íesponses stoíage and API seíveí
a web page to íequest fíom Web API. Foí must be on the same
foí íesouíces fíom a example, Access- domain. If not, then the
diffeíent domain. It Contíol-Allow-Oíigin: * seíveí-end seívice must
píevents unauthoíized code will give access to peímit the specified
access to data and all domains to access client domain in the
ensuíes secuíity in data the API. Adding CORS policy.
tíansfeí. appíopíiate Hľ ľ P
headeís to íesponses is
cíitical.
Designing Stress-Test W ith Web
AP I
Step 1 Step 2 Step 3
Deteímine what data and Cíeate a test suite that Run the test suite
functionality should be tíiggeís API íequests as íepeatedly, collecting data
tested. quickly as possible. about íesponse times and
seíveí utilization.
Web AP I vs
WebSocket Web API WebSocket

Functionality HľľP/HľľPs API enables ľwo-way communication

access to static íesouíces allows a seíveí to send data

foí CRUD to a client foí as long as

opeíations,Fecth data and the connection is open

Secuíity metadataa fíom


ľhíough set ofan API
HľľP Encíypted web sockets

headeís like encíyption and via SSL/ľLS encíyption.

CORS, secuíe seíveí.

Peífoímance Sloweí than web sockets Higheí than Web API since

due to the HľľP oveíhead infoímation is passed

that the píotocol bíings. thíough a long-lasting

connection with a small

seíveí oveíhead.
Web API Emerging
Trends

Artificial Blockchain Based M icroservice


Intelligence AP I s
Integration Architecture
Blockchain-based APIs
Web API integíation with AI ensuíe incíeased secuíity by Micíoseívices aíchitectuíe is
technology is becoming encíypting data acíoss a favoíite foí developing
incíeasingly populaí. APIs distíibuted nodes. It also modeín WebAPI. It's a
can access and deliveí a allows diíect tíansactions íobust aíchitectuíal style to
vast íange of data points, without inteímediaíies, develop single-functioning
and AI is used to díaw fasteí, and secuíe access. seívices that can benefit
meaningful patteíns in the fíom dynamic scaling and
vast data. quick deployment.
YOUTUBE
APtheIYouľube Data API, you can add a vaíiety of Youľube featuíes to
With
youí application. Use the API to upload videos, manage playlists and
subscíiptions, update channel settings, and moíe.

Use the API to seaích foí videos matching specific seaích teíms, topics,
locations, publication dates, and much moíe. ľ he APIs search.list
method also suppoíts seaíches foí playlists and channels.
FACEBOOK
AP I API (Application Píogíamming Inteíface) is a collection of
ľhe Facebook
tools and píotocols that enable developeís to cíeate softwaíe applications
that inteíact with the Facebook platfoím. ľhe Facebook API allows
developeís to access useí data, post updates, and peífoím vaíious otheí
actions on behalf of Facebook useís.

1. Gíaph API

2. Maíketing API

3. Messengeí API

4. Instagíam API
AUDIO AND VIDEO APIs

the HTMLMediaElement API píovides featuíes to allow you to contíol video


and audio playeís píogíammatically — foí example
HTMLMediaElement.play(), HTMLMediaElement.pause(), etc. ľhis inteíface
is available to both <audio> and <video> elements, as the featuíes you'll
want to implement aíe neaíly identical.

allow developeís to build applications that inteíact with audio and video
content. ľheíe aíe vaíious APIs available foí diffeíent aspects of audio
and video píocessing, including íecoíding, playback, encoding, decoding,
and manipulation.
AP Is For
M anipulating
Documents
APIs (Application Píogíamming Inteífaces) foí manipulating documents aíe
sets of tools and píotocols that allow developeís to build applications that
inteíact with document files, such as PDFs, Woíd documents, Excel
spíeadsheets, and moíe. ľhese APIs píovide functionality foí cíeating,
modifying, and extíacting infoímation fíom document files, as well as
conveíting between diffeíent document foímats.

También podría gustarte