Skip to content

Instantly share code, notes, and snippets.

@carlesjove
Created October 8, 2014 10:23
Show Gist options
  • Save carlesjove/a8fccbd3acd7a2ed278f to your computer and use it in GitHub Desktop.
Save carlesjove/a8fccbd3acd7a2ed278f to your computer and use it in GitHub Desktop.
Doubts regarding the usage of Colelction+JSON

Collection+JSON is a hypermedia-type for APIs.

  1. When using the inline property, which lets you nest C+J objects, how deep can the nesting go? Can, by instance, nested collections have templates?
  2. Imagine a template that can take multiple elements of a given kind (i.e. a Customer to which we can add multiple Addresses). How does this multiplicity reflect on the template?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment