Workshop about the Red Hat's Full API Lifecycle Management
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

1.2 KiB

title weight
Exercise 1

Expose a Mock of the ACME Brewery API!

As the ACME Brewery API matures, the sales representative of the ACME Brewery already found his first customers. In this exercise, you will have to expose a mock of the ACME Brewery API so that future customers can start their implementation ahead and provide feedback early.

  • Install Postman
  • Load this collection in Postman
  • Examine the provided examples
  • Discover the mocks generated by [Microcks]({{< param microcks_url >}}/#/services)
  • Try to use the generated mock using the following URLs:
curl -D - {{< param microcks_url >}}/rest/Beer+Catalog+API/1.0/beer?page=0
curl -D - {{< param microcks_url >}}/rest/Beer+Catalog+API/1.0/beer/Weissbier
curl -D - {{< param microcks_url >}}/rest/Beer+Catalog+API/1.0/beer/findByStatus/available
curl -D - {{< param microcks_url >}}/rest/Beer+Catalog+API/1.0/beer/findByStatus/out_of_stock

To complete your understanding, explain how the mock is generated and how the future customers of ACME can use it to develop their implementation ahead.