Skip to content

Instantly share code, notes, and snippets.

@tfennelly
Created October 9, 2013 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tfennelly/6903623 to your computer and use it in GitHub Desktop.
Save tfennelly/6903623 to your computer and use it in GitHub Desktop.
{
"customer": {
"label": "Customer",
"fields" : [
{"name":"id", "label":"Id", "provideOn": {"create": "mandatory"}},
{"name":"firstName","label":"First Name", "provideOn": {"create": "mandatory"}},
{"name":"lastName", "label":"Last Name", "provideOn": {"create": "mandatory"}},
{"name":"email","label":"Email", "provideOn": {"create": "mandatory"}}
],
"rest": "/api/customer"
},
"shipment": {
"label": "Shipment",
"fields" : [
{"name":"productName","label":"Product Name", "provideOn": {"create": "mandatory"}},
{"name":"customer","label":"Customer",
"fields" : [
{"name":"firstName","label":"First Name"},
{"name":"lastName", "label":"Last Name"},
{"name":"email","label":"Email"}
]
}
],
"rest": "/api/shipment"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment