Professional Documents
Culture Documents
Whatiswebapiandwhyweuseit? Why Is The Web Api Important? What Is Sonarqube, Tfs
Whatiswebapiandwhyweuseit? Why Is The Web Api Important? What Is Sonarqube, Tfs
What is sonarqube,TFS
Web API is considered the best choice over WCF because of the following reasons:
Web API uses all features of HTTP such as URIs, request/response headers,
caching, versioning, various content formats, etc.
One does not have to define or explain any extra config setting for different
devices in Web API.
Web API uses different text formats including XML because of which it is faster
and more preferred for lightweight services.
Web API also supports MVC features whereas WCF does not support MVC
features.
Web API provides more flexibility as compared to WCF.
Web API uses standard security like token authentication, basic authentication,
etc., to provide secure service whereas WCF uses WS-I standard to provide
secure service.
REST SOAP
It is basically an architectural
It is basically a messaging protocol.
pattern.
It usually works with various text
formats such as plain text, HTML, It only works with XML formats.
JSON, XML, etc.
It has some specifications for both stateless and
It is totally stateless.
stateful implementation.
REST SOAP
Its performance is faster as
Its performance is slower as compared to REST.
compared to SOAP.
It uses WSDL (Web Service Description
It uses XML and JSON to send and
Language) for communication among
receive data.
consumers or users and providers.
SOAP includes built-in error handling for
REST has to resend transfer
communications errors using WS-
whenever it determines any errors.
ReliableMessaging specification.
It calls services by calling RPC (Remote
It calls services using the URL path.
Procedure Call) method.
REST (Representational State Transfer): It is a new and improved form of web
service. It describes the architectural style of networked systems. It does not require
greater bandwidth when requests are sent to the server. It just includes JSON
message. For example:
{"city":"Mumbai","state":"Maharashtra"}
It is basically an enhanced and modified feature of Web API. This new version
supports various new features as given below:
Because of all the new features of Web API 2.0, it is considered an optimal choice
and suitable development model that makes it easier to develop RESTful services
interfaces to different clients running on various platforms. It also supports
configuring routes in the Web API method or controller level
Filters are basically used to add extra logic at different levels of Web API framework
request processing. Different types of Web API filters are available as given below:
Web API generally provides greater flexibility in terms of handling errors. Exception
handling is a technique that is used to handle run-time errors in application code.
One can use HttpResponseException, HttpError, Exception filters, register exception
filters, Exception handlers to handle errors. Exception filter can be used to identify
unhandled exceptions on actions or controllers, exception handlers can be used to
identify any type of unhandled exception application-wide, and
HttpResponseException can be used when there is the possibility of an exception.
How to register an exception filter globally?
nterview Questions
1.What is Database?
2.What is DBMS?
3.What is RDBMS? How is it different from DBMS?
4.What is SQL?
5.What is the difference between SQL and MySQL?
6.What are Tables and Fields?
7.What are Constraints in SQL?
8.What is a Primary Key?
9.What is a UNIQUE constraint?
10.What is a Foreign Key?
11.What is a Join? List its different types.
12.What is a Self-Join?
13.What is a Cross-Join?
14.What is an Index? Explain its different types.
15.What is the difference between Clustered and Non-clustered index?
16.What is Data Integrity?
17.What is a Query?
18.What is a Subquery? What are its types?
19.What is the SELECT statement?
20.What are some common clauses used with SELECT query in SQL?
21.What are UNION, MINUS and INTERSECT commands?
22.What is Cursor? How to use a Cursor?
23.What are Entities and Relationships?
24.List the different types of relationships in SQL.
25.What is an Alias in SQL?
26.What is a View?
27.What is Normalization?
28.What is Denormalization?
29.What are the various forms of Normalization?
30.What are the TRUNCATE, DELETE and DROP statements?
31.What is the difference between DROP and TRUNCATE statements?
32.What is the difference between DELETE and TRUNCATE statements?
33.What are Aggregate and Scalar functions?
34.What is User-defined function? What are its various types?
35.What is OLTP?
36.What are the differences between OLTP and OLAP?
37.What is Collation? What are the different types of Collation Sensitivity?
38.What is a Stored Procedure?
39.What is a Recursive Stored Procedure?
40.How to create empty tables with the same structure as another table?
41.What is Pattern Matching in SQL?
Design Patterns
C#
Asp.net MVC
EntityFramework
LINQ
Angular