kinds of api code example

Example 1: what are the some characteristics of api

-REST is stateless; therefore, the SERVER
has no status (or session data).
With a well-applied REST API, the server
could be restarted between two calls, 
since all data is transferred to the server.
-Web service uses POST method primarily
to perform operations, while REST uses
GET for accessing resources.

Example 2: purpose of api

Knowing the purpose of the API will
set a firm foundation for you to
well prepare your test data for input
and output. This step also helps you
define the verification approach.
For example, for some APIs, you will
verify the responses against the
database; and for some others, it is
better to verify the responses 
against other APIs.

Tags:

Misc Example