Api Presentation
Api Presentation
WHAT IS API ?
Web
Search Inventory
Account Shipment
DB
SHORT 2
WHAT IS AN API TESTING?
• API testing is entirely different from GUI testing and mainly concentrates on
the business logic layer of the software architecture. This testing won't
concentrate on the look and feel of an application.
API Testing requires an application to interact with API. In order to test an API,
you will need to
1.Use Testing Tool to drive the API
2.Write your own code to test the API
API
WHY API TESTING IS IMPORTANT?
• 200 -> OK
• 400 -> CLIENT'S ERROR
• 500 -> SERVER/API'S ERROR
FIRST TEST CASE
• Parameters are options you can pass with the endpoint to influence the
response
• •2 Types of Parameters
• Query Parameters
• Path Parameters
PATH PARAMETER
Path parameter
QUERY PARAMETERS