diff --git a/build.gradle b/build.gradle index 1af83e0..80da186 100644 --- a/build.gradle +++ b/build.gradle @@ -16,6 +16,8 @@ task(start, dependsOn: 'build', type: JavaExec) { } dependencies { + compile "io.springfox:springfox-swagger2:2.6.1" + compile 'io.springfox:springfox-swagger-ui:2.6.1' compile 'com.graphql-java:graphql-java:2015-08-16T21-37-10' compile("org.springframework.boot:spring-boot-starter-web:1.2.5.RELEASE") testCompile group: 'junit', name: 'junit', version: '4.11' diff --git a/build/classes/main/todomvc/GraphQLController.class b/build/classes/main/todomvc/GraphQLController.class new file mode 100644 index 0000000..e1d6f44 Binary files /dev/null and b/build/classes/main/todomvc/GraphQLController.class differ diff --git a/build/classes/main/todomvc/Main.class b/build/classes/main/todomvc/Main.class new file mode 100644 index 0000000..028155b Binary files /dev/null and b/build/classes/main/todomvc/Main.class differ diff --git a/build/classes/main/todomvc/Todo.class b/build/classes/main/todomvc/Todo.class new file mode 100644 index 0000000..83f9abe Binary files /dev/null and b/build/classes/main/todomvc/Todo.class differ diff --git a/build/classes/main/todomvc/TodoSchema.class b/build/classes/main/todomvc/TodoSchema.class new file mode 100644 index 0000000..b3a7657 Binary files /dev/null and b/build/classes/main/todomvc/TodoSchema.class differ diff --git a/build/classes/main/todomvc/TodoSchemaMutations.class b/build/classes/main/todomvc/TodoSchemaMutations.class new file mode 100644 index 0000000..f562956 Binary files /dev/null and b/build/classes/main/todomvc/TodoSchemaMutations.class differ diff --git a/build/classes/main/todomvc/User.class b/build/classes/main/todomvc/User.class new file mode 100644 index 0000000..22a8290 Binary files /dev/null and b/build/classes/main/todomvc/User.class differ diff --git a/build/libs/todomvc-relay-java-1.0-SNAPSHOT.jar b/build/libs/todomvc-relay-java-1.0-SNAPSHOT.jar new file mode 100644 index 0000000..8e308be Binary files /dev/null and b/build/libs/todomvc-relay-java-1.0-SNAPSHOT.jar differ diff --git a/build/tmp/jar/MANIFEST.MF b/build/tmp/jar/MANIFEST.MF new file mode 100644 index 0000000..59499bc --- /dev/null +++ b/build/tmp/jar/MANIFEST.MF @@ -0,0 +1,2 @@ +Manifest-Version: 1.0 + diff --git a/src/main/java/todomvc/GraphQLController.java b/src/main/java/todomvc/GraphQLController.java index 2aa5cdb..e98c659 100644 --- a/src/main/java/todomvc/GraphQLController.java +++ b/src/main/java/todomvc/GraphQLController.java @@ -12,12 +12,14 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; +import springfox.documentation.swagger2.annotations.EnableSwagger2; import java.util.LinkedHashMap; import java.util.Map; @Controller @EnableAutoConfiguration +@EnableSwagger2 public class GraphQLController {