How to learn API testing ?
- Ask yourself if you are ready
- Use short courses in Udemy/YouTube for Postman to learn about manually testing APIs
- Start using reqres.in to practise a little bit more on mock APIs
- Learn the different types of validations that you would be needing to do on the responses manually
- Convert this manual process in head and think on how this can be done using an automation library
- Start learning RestAssured and the Java concepts that are used in them
- Explore about different libraries like hamcrest matchers, Jackson, Gson, Json simple
- Start automating the mock APIs using RestAssured Java library
- Use Java concepts to building your own automation framework (Singleton patterns and Interfaces are the best, when I had tried to create one optimised framework for my API project)
- Start automating the real APIs like Spotify and Stripe APIs, that provide real results but are also free.
f you follow these steps, which might take 2 to 3 weeks (2 hours a day), based on the time that you can dedicate for practicing, you would be good in API testing and automation.