Spine 0.11.0 is out, and Spine is promoted to Beta...
# feed
c
Spine 0.11.0 is out, and Spine is promoted to Beta! Spine is a DSL to type-safely declare your #C0A974TJ9 endpoints in common code, shared between client and server.
Copy code
// :api

val listUsers by get()
    .response<List<UserDto>>()

val createUser by post()
    .request<UserCreationDto>()
    .response<UserDto>()

// :server

route(Api.Users.createUsers) {
    service.createUser(body.toDomain()).toDto()
}

// :client

client.request(Api / Users.createUser, UserCreationDto("Bob")).toDomain()
No magic, no reflection, no code generation—and now production-ready! Announcement • What is Spine? • #C078Z1QRHL3
kodee loving 8
👀 3
👍 2
🎉 2