Skip to content

Instantly share code, notes, and snippets.

@feroult
Last active October 4, 2017 11:46
Show Gist options
  • Save feroult/0538eb2de505772474f8afb84d411942 to your computer and use it in GitHub Desktop.
Save feroult/0538eb2de505772474f8afb84d411942 to your computer and use it in GitHub Desktop.
YAWP Kotlin
@Endpoint(path = "/people")
class Person(@Id
var id: IdRef<Person>? = null,
var name: String? = null,
var age: Int? = null)
fun example() {
var person = Person(name = "John", age = 10)
print("${person.name} has ${person.age} years old")
yawp.save(person)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment