Bring some rich behaviour to your APIs by modelling how your business resources behave. Jargon is a platform for creating data models and APIs using Domain Driven Design. In this article we’ll: create a state lifecycle that will advertise what actions can be taken on a Shopping Cart using the states from the lifecycle as the status code for a the Shopping Cart resource create a simple API specification that uses hypermedia to advertise the allowable actions that can be taken on a Shopping Cart…