1. TITLE OF SEMINAR:-
C# AND REST API SERVICES
PRESENTED BY :-
PRADNYA RAVINDRA GHEGADMAL
GUIDED BY –
PROF. JAVED ATTAR
DEPARTMENT OF MCA
Bhujbal Knowledge City
MET Institute of Engineering
3. INTRODUCTION OF C#
It is an object-oriented programming language created by Microsoft that runs
on the .NET Framework.
C# has roots from the C family, and the language is close to other popular
languages like C++ and Java.
The first version was released in year 2002. The latest version, C# 8, was
released in September 2019.
C# is an object oriented language which gives a clear structure to programs and
allows code to be reused, lowering development costs.
Bhujbal Knowledge City
MET Institute of Engineering
4. WHY USE C# ?
It is easy to learn and
simple to use.
C# is close to
C, C++ and Java, it makes
it easy for programmers
to switch to C# or vice
versa.
C# is used for: Mobile applications
Desktop applications Web applications Games And much, much more!
Bhujbal Knowledge City
MET Institute of Engineering
6. REST API SERVICE
• REST stands for REpresentational State Transfer.
• API stands for Application Programming Interface.
• Main purpose to get , put , update and delete the data from server.
• The communication between the client and the server happens over HTTP.
• REST also enables servers to cache the response that improves the application’s performance.
Bhujbal Knowledge City
MET Institute of Engineering
7. WHY USE REST API ?
The REST API creates an object, and thereafter sends the values of an object
in response to the client.
It breaks down a transaction in order to create small modules. Now, each of
these modules is used to address a specific part of the transaction.
This approach provides more flexibility but requires a lot of effort to be built
from the very scratch.
APIs makes developers to write a separate communication protocol for each
third-party software or service with which they wanted to communicate.
Bhujbal Knowledge City
MET Institute of Engineering
8. CHARACTERISTICS OF REST API
Bhujbal Knowledge City
MET Institute of Engineering
Easy readable Difficult to misuse It supports JSON and XML
11. REST API METHODS
Bhujbal Knowledge City
MET Institute of Engineering
• GET: The HTTP GET method is used to read (or retrieve) a representation of a
resource. GET returns a representation in XML or JSON and an HTTP response
code of 200 (OK). In an error case, it most often returns a 404 (NOT FOUND) or
400 (BAD REQUEST).
• POST: POST method is used to request the server to accept the enclosed entity as
a subordinate of the existing resource identified by the Request-URI. This means
the POST method call will create a child resource under a collection of resources.
12. • PUT: It is used for updating the capabilities. However, PUT can also be
used to create a resource in the case where the resource ID is chosen
by the client instead of by the server. In other words, if the PUT is to a
URI that contains the value of a non-existent resource ID.
• DELETE: It is used to delete a resource identified by a URI. On
successful deletion, return HTTP status 200 (OK) along with a
response body.
Bhujbal Knowledge City
MET Institute of Engineering
13. WHERE WE CAN USE REST API
Bhujbal Knowledge City
MET Institute of Engineering
14. ADVANTAGES OF REST API
Bhujbal Knowledge City
MET Institute of Engineering
EASY TO INTEGRATE USE OF HTTP IT’S A SCALABLE
LANGUAGE THAT’S
EASY TO MAINTAIN
INDEPENDENCE SPEED
15. Bhujbal Knowledge City
MET Institute of Engineering
The biggest problem with
REST APIs is the nature of
multiple endpoints.
These require clients to do
multiple round-trips to get
their data.
REST is lightweight
architecture but it is not
suitable to handle a complex
environment.
REST requests (especially
GET) are not suitable for
large amounts of data.
DISADVANTAGES OF REST API
16. CONCLUSION
• Sometimes the simplest definitions can be
taken for granted in the API space.
Understanding what an API is, and what an
API call is, is crucial to comprehending the
ever-growing complexity of interconnected
networks in modern web development.
While this is only a basic primer, we
hope we’ve done a decent job of
introducing it.
Bhujbal Knowledge City
MET Institute of Engineering