3 years, 3 months ago

API Design: Compartments

I’ve been reviewing the FHIR (Fast Healthcare Interoperability Resources, http://www.hl7.org/fhir) specification and they have an interesting concept called a compartment.  Per the spec: Each resource may belong to one or more logical compartments. A compartment is a logical grouping of resources which share a common property. Compartments have two principal roles: Function as an access […]

3 years, 6 months ago

Dynamic Data in REST

I had an interesting conversation with some colleagues around resource design that I thought would be helpful to share.  The starting point was a simple question: Should price generation be a HTTP POST or HTTP GET? There’s solid reasoning for either of them.  Let’s start with HTTP GET. From a consumer’s perspective, a GET probably […]