What is REST API

0 votes
When I was learning when I was connecting mongoDB with node.js, I cam across the term RestAPI. Can anyone tell me what is it and how should I use it?
Jun 14, 2019 in Others by code_ninja
• 6,290 points

1 answer to this question.

0 votes

Well let us break the word and understand it one by one

  • API (Application Programming Interface): It is a code which is allows the communication between your applications and other applications
  • REST (Representational State Transfer): It is an API that allows you to access or manipulate the resource, using a set of predefined operations through HTTP protocol methods
  • So Finally REST API’s are the API’s used to send the request using HTTP protocol to any application/server and receive the response in form of JSON data
  • A good Example of REST API is - The World Wide Web (WWW) is an example of a distributed system that uses REST protocol architecture to provide a hypermedia driven interface for websites.
  • You use these REST API’s to fetch data from a database via your application
  • For this it uses HTTP methods like GET, PUT, POST, DELETE and more to work data present in database
  • You can even test the working of these API’s using a tool called POSTMAN

To know how to perform queries using REST API and test them using POSTMAN have a look at this link: https://youtu.be/JiBtwxCm2bo

answered Jun 14, 2019 by ArchanaNagur
• 2,360 points

Related Questions In Others

0 votes
0 answers
0 votes
1 answer

What is the better API to Reading Excel sheets in java - JXL or Apache POI

Here are the things where both APIs ...READ MORE

answered Oct 9, 2022 in Others by narikkadan
• 63,700 points
0 votes
1 answer

What is the difference between hadoop and google analytics ?

I will try and answer this as ...READ MORE

answered Aug 22, 2018 in Others by Frankie
• 9,830 points
+5 votes
6 answers

what is artificial neural network?

Machine Learning is a field of computer ...READ MORE

answered Dec 17, 2018 in Others by Raghumishra
• 240 points
0 votes
1 answer

Hadoop MapReduce vs MongoDB MapReduce

Hadoop vs MongoDB MR: 1) Hadoop's MR can ...READ MORE

answered Mar 26, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
0 votes
1 answer

How can we send data from MongoDB to Hadoop?

The MongoDB Connector for Hadoop reads data ...READ MORE

answered Mar 27, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
+1 vote
3 answers

How can I connect an app with an aws ec2 instance?

This is how you deploy a web ...READ MORE

answered Oct 18, 2018 in DevOps & Agile by Hannah
• 18,570 points
0 votes
0 answers

How can I add a connection between Mongodb and Tableau

What I want? Parse the XML to JSON ...READ MORE

May 18, 2018 in Tableau by ghost
• 1,790 points
+1 vote
1 answer

What is Node.js? I want a clear understanding about it.

Node.js is a runtime environment which allows ...READ MORE

answered Jun 17, 2019 in Others by ArchanaNagur
• 2,360 points
0 votes
1 answer

What is use of Babel in Node.js ?

Node.js is a runtime environment  which let us ...READ MORE

answered Jul 2, 2019 in Others by ArchanaNagur
• 2,360 points
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP