You are on page 1of 3

An example to define where we use APIs in our projects!!!!

As we know, if any customer faces any issue or any concern, he contacts


customer support centre.
The Customer support executive who has received the call will be using CRM
application to view the data of the customer who has called.
Usually to raise any issue or complain we make use of Tag TT tab inside the
CRM.

To raise any complain our customer support executive will fill up the fields
available in Tag TT according to the issue which customer is facing.
After data insertion, to raise the complain customer support executive will click
on the “Submit And Close” button available in Tag TT tab.
Once the button is clicked, the request will be raised successfully and the data
associated with it will be stored inside CRM DB, being more specific inside the
“Ticket” table.

Something like this way.


Now going back to system architecture what we have learnt, all the
tickets/complains raised in CRM are transferred to provisioning system.

Here above.
So how do we really transfer the data from CRM to provisioning?
It is done using APIs.
Which call being more specific?
We make use of GET call.
Why GET call?
Because, the data is already available in ticket table we just have to share the
same data with provisioning system. Means we just have to retrieve the
already available data so GET call will do our work.
What do we actually have to test here?
The developer will provide us URI for the GET call.
Take the URI and paste it in postman and send the request.
First we have to check the response time and the status code if it is 200.
Then we have to test the response body. Now how do we do that?
For ticket ID = 1 the response body should come like this:
Expected result:
How do we actually get the expected result?
Hit the query in your db:
Select * from ticket where TicketID = 1
The result you will get will be-

Now validate.
If your actual result looks something like this,

Then your API call has a defect. Just raise it to developer once fixed do
retesting and close the defect.

You might also like