Contents

Hypermedia

Hypermedia is how you get around the ShootProof API. Hypermedia indicates to your app how things are related and what you’re able to do.

Simply put, hypermedia are links.

At ShootProof, we don’t argue about what is and isn’t RESTful. We use links because they work best for us, and they do a good job telling your app where to go next.

When building an app, pay close attention to the link relations we provide on responses. Each relation means something and tells your app how the data is related. Sometimes the links change and that’s okay. As long as your app knows what the relations mean, it can follow them and adapt.

The links Object

All API responses we return include link relations that map to either standard link relation types or a ShootProof link relation with meaning specific to the ShootProof API. Link relations are conveyed using a JSON links object, the properties of which are link relations.

The links object consists of one or more properties named according to a link relation. Each relation property may contain a single relation object or an array of multiple relation objects.