Mark Winteringham
Tester, Toolsmith, Author and Instructor
Challenge Description
Using restful-booker, send an HTTP request to create a booking and then assert that the correct details are returned in the HTTP response. For example, if you set the first name as "Mark", then HTTP response will come back with a booking that has a first name of "Mark"
Hints:
- You can get more information about creating a booking in the restful-booker API docs.
- Restful-booker resets every ten minutes. Meaning you cannot rely on stored bookings from the past.
What you’ll learn
- Construct an automated API check that can assert an HTTP response body
Prerequisites
Whilst this challenge is language agnostic (you can complete it using any tool or language you want) you will need to ensure all necessary SDKs and libraries are installed.
Resources
You can learn more about API automation in the API automation topic page. Here are some additional resources:
Courses
- Introduction to HTTP - A course by Mark Winteringham that goes through the fundamentals of HTTP and how to use it in testing
- Building blocks of the Internet - A course by Mark Winteringham that explores how different web technologies work together. Including HTTP
- Let's build an API checking framework - A course by Mark Winteringham that explores how to create automated API checks using Java and Spring
- Automating API Checks with RestSharp - A course by Hilary Weaver-Robb that explores how to create automated API checks using C# and RestSharp
Blogs
- Rest-Assured course - A free course from the Automation in Testing site that teaches you how to create an automated API check using Java and Rest-assured
- How to build an API checking framework in Ruby - A three-part blog series that shares how to setup an automated API checking framework in Ruby
Practise sites
- restful-booker.herokuapp.com - A practise API that contains documentation (and bugs to find). An excellent place to start your API testing against
Code
- API Frameworks - A compilation of different API frameworks built in different languages that can be used to kickstart an API automation framework
Books
- Testing Web APIs by Mark Winteringham - A comprehensive book that covers a range of API testing activities, including automation
Join thousands of other software testers in levelling up their careers
Explore MoT
Wed, 1 Oct 2025
On the 1st & 2nd of October, 2025 we'll be back to Brighton for another TestBash: the largest software testing conference in the UK
Ascend to leadership roles by mastering strategic skills in automation strategy creation, planning and execution
Debrief the week in Testing via a community radio show hosted by Simon Tomes and members of the community