0% found this document useful (0 votes)
10 views3 pages

API and Web Services Overview - Scholarly Flashcards

Uploaded by

Rana Ben Fraj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views3 pages

API and Web Services Overview - Scholarly Flashcards

Uploaded by

Rana Ben Fraj
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

API and Web Services Overview

Question Answer

What does API stand for? API stands for Application Programming Interface.

What is an API? An API is a software interface that allows two applications to


interact with each other without any user intervention. It is a
collection of software functions and procedures.
How does an API function in the context of a web resource? To programmatically interface with a web resource, the HTTP
protocol is needed, just as it is used in a web browser.
How does an API process requests and responses? An API receives a request (similar to how a waiter takes an order
from a customer), collects and processes a response, and then
returns that response (like a waiter returning the completed meal
to the customer).
What is an API Mashup? An API Mashup is an API that coordinates countless APIs,
allowing for the generation of many methods from different API
gateways.
What are the typical characteristics of Web 2.0 applications? Typical characteristics include users being able to produce and
consume data, use the web as a participation platform, run
software applications entirely through a web browser, and easily
combine data and services to create mashups.
What is the motivation behind Web 2.0 services? The motivation includes the need to manage large quantities of
data on the web, enabling easy integration of data and services,
and allowing desktop apps to work with web apps.
What is a Web Service? A Web Service is a software system designed to support
interoperable machine-to-machine interaction over a network,
described in a machine-processable format such as WSDL.
How do Web Services typically communicate? Web Services typically use SOAP-messages conveyed using
HTTP with an XML serialization.
What are the key differences between an API and a Web 1. All Web services are APIs, but not all APIs are Web services.
Service? 2. Web services use specific communication styles (SOAP,
REST) whereas APIs can use any style. 3. Web services always
need a network for operation, while APIs do not. 4. APIs can
facilitate direct application interfacing, whereas Web Services
interact over a network.
What does HTTP stand for? HTTP stands for Hypertext Transfer Protocol.
What is the role of HTTP? HTTP is a protocol that allows fetching resources, such as HTML
documents, and serves as the foundation of data exchange on
the web.
What are the types of APIs mentioned? Types of APIs include Open APIs (Public APIs), Partner APIs,
and Internal APIs.
What is the main use of Postman? Postman is a powerful HTTP client used for testing API services.
What is the definition of Web 2.0? Web 2.0 is commonly associated with web applications that
facilitate interactive information sharing, interoperability, user-
centered design, and collaboration on the World Wide Web.
What is Service Oriented Architecture (SOA)? Service Oriented Architecture is an architectural pattern for
designing software applications where features are split up and
made available as services in a network.
What distinguishes Low-Level APIs from High-Level APIs? Low-Level APIs have a lower level of abstraction and allow more
detailed manipulation of functions within an application module or
hardware, while High-Level APIs are more abstract and
concerned with performing limited functionality.
Question Answer

What is the function of a Server-side Web API? A Server-side Web API consists of one or more publicly exposed
endpoints to a defined request-response message system,
typically expressed in JSON or XML.
What is the purpose of API testing tools like vREST? vREST provides an online solution for automated testing,
mocking, automatic recording, and specification of RESTful APIs.
What example is given for an API Mashup? GoVoyages.com is cited as an example of a site that utilizes API
Mashups.
What is the significance of Wikipedia in the context of Web 2.0? Wikipedia attracts 1.8 billion unique-device visitors monthly and
has over 57 million articles in more than 300 languages,
exemplifying user-generated content.
What is the communication process in HTTP? Clients and servers communicate by exchanging individual
messages called requests (from the client) and responses (from
the server).
What are the advantages of using APIs? APIs help software communicate and exchange data efficiently,
allow for embedding content more flexibly, and enable
customization of content and services.
What is the role of the HTTP protocol in web applications? HTTP is the foundation of data exchange on the web and
operates as a client-server protocol, where requests are initiated
by the recipient (usually the web browser).
What are the components of an HTTP request structure? 1. A start-line describing the requests to be implemented, or its
status of whether successful or a failure. This start-line is always
a single line.
2. An optional set of HTTP headers specifying the request, or
describing the body included in the message.
3. A blank line indicating all meta-information for the request has
been sent.
4. An optional body containing data associated with the request
like content of an HTML form, or the document associated with a
response.
What are the three elements of the start-line in an HTTP request? 1. An HTTP method, a verb like GET, PUT or POST or a noun
like HEAD or OPTIONS, that describes the action to be
performed.
2. The request target, usually a URL, or the absolute path of the
protocol, port, and domain.
3. The HTTP version, which defines the structure of the
remaining message.
What is the purpose of the HTTP method in a request? The HTTP method describes the action to be performed. For
example, GET indicates that a resource should be fetched, or
POST means that data is pushed to the server.
How is the request target formatted in an HTTP request? The format of the request target varies between different HTTP
methods.
What is the structure of HTTP headers in a request? An HTTP header consists of a case-insensitive string followed by
a colon and a value. The whole header, including the value,
consists of one single line.
What are the different groups of HTTP headers in requests? 1. General headers, which apply to the message as a whole.
2. Request headers, which modify the request by specifying it
further, providing context, or conditionally restricting it.
3. Representation headers, like Content-Type, that describe the
original format of the message data and any encoding applied.
What role does the body play in an HTTP request? The body contains data associated with the request, such as
content of an HTML form or other document data. Not all
requests have a body; requests like GET, HEAD, DELETE, or
OPTIONS usually do not.
Question Answer

What are the two categories of bodies in HTTP requests? 1. Single-resource bodies, consisting of one single file, defined by
the two headers Content-Type and Content-Length.
2. Multiple-resource bodies, consisting of a multipart body, each
containing a different bit of information.
What information does the status line of an HTTP response 1. The protocol version (e.g., HTTP/1.1, HTTP/2.0).
contain? 2. A status code indicating success or failure of the request (e.g.,
200, 404, 302).
3. A status text, a brief textual description of the status code.
What is the structure of HTTP headers in responses? HTTP headers for responses follow the same structure as any
other header: a case-insensitive string followed by a colon and a
value. The whole header, including its value, presents as a single
line.
What are the different groups of HTTP headers in responses? 1. General headers, which apply to the whole message.
2. Response headers, which provide additional information about
the server.
3. Representation headers, which describe the original format of
the message data and any encoding applied.
What are the three categories of bodies in HTTP responses? 1. Single-resource bodies consisting of a single file of known
length.
2. Single-resource bodies consisting of a single file of unknown
length, encoded by chunks.
3. Multiple-resource bodies consisting of a multipart body.
What was the purpose of XML and when was its version 1.0 XML, or Extensible Markup Language, was designed to describe
released? data. Version 1.0 of XML was released in February 1998.
How does XML differ from HTML? XML tags are not predefined unlike HTML. XML DTD and XML
Schema define rules to describe data.
What are the primary components of XML documents? Elements (tags) are the primary components of XML documents.
Elements can contain attributes that provide additional
information.
What is a DTD and what is its purpose in XML? A DTD (Document Type Definition) is a set of rules that specify a
custom set of elements and attributes, serving as grammar to
indicate what tags are legal in XML documents.
What is an advantage of using XML? XML makes documents transportable across systems and
applications, allowing for quick data exchange between different
platforms.
What is a disadvantage of using XML? XML requires a processing application and has a very similar
syntax to other alternatives, which can be confusing. It also has
no intrinsic data type support and the syntax can be redundant.
Who specified JSON and when did it become an ECMA Douglas Crockford specified the JSON format in the early 2000s
standard? and JSON became an ECMA international standard in 2013.
List some differences between JSON and XML. 1. JSON is simple and easy to read/write, while XML is more
powerful.
2. JSON objects have types, while XML data is typeless.
3. JSON is readily accessible as objects; XML needs to be
parsed.
4. JSON does not support comments, XML does.
What are some advantages of using JSON? JSON provides support for all browsers, has a straightforward
syntax, is easy to manipulate, and can transmit structured data
over a network connection.
What is a disadvantage of using JSON? JSON has no namespace support, leading to poor extensibility,
and limited development tools support.

You might also like