This service is a REST API that returns order information for each product.
A product is a tuple of (id, name, description).
All responses are in JSON format.
There are 2 endpoints:
/products
returns a list of all the products (upto pagination limit)/products/{id}
returns the info of the order with that id.
$ SPRING_PROFILES_ACTIVE=local ./mvnw clean spring-boot:run -P local
Browse to http://localhost:8083/products
- Login to your Cloud Foundry account (
cf login
orcf login --sso
) if you haven't done so already. - If you haven't set an
$appname
yet, then choose an appropriate name that doesn't clash with apps that have already been deployed to Cloud Foundry. Example:We will use this same$ appname='my-new-enterprise-app'
$appname
when deploying all the other services. - Run the below commands to deploy the
inventory
service to Cloud Foundry.$ SPRING_PROFILES_ACTIVE=dev-inmemorydb ./mvnw clean package -P dev-inmemorydb $ cf push "$appname"-inventory