package com.google.training.helloworld;

import com.google.api.server.spi.config.Api;
import com.google.api.server.spi.config.ApiMethod;
import com.google.api.server.spi.config.ApiMethod.HttpMethod;
import com.google.api.server.spi.config.Named;

/**
 * Defines endpoint functions APIs.
 */
@Api(name = "helloworldendpoints", version = "v1",
scopes = {Constants.EMAIL_SCOPE },
        clientIds = {Constants.WEB_CLIENT_ID, Constants.API_EXPLORER_CLIENT_ID },
        description = "API for hello world endpoints.")

public class HelloWorldEndpoints {

   // Declare this method as a method available externally through Endpoints
    @ApiMethod(name = "sayHello", path = "sayHello",
            httpMethod = HttpMethod.GET)

    public HelloClass sayHello() {
        return new HelloClass();
    }

    // Declare this method as a method available externally through Endpoints
    @ApiMethod(name = "sayHelloByName", path = "sayHelloByName",
            httpMethod = HttpMethod.GET)

    public HelloClass sayHelloByName (@Named("name") String name) {
        return new HelloClass(name);
    }
}

@@ -289,16 +289,21 @@
 */%0A@Api(
+%0A    
 name = %22
@@ -324,16 +324,21 @@
 oints%22, 
+%0A    
 version 
@@ -345,16 +345,20 @@
 = %22v1%22,%0A
+    
 scopes =
@@ -380,28 +380,24 @@
 IL_SCOPE %7D,%0A
-    
     clientId
@@ -462,20 +462,16 @@
 T_ID %7D,%0A
-    
     desc
@@ -512,18 +512,22 @@
 points.%22
-)
 %0A
+    )
 %0Apublic 
@@ -557,30 +557,27 @@
 ts %7B%0A%0A   // 
-Declar
+Mak
 e this metho
@@ -574,36 +574,24 @@
 this method 
-as a method 
 available ex
@@ -669,28 +669,16 @@
 yHello%22,
-%0A           
  httpMet
@@ -691,33 +691,32 @@
 HttpMethod.GET)%0A
-%0A
     public Hello
@@ -785,14 +785,11 @@
  // 
-Declar
+Mak
 e th
@@ -802,20 +802,8 @@
 hod 
-as a method 
 avai
@@ -905,20 +905,8 @@
 me%22,
-%0A           
  htt
@@ -931,17 +931,16 @@
 od.GET)%0A
-%0A
     publ

Clean up code formatting.