Skip to content

Instantly share code, notes, and snippets.

@azenla
Last active October 27, 2015 19:00
Show Gist options
  • Save azenla/b88146f64d3afede8955 to your computer and use it in GitHub Desktop.
Save azenla/b88146f64d3afede8955 to your computer and use it in GitHub Desktop.
@Location("/people")
@Many(Person, by: "username")
class People {
@Child(create: Person, description: "Add a Person")
Action addPerson;
}
@Profile("person")
@Editable()
class Person {
@Child(description: "Username of Person")
String username;
@Child(description: "Name of Person")
String name;
@Child(description: "Age of Person")
int age;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment