API-Assignment 1
API-Assignment 1
When submitting evidence for assessment, each student must sign a declaration
confirming that the work is their own.
Plagiarism
Plagiarism is a particular form of cheating. Plagiarism must be avoided at all costs
and students who break the rules, however innocently, may be penalised. It is your
responsibility to ensure that you understand correct referencing practices. As a
university level student, you are expected to use appropriate references throughout
and keep carefully detailed notes of all your sources of materials for material you
have used in your work, including any material downloaded from the Internet. Please
consult the relevant unit lecturer or your course tutor if you need any further advice.
Student Declaration
Student declaration
I certify that the assignment submission is entirely my own work and I fully
understand the consequences of plagiarism. I understand that making a false
declaration is a form of malpractice.
Maraj
Student signature: Date: 9-Sep-21
P2. Analysing an existing application that could be extended with a suitable API. . . .6
API (Application Program Interface)
API roles:
An API is a set of programming code that enables the transfer of data between
software products. It also contains data transfer conditions. In other words, the API
sends the user's response to the system and then returns the system's response to
the user. A developer can use the API to send or receive data by making a specified
"call" or "request".
Need Of APIs:
Importance of API:
APIs, or application programmer interfaces, are critical tools for companies around
the world. APIs are important from a technical point of view because they allow the
capabilities of one computer program to be used by others. They are a way for two
separate programmers to communicate with each other.
API Types:
Web API
APIs that can be accessed via HTTP are known as Web APIs. The API specifies
endpoints as well as acceptable request and response formats. The APIs used to
connect to the browser are referred to as web APIs. These can be, for example, web
notifications or web storage. Different online APIs, such as open, enterprise and
partner APIs, have different levels of security and privacy. It is possible to combine
many web APIs.
Mobile API
APIs are a fundamental aspect of almost every mobile app strategy. To really get
massive amounts of enterprise data into a usable framework on a mobile device,
mobile APIs are required. Even though APIs are widely used, there are still a lot of
things they can do that most businesses don't take advantage of. Mobile API is a
technology that allows users to work with data from many sources.
Desktop API
Desktop applications are powered by APIs. Desktop applications ran code, read and
wrote to local files on your computer or laptop hard drive. An example of a desktop
API is Windows. Developers can use the Windows API to create user interface
controls and elements including windows, sliders, and dialogs. It also contains
commands to access the file system and run programmers.
Open APIs aka Public APIs are open to developers and other users with only a few
restrictions. They can ask for registration, an API key, or OAuth authorization, or they
can be completely accessible. They target external users to gain access to data or
services.
Partner API: APIs from strategic business partners are made available. They are not
open to the general public and require special permission. Partner APIs, like open
APIs, are the tip of the iceberg because they are the most visible and are used to
communicate beyond company boundaries. They are usually accessible through a
public API developer website that allows developers to self-certify their APIs.
Internal APIs, or private APIs, are hidden from external users and only internal
systems can access them. Internal APIs are not intended for off-premise use; rather,
they are intended to be shared across different internal development teams to
improve efficiency and service reusability. Exposing them to an internal API
developer portal that connects to internal IAM systems to authenticate and grant
access is part of good governance.
Composite APIs can integrate multiple data or service APIs. They are created using
the API orchestration features of the API authoring tool. They allow developers to
make a single call to multiple endpoints. Composite APIs are useful, for example, in
microservices architecture and design, where you need data from multiple services
to complete a single task.
Rest APIs
The REST API is an API that follows the design principles of the REST architectural
style, or representational state transfer. Because of this, REST APIs are sometimes
referred to as RESTful APIs. REST provides developers with a great deal of flexibility
and independence. REST APIs have become a popular approach for connecting
components and applications because of their extensibility.
Client-server architecture: The interface is separated from the backend and data
storage in a client-server architecture. This provides flexibility and development of
separate components independently of each other.
Statelessness: Between requests, the server does not maintain any client
context.
Caching capability: Because clients can cache responses, the REST API
response must declare whether it can be cached.
Layered system: The API will work whether it responds directly with the server or
through an intermediary such as a load balancer.
Soap APIs:
The word SOAP stands for Simple Object Access Protocol. It is an XML-based
communication system for sending and receiving data between computers. The
SOAP protocol is an implementation of the XML specification. It is designed to be
flexible, agnostic (capable of working with a variety of communication protocols,
including HTTP, SMTP, TCP and others) and self-contained (allowing for any style of
programming)
Features of SOAP:
• SOAP (Simple Object Access Protocol) is an XML-based extension of the HTTP
protocol.
• It is a protocol that anyone can use. Thanks to this, everyone can use it.
• It is written entirely in XML and uses XML data formatting.
• The Internet is used for communication.
• Used to connect to web services. (A web service is a set of methods or functions
that operate on a web server.)
SDK: SDK (short for software development kit) is short for software development kit.
It is a set of software tools and programmers that developers use to create
applications for different platforms.
The SDK tools will contain a variety of items that developers can use and incorporate
into their own projects, such as libraries, documentation, code examples, workflows,
and guidelines. SDKs are software development kits that are designed for specific
platforms or programming languages.
SDKs and APIs save time and money. With SDKs, developers are provided the
resources and guidelines to create the products they require.
They don't have to spend time looking up the parts of code and the order in which
specific features are built.
Since APIs merely connect two programmers through integration, no functionality
needs to be added, saving time on development.
Additionally, the product might receive extra features that immediately improve a
user's experience through both SDK and API.
Through the usage of APIs, apps can communicate with one another to enhance the
user experience. One such example is the use of a Facebook account to establish a
new profile in another app. While SDK enhances the user's experience by adding
functionalities to their application.
The advantage of having an SDK, the capacity to design a feature that the app can
"own." The new feature can be tailored by the corporation to the objectives and
needs of the product.
APIs can help businesses save time and money by providing solutions that don't
need to be developed from scratch. Additionally, APIs are simple to include into
other apps.
Additionally, because of their adaptability, they can link to an infinite number of apps
and fulfil many demands that enhance the product. API can transfer the results and
data between platforms rather of needing to generate their own data, allowing them
to rely on other apps instead.
Difference between SDK and API
API (Application Programing Interface) SDK (Software Development kit)
It is an interface (set of libraries) that allows It includes the API library functions and
you to communicate with other platforms. development tools needed to build, test,
and debug Android applications.
It connects and integrates many software. It includes a wide range of development
tools.
It is light, fast and usually specialized It is more robust and usually includes many
utilities
Facebook API:
Facebook API is a platform for developers to create applications that are accessible
to Facebook users. The API allows apps to use social connections and profile
information to make apps more engaging, as well as publish activity on news pages
and Facebook profiles, according to individual users' privacy settings.
Its functionality has been split between the following APIs: Facebook Ads, Facebook
Atlas, Facebook Graph and Facebook Marketing.
Facebook APIs are the most common way to programmatically interact with the vast
Facebook platform. With the help of the Facebook API, third-party developers can
create great Facebook apps, games, stream live programmatically, run automated
marketing campaigns, and manage their business pages.
Facebook SDK:
Facebook Software Development Kit, allows third-party developers to write
applications for Facebook.
Whether it's a birthday card app, an online multiplayer strategy game we play with
our Facebook friends, or programmatically managing a business site.
There are several SDKs, like the many that Facebook offers for different platforms
and programming languages. For example, Facebook SDK for Android, IOS,
JavaScript, PC Games, PHP, React, Swift, Unity, Business SDK. An SDK for writing
TV apps.
1. Home page
2. Register
3. Login with existing API
4. About us
5. Contact us
6. Terms and condition page
Engineers who sign up for the Chart API can use the information to create
deep, customized engagement for their claim users. Facebook Verification
enables developer applications to connect to the Chart API for Facebook
After understanding all the APIs, we chose the Facebook API Because -
1. Using the Facebook API we can create an easy-to-use app where users
can log in and share their data with others smoothly and easily.
2. The API uses the Restful protocol and the answers are in the JSON format.
3. The API allows social networking and profile information to make the app
more engaging.