package io.github.trevornelson;

import com.google.api.server.spi.config.Api;
import com.google.api.server.spi.config.ApiMethod;
import com.google.api.server.spi.response.NotFoundException;
import com.google.appengine.api.users.User;
import javax.inject.Named;

@Api(
    name = "dashboards",
    version = "v1",
    scopes = {Constants.EMAIL_SCOPE},
    clientIds = {Constants.WEB_CLIENT_ID, Constants.ANDROID_CLIENT_ID, Constants.IOS_CLIENT_ID},
    audiences = {Constants.ANDROID_AUDIENCE}
)
public class Dashboards {


}

@@ -227,16 +227,17 @@
 s.User;%0A
+%0A
 import j
@@ -342,16 +342,43 @@
 IL_SCOPE
+, Constants.ANALYTICS_SCOPE
 %7D,%0A    c
@@ -543,11 +543,337 @@
 ards %7B%0A%0A
+%09@ApiMethod(name = %22dashboards.createAccount%22, httpMethod = %22post%22)%0A%09public Account CreateAccount(final User user) %7B%0A%09%09String username = extractUsername(user.getEmail());%09// add control flow to check if user already has account%0A%09%09String email = user.getEmail();%0A%09%09String userId = user.getUserId();%0A%09%09%0A%09%09return Account;%0A%09%7D%0A%09%0A%09%0A
 %0A%7D%0A

Add CreateAccount api method