Fake catalog service for the Backing Services chapter.
To build and run:
- Do a
glide install
to fetch all of the dependencies from theglide.lock
file and put them in thevendor/
directory. go build
to build the executable honoring the new vendor directory.- Run the application. Make sure that the fulfillment service is also running, otherwise requests for individual SKU details will fail.
Resource | Method | Description |
---|---|---|
/catalog | GET | Retrieves a summary of catalog items |
/catalog/{sku} | GET | Retrieves details for an individual catalog item. This will invoke the fulfillment backing service |