Along with the e2e testing, now a days it’s important to perform API automation testing and also integration testing, and there are several tools and libraries available for API testing.
API testing tools / libraries –
- Postman
- Java – restAssured
- C# – restSharpe
- Katalon studio
- Python – requests with pytest
Postman is a tool to perform all kind of API testing by providing the payload, authentication and different API calls / methods, to practice API testing in postman also we need demo APIs.
We will see few available opensource/free/community edition based demo sites to practice API testing.
List of API demo portals –
https://restful-booker.herokuapp.com/apidoc/index.html
https://calendarific.com/api-documentation
https://bookcart.azurewebsites.net/swagger/index.html
This above is book cart API with swagger documentation.
https://practice.expandtesting.com/notes/app (for UI automation testing practice)
For this above demo portal, there are API end points available for practicing the API testing as well – (with swagger documentation)
https://practice.expandtesting.com/notes/api/api-docs/
http://dummy.restapiexample.com/
https://developer.atlassian.com/cloud/trello/rest/api-group-actions/
These below sites will give you online playground to run the API calls with parameters, header, body etc. –
If you want to have a local API server for faster executions, you can refer to