Exercise

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
  • Try to use the generated mock using the following URLs:
curl -D - https://microcks.app.itix.fr/rest/Beer+Catalog+API/1.0/beer?page=0
curl -D - https://microcks.app.itix.fr/rest/Beer+Catalog+API/1.0/beer/Weissbier
curl -D - https://microcks.app.itix.fr/rest/Beer+Catalog+API/1.0/beer/findByStatus/available
curl -D - https://microcks.app.itix.fr/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.