Last active
October 27, 2015 19:00
-
-
Save azenla/b88146f64d3afede8955 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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