Skip to content

Instantly share code, notes, and snippets.

Last active Jan 17, 2020
What would you like to do?
<VueForm action="/api/test.json">
<FormLabel label="First name">
<FormInput name="firstName"/>
<FormLabel label="Last name">
<FormInput name="lastName">
"firstName": "...",
"lastName": "..."
pubic class TestAction extends ApiAction<TestAction.Request, TestAction.Response> {
public Resolution execute(Request request) {
User user = new User();
// save user
return respond(new Response(user.getId()));
public static class Request {
@Validate(minlength = 3, required = true)
public String firstName;
@Validate(maxlength = 1024, required = true)
public String lastName;
public static class Response {
public long id;
public Response(long id) { = id;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment