REST Consumer and Provider Example
Explore testing a basic JavaScript client against the REST API, using a client library for contract testing.
We'll cover the following
First, we will test a simple JavaScript client against the REST API provided by the Shopping Baskets module. We do not have a real UI to add tests to, but we can create a small JavaScript client library. For contract testing, we would only want to work with the client library anyhow, so this is not a big problem.
We will focus on a couple of endpoints for this demonstration:
Get hands-on with 1400+ tech skills courses.