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 13 in Others by code_ninja
• 6,120 points
16 views

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 13 by ArchanaNagur
• 2,110 points

Related Questions In Others

0 votes
1 answer

What is the difference between hadoop and google analytics ?

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

answered Aug 21, 2018 in Others by Frankie
• 9,810 points
36 views
+5 votes
6 answers

what is artificial neural network?

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

answered Dec 16, 2018 in Others by Raghumishra
• 240 points
160 views
0 votes
1 answer
+1 vote
1 answer

What is the difference between Dark Web and Deep Web?

The content that which you cannot find ...READ MORE

answered Feb 6 in Others by Priyaj
• 56,160 points
57 views
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
• 10,030 points
116 views
0 votes
1 answer

How can we send data from MongoDB to Hadoop?

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

answered Mar 26, 2018 in Big Data Hadoop by nitinrawat895
• 10,030 points
58 views
+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
• 14,080 points
36 views
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 17, 2018 in Tableau by ghost
• 1,790 points
112 views
+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 in Others by ArchanaNagur
• 2,110 points
22 views
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 in Others by ArchanaNagur
• 2,110 points
15 views