/    Sign up×
Community /Pin to ProfileBookmark

What is the REST API? How it Works?

to post a comment

5 Comments(s)

Copy linkTweet thisAlerts:
@sibertAug 18.2019 — Whenever you want to fetch data from a SQL database (or similiar) you can use REST API.

Basically it is another server listening for a request from your web page to "fetch a list of items" and present them on your website. You cannot fetch data direct from your web page. You must use a REST server in order to communicate with the database server AFAIK.
Copy linkTweet thisAlerts:
@NogDogAug 18.2019 — RESTful API's use a specific URL format and a set of HTTP request headers in order to indicate if the request is a Create, Read, Update, or Delete request (a.k.a. CRUD). Rather than trying to explain it all here, I suspect a simple web search on "restful API" will tell you everything you need, probably better than I would off the top of my head. ;)

PS: While a database is normally involved, that's not required for an API to be RESTful -- just that it follows the relevant URL formats and use of HTTP headers.
Copy linkTweet thisAlerts:
@ziptechprivatelimitedAug 20.2019 — API is the acronym for Application Programming Interface, which is a software intermediary that allows two applications to talk to each other. Each time you use an app like Facebook, send an instant message, or check the weather on your phone, you’re using an API.
Copy linkTweet thisAlerts:
@harsheenaAug 20.2019 — hi
Copy linkTweet thisAlerts:
@totomaniacAug 23.2019 — good
×

Success!

Help @sihelal72 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...