SlideShare a Scribd company logo
1 of 5
Download to read offline
http://career.guru99.com/
15 Rest API Interview Question
1) Explain what is REST and RESTFUL?
REST represents REpresentational State Transfer; it is relatively new aspect of writing web api.
RESTFUL is referred for web services written by applying REST architectural concept are called
RESTful services, it focuses on system resources and how state of resource should be
transported over HTTP protocol to a different clients written in different language. In RESTFUL
web service http methods like GET, POST, PUT and DELETE can be used to perform CRUD
operations.
2) Explain the architectural style for creating web api?
The architectural style for creating web api are
HTTP for client server communication
XML/JSON as formatting language
Simple URI as the address for the services
Stateless communication
3) Mention what tools are required to test your web api?
SOAPUI tool for SOAP WS and Firefox “poster” plugin for RESTFUL services.
4) Mention what are the HTTP methods supported by REST?
HTTP methods supported by REST are:
GET: It requests a resource at the request URL. It should not contain a request body as
it will be discarded. May be it can be cached locally or on the server.
POST: It submits information to the service for processing; it should typically return the
modified or new resource
PUT: At the request URL it update the resource
DELETE: At the request URL it removes the resource
OPTIONS: It indicates which techniques are supported
HEAD: About the request URL it returns meta information
1 / 5
http://career.guru99.com/
5) Mention whether you can use GET request instead of PUT to create a resource?
No, you are not supposed to use POST or GET. GET operations should only have view rights
6) Mention what are resources in a REST architecture?
Resources are identified by logical URLs; it is the key element of a RESTful design. Unlike,
SOAP web services in REST, you view the product data as a resource and this resource should
contain all the required information.
7) Mention what is the difference between AJAX and REST?
AJAX REST
In Ajax, the request are sent to the
server by using XMLHttpRequest
objects. The response is used by
the JavaScript code to dynamically
alter the current page
Ajax is a set of technology; it is a
technique of dynamically updating
parts of UI without having to reload
the page
Ajax eliminates the interaction
between the customer and server
asynchronously
REST requires the interaction
between the customer and server
REST have a URL structure and a
request/response pattern the
revolve around the use of
resources
REST is a type of software
architecture and a method for users
to request data or information from
servers
REST requires the interaction
between the customer and server
7) Mention some key characteristics of REST?
Some key characteristics of REST includes
REST is stateless, therefore the SERVER has no state (or session data)
With a well applied REST API, the server could be restarted between two calls as every
data is passed to the server
2 / 5
http://career.guru99.com/
Web service mostly uses POST method to make operations, whereas REST uses GET
to access resources
8) Mention what are the different application integration styles?
The different integration styles includes
Shared database
Batch file transfer
Invoking remote procedure (RPC)
Swapping asynchronous messages over a message oriented middle-ware (MOM)
9) Explain how JAXB related to RESTful web api?
JAXB stands for java arch for xml binding.
10) Mention what is the difference between PUT and POST?
“PUT”puts a file or resource at a particular URI and exactly at that URI. If there is already a file
or resource at that URI, PUT changes that file or resource. If there is no resource or file there,
PUT makes one
POST sends data to a particular URI and expects the resource at that URI to deal with the
request. The web server at this point can decide what to do with the data in the context of
specified resource
11) Mention which markup language can be used in restful web api?
JSON and XML are the two markup language that can be used in restful web api
12) Mention what is the difference between RPC or document style web services? How
you determine to which one to choose?
In document style web services, we can transport an XML message as part of SOAP request
which is not possible in RPC style web service. Document style web service is most
appropriate in some application where XML message behaves as document and content of that
document can alter and intention of web service does not rely on the content of XML message.
13) Mention what is JAX-WS and JAX-RS?
Both JAX-WS and JAX-RS are libraries (APIs) for doing communication in various ways in
Java. JAX-WS is a library that can be used to do SOAP communication in JAVA, and JAX-RS
lets you do the REST communication in JAVA.
14) List out the tools or API for developing or testing web api?
3 / 5
http://career.guru99.com/
Testing tools for web services for REST APIs includes
Spring REST web service using MVC
Jersey API
CFX
Axis
Restlet,
15) Mention what is the difference between SOAP and REST?
SOAP REST
SOAP is a protocol through which
two computer communicates by
sharing XML document
SOAP permits only XML
SOAP based reads cannot be
cached
SOAP is like custom desktop
application, closely connected to
the server
SOAP is slower than REST
It runs on HTTP but envelopes the
message
Rest is a service architecture and
design for network-based software
architectures
REST supports many different data
formats
REST reads can be cached
A REST client is more like a
browser; it knows how to
standardized methods and an
application has to fit inside it
REST is faster than SOAP
It uses the HTTP headers to hold
meta information
Guru99 Provides FREE ONLINE TUTORIAL on Various courses like
Java MIS MongoDB BigData Cassandra
Web Services SQLite JSP Informatica Accounting
SAP Training Python Excel ASP Net HBase
Project
Management
Test
Management
Business
Analyst
Ethical Hacking PMP
Live Project SoapUI Photoshop Manual Testing Mobile Testing
Selenium CCNA AngularJS NodeJS PLSQL
4 / 5
http://career.guru99.com/
Powered by TCPDF (www.tcpdf.org)
5 / 5

More Related Content

What's hot

introduction about REST API
introduction about REST APIintroduction about REST API
introduction about REST APIAmilaSilva13
 
REST and RESTful Web Services
REST and RESTful Web ServicesREST and RESTful Web Services
REST and RESTful Web ServicesKasun Madusanke
 
RESTFul Web Services - Intro
RESTFul Web Services - IntroRESTFul Web Services - Intro
RESTFul Web Services - IntroManuel Correa
 
Introduction to REST and the Restlet Framework
Introduction to REST and the Restlet FrameworkIntroduction to REST and the Restlet Framework
Introduction to REST and the Restlet FrameworkPhilip Johnson
 
REST - Representational state transfer
REST - Representational state transferREST - Representational state transfer
REST - Representational state transferTricode (part of Dept)
 
The RESTful Soa Datagrid with Oracle
The RESTful Soa Datagrid with OracleThe RESTful Soa Datagrid with Oracle
The RESTful Soa Datagrid with OracleEmiliano Pecis
 
Representational State Transfer (REST)
Representational State Transfer (REST)Representational State Transfer (REST)
Representational State Transfer (REST)David Krmpotic
 
Overview of RESTful web services
Overview of RESTful web servicesOverview of RESTful web services
Overview of RESTful web servicesnbuddharaju
 
Rest and the hypermedia constraint
Rest and the hypermedia constraintRest and the hypermedia constraint
Rest and the hypermedia constraintInviqa
 
Restful Web Services
Restful Web ServicesRestful Web Services
Restful Web ServicesAngelin R
 

What's hot (20)

Soap and Rest
Soap and RestSoap and Rest
Soap and Rest
 
Take REST
Take RESTTake REST
Take REST
 
RESTEasy
RESTEasyRESTEasy
RESTEasy
 
introduction about REST API
introduction about REST APIintroduction about REST API
introduction about REST API
 
Soap and Rest
Soap and RestSoap and Rest
Soap and Rest
 
JSON and REST
JSON and RESTJSON and REST
JSON and REST
 
REST and RESTful Web Services
REST and RESTful Web ServicesREST and RESTful Web Services
REST and RESTful Web Services
 
RESTful Web Services
RESTful Web ServicesRESTful Web Services
RESTful Web Services
 
REST API Design
REST API DesignREST API Design
REST API Design
 
RESTFul Web Services - Intro
RESTFul Web Services - IntroRESTFul Web Services - Intro
RESTFul Web Services - Intro
 
Introduction to REST and the Restlet Framework
Introduction to REST and the Restlet FrameworkIntroduction to REST and the Restlet Framework
Introduction to REST and the Restlet Framework
 
ReSTful API Final
ReSTful API FinalReSTful API Final
ReSTful API Final
 
REST - Representational state transfer
REST - Representational state transferREST - Representational state transfer
REST - Representational state transfer
 
The RESTful Soa Datagrid with Oracle
The RESTful Soa Datagrid with OracleThe RESTful Soa Datagrid with Oracle
The RESTful Soa Datagrid with Oracle
 
Representational State Transfer (REST)
Representational State Transfer (REST)Representational State Transfer (REST)
Representational State Transfer (REST)
 
Overview of RESTful web services
Overview of RESTful web servicesOverview of RESTful web services
Overview of RESTful web services
 
Rest and the hypermedia constraint
Rest and the hypermedia constraintRest and the hypermedia constraint
Rest and the hypermedia constraint
 
RESTEasy
RESTEasyRESTEasy
RESTEasy
 
Restful Web Services
Restful Web ServicesRestful Web Services
Restful Web Services
 
Rest web services
Rest web servicesRest web services
Rest web services
 

Similar to Rest api-interview

REST Introduction.ppt
REST Introduction.pptREST Introduction.ppt
REST Introduction.pptKGSCSEPSGCT
 
What are restful web services?
What are restful web services?What are restful web services?
What are restful web services?Aparna Sharma
 
Modern REST API design principles and rules.pdf
Modern REST API design principles and rules.pdfModern REST API design principles and rules.pdf
Modern REST API design principles and rules.pdfAparna Sharma
 
Phalcon 2 High Performance APIs - DevWeekPOA 2015
Phalcon 2 High Performance APIs - DevWeekPOA 2015Phalcon 2 High Performance APIs - DevWeekPOA 2015
Phalcon 2 High Performance APIs - DevWeekPOA 2015Jackson F. de A. Mafra
 
53 hui homework2
53 hui homework253 hui homework2
53 hui homework2huis89
 
Ijirsm ashok-kumar-ps-compulsiveness-of-res tful-web-services
Ijirsm ashok-kumar-ps-compulsiveness-of-res tful-web-servicesIjirsm ashok-kumar-ps-compulsiveness-of-res tful-web-services
Ijirsm ashok-kumar-ps-compulsiveness-of-res tful-web-servicesIJIR JOURNALS IJIRUSA
 
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docx
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docxSOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docx
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docxSigner.Digital
 
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs
SOAP vs REST_ Which Web Service Protocol is Right for Your NeedsSOAP vs REST_ Which Web Service Protocol is Right for Your Needs
SOAP vs REST_ Which Web Service Protocol is Right for Your NeedsSigner.Digital
 
IRJET- Rest API for E-Commerce Site
IRJET- Rest API for E-Commerce SiteIRJET- Rest API for E-Commerce Site
IRJET- Rest API for E-Commerce SiteIRJET Journal
 
Modern REST API design principles and rules.pdf
Modern REST API design principles and rules.pdfModern REST API design principles and rules.pdf
Modern REST API design principles and rules.pdfAparna Sharma
 
Best practices and advantages of REST APIs
Best practices and advantages of REST APIsBest practices and advantages of REST APIs
Best practices and advantages of REST APIsAparna Sharma
 
Rest api best practices – comprehensive handbook
Rest api best practices – comprehensive handbookRest api best practices – comprehensive handbook
Rest api best practices – comprehensive handbookKaty Slemon
 

Similar to Rest api-interview (20)

Rest web service
Rest web serviceRest web service
Rest web service
 
Lab7 paper
Lab7 paperLab7 paper
Lab7 paper
 
Unit 2
Unit 2Unit 2
Unit 2
 
Apitesting.pptx
Apitesting.pptxApitesting.pptx
Apitesting.pptx
 
REST Introduction.ppt
REST Introduction.pptREST Introduction.ppt
REST Introduction.ppt
 
Salesforce Integration
Salesforce IntegrationSalesforce Integration
Salesforce Integration
 
What are restful web services?
What are restful web services?What are restful web services?
What are restful web services?
 
Modern REST API design principles and rules.pdf
Modern REST API design principles and rules.pdfModern REST API design principles and rules.pdf
Modern REST API design principles and rules.pdf
 
Phalcon 2 High Performance APIs - DevWeekPOA 2015
Phalcon 2 High Performance APIs - DevWeekPOA 2015Phalcon 2 High Performance APIs - DevWeekPOA 2015
Phalcon 2 High Performance APIs - DevWeekPOA 2015
 
RIA Data and Security, 2007
RIA Data and Security, 2007RIA Data and Security, 2007
RIA Data and Security, 2007
 
53 hui homework2
53 hui homework253 hui homework2
53 hui homework2
 
Ijirsm ashok-kumar-ps-compulsiveness-of-res tful-web-services
Ijirsm ashok-kumar-ps-compulsiveness-of-res tful-web-servicesIjirsm ashok-kumar-ps-compulsiveness-of-res tful-web-services
Ijirsm ashok-kumar-ps-compulsiveness-of-res tful-web-services
 
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docx
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docxSOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docx
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs.docx
 
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs
SOAP vs REST_ Which Web Service Protocol is Right for Your NeedsSOAP vs REST_ Which Web Service Protocol is Right for Your Needs
SOAP vs REST_ Which Web Service Protocol is Right for Your Needs
 
Web Programming
Web ProgrammingWeb Programming
Web Programming
 
IRJET- Rest API for E-Commerce Site
IRJET- Rest API for E-Commerce SiteIRJET- Rest API for E-Commerce Site
IRJET- Rest API for E-Commerce Site
 
WIT UNIT-5.pdf
WIT UNIT-5.pdfWIT UNIT-5.pdf
WIT UNIT-5.pdf
 
Modern REST API design principles and rules.pdf
Modern REST API design principles and rules.pdfModern REST API design principles and rules.pdf
Modern REST API design principles and rules.pdf
 
Best practices and advantages of REST APIs
Best practices and advantages of REST APIsBest practices and advantages of REST APIs
Best practices and advantages of REST APIs
 
Rest api best practices – comprehensive handbook
Rest api best practices – comprehensive handbookRest api best practices – comprehensive handbook
Rest api best practices – comprehensive handbook
 

Recently uploaded

POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 

Recently uploaded (20)

POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 

Rest api-interview

  • 1. http://career.guru99.com/ 15 Rest API Interview Question 1) Explain what is REST and RESTFUL? REST represents REpresentational State Transfer; it is relatively new aspect of writing web api. RESTFUL is referred for web services written by applying REST architectural concept are called RESTful services, it focuses on system resources and how state of resource should be transported over HTTP protocol to a different clients written in different language. In RESTFUL web service http methods like GET, POST, PUT and DELETE can be used to perform CRUD operations. 2) Explain the architectural style for creating web api? The architectural style for creating web api are HTTP for client server communication XML/JSON as formatting language Simple URI as the address for the services Stateless communication 3) Mention what tools are required to test your web api? SOAPUI tool for SOAP WS and Firefox “poster” plugin for RESTFUL services. 4) Mention what are the HTTP methods supported by REST? HTTP methods supported by REST are: GET: It requests a resource at the request URL. It should not contain a request body as it will be discarded. May be it can be cached locally or on the server. POST: It submits information to the service for processing; it should typically return the modified or new resource PUT: At the request URL it update the resource DELETE: At the request URL it removes the resource OPTIONS: It indicates which techniques are supported HEAD: About the request URL it returns meta information 1 / 5
  • 2. http://career.guru99.com/ 5) Mention whether you can use GET request instead of PUT to create a resource? No, you are not supposed to use POST or GET. GET operations should only have view rights 6) Mention what are resources in a REST architecture? Resources are identified by logical URLs; it is the key element of a RESTful design. Unlike, SOAP web services in REST, you view the product data as a resource and this resource should contain all the required information. 7) Mention what is the difference between AJAX and REST? AJAX REST In Ajax, the request are sent to the server by using XMLHttpRequest objects. The response is used by the JavaScript code to dynamically alter the current page Ajax is a set of technology; it is a technique of dynamically updating parts of UI without having to reload the page Ajax eliminates the interaction between the customer and server asynchronously REST requires the interaction between the customer and server REST have a URL structure and a request/response pattern the revolve around the use of resources REST is a type of software architecture and a method for users to request data or information from servers REST requires the interaction between the customer and server 7) Mention some key characteristics of REST? Some key characteristics of REST includes REST is stateless, therefore the SERVER has no state (or session data) With a well applied REST API, the server could be restarted between two calls as every data is passed to the server 2 / 5
  • 3. http://career.guru99.com/ Web service mostly uses POST method to make operations, whereas REST uses GET to access resources 8) Mention what are the different application integration styles? The different integration styles includes Shared database Batch file transfer Invoking remote procedure (RPC) Swapping asynchronous messages over a message oriented middle-ware (MOM) 9) Explain how JAXB related to RESTful web api? JAXB stands for java arch for xml binding. 10) Mention what is the difference between PUT and POST? “PUT”puts a file or resource at a particular URI and exactly at that URI. If there is already a file or resource at that URI, PUT changes that file or resource. If there is no resource or file there, PUT makes one POST sends data to a particular URI and expects the resource at that URI to deal with the request. The web server at this point can decide what to do with the data in the context of specified resource 11) Mention which markup language can be used in restful web api? JSON and XML are the two markup language that can be used in restful web api 12) Mention what is the difference between RPC or document style web services? How you determine to which one to choose? In document style web services, we can transport an XML message as part of SOAP request which is not possible in RPC style web service. Document style web service is most appropriate in some application where XML message behaves as document and content of that document can alter and intention of web service does not rely on the content of XML message. 13) Mention what is JAX-WS and JAX-RS? Both JAX-WS and JAX-RS are libraries (APIs) for doing communication in various ways in Java. JAX-WS is a library that can be used to do SOAP communication in JAVA, and JAX-RS lets you do the REST communication in JAVA. 14) List out the tools or API for developing or testing web api? 3 / 5
  • 4. http://career.guru99.com/ Testing tools for web services for REST APIs includes Spring REST web service using MVC Jersey API CFX Axis Restlet, 15) Mention what is the difference between SOAP and REST? SOAP REST SOAP is a protocol through which two computer communicates by sharing XML document SOAP permits only XML SOAP based reads cannot be cached SOAP is like custom desktop application, closely connected to the server SOAP is slower than REST It runs on HTTP but envelopes the message Rest is a service architecture and design for network-based software architectures REST supports many different data formats REST reads can be cached A REST client is more like a browser; it knows how to standardized methods and an application has to fit inside it REST is faster than SOAP It uses the HTTP headers to hold meta information Guru99 Provides FREE ONLINE TUTORIAL on Various courses like Java MIS MongoDB BigData Cassandra Web Services SQLite JSP Informatica Accounting SAP Training Python Excel ASP Net HBase Project Management Test Management Business Analyst Ethical Hacking PMP Live Project SoapUI Photoshop Manual Testing Mobile Testing Selenium CCNA AngularJS NodeJS PLSQL 4 / 5