diff --git a/Server/.gradle/5.2.1/executionHistory/executionHistory.bin b/Server/.gradle/5.2.1/executionHistory/executionHistory.bin new file mode 100644 index 0000000..3a1de33 Binary files /dev/null and b/Server/.gradle/5.2.1/executionHistory/executionHistory.bin differ diff --git a/Server/.gradle/5.2.1/executionHistory/executionHistory.lock b/Server/.gradle/5.2.1/executionHistory/executionHistory.lock new file mode 100644 index 0000000..8c61ca7 Binary files /dev/null and b/Server/.gradle/5.2.1/executionHistory/executionHistory.lock differ diff --git a/Server/.gradle/5.2.1/fileChanges/last-build.bin b/Server/.gradle/5.2.1/fileChanges/last-build.bin new file mode 100644 index 0000000..f76dd23 Binary files /dev/null and b/Server/.gradle/5.2.1/fileChanges/last-build.bin differ diff --git a/Server/.gradle/5.2.1/fileContent/fileContent.lock b/Server/.gradle/5.2.1/fileContent/fileContent.lock new file mode 100644 index 0000000..b18cf80 Binary files /dev/null and b/Server/.gradle/5.2.1/fileContent/fileContent.lock differ diff --git a/Server/.gradle/5.2.1/fileHashes/fileHashes.bin b/Server/.gradle/5.2.1/fileHashes/fileHashes.bin new file mode 100644 index 0000000..aa8687e Binary files /dev/null and b/Server/.gradle/5.2.1/fileHashes/fileHashes.bin differ diff --git a/Server/.gradle/5.2.1/fileHashes/fileHashes.lock b/Server/.gradle/5.2.1/fileHashes/fileHashes.lock new file mode 100644 index 0000000..728085d Binary files /dev/null and b/Server/.gradle/5.2.1/fileHashes/fileHashes.lock differ diff --git a/Server/.gradle/5.2.1/gc.properties b/Server/.gradle/5.2.1/gc.properties new file mode 100644 index 0000000..e69de29 diff --git a/Server/.gradle/5.2.1/javaCompile/classAnalysis.bin b/Server/.gradle/5.2.1/javaCompile/classAnalysis.bin new file mode 100644 index 0000000..9a39887 Binary files /dev/null and b/Server/.gradle/5.2.1/javaCompile/classAnalysis.bin differ diff --git a/Server/.gradle/5.2.1/javaCompile/javaCompile.lock b/Server/.gradle/5.2.1/javaCompile/javaCompile.lock new file mode 100644 index 0000000..4f762a7 Binary files /dev/null and b/Server/.gradle/5.2.1/javaCompile/javaCompile.lock differ diff --git a/Server/.gradle/5.2.1/javaCompile/taskHistory.bin b/Server/.gradle/5.2.1/javaCompile/taskHistory.bin new file mode 100644 index 0000000..2118b1f Binary files /dev/null and b/Server/.gradle/5.2.1/javaCompile/taskHistory.bin differ diff --git a/Server/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/Server/.gradle/buildOutputCleanup/buildOutputCleanup.lock new file mode 100644 index 0000000..3bfd094 Binary files /dev/null and b/Server/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/Server/.gradle/buildOutputCleanup/cache.properties b/Server/.gradle/buildOutputCleanup/cache.properties new file mode 100644 index 0000000..37d9125 --- /dev/null +++ b/Server/.gradle/buildOutputCleanup/cache.properties @@ -0,0 +1,2 @@ +#Wed Feb 20 23:42:38 CET 2019 +gradle.version=5.2.1 diff --git a/Server/.gradle/buildOutputCleanup/outputFiles.bin b/Server/.gradle/buildOutputCleanup/outputFiles.bin new file mode 100644 index 0000000..4cb0ec9 Binary files /dev/null and b/Server/.gradle/buildOutputCleanup/outputFiles.bin differ diff --git a/Server/.gradle/vcs-1/gc.properties b/Server/.gradle/vcs-1/gc.properties new file mode 100644 index 0000000..e69de29 diff --git a/Server/.idea/encodings.xml b/Server/.idea/encodings.xml new file mode 100644 index 0000000..15a15b2 --- /dev/null +++ b/Server/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/Server/.idea/gradle.xml b/Server/.idea/gradle.xml new file mode 100644 index 0000000..d1f1d89 --- /dev/null +++ b/Server/.idea/gradle.xml @@ -0,0 +1,20 @@ + + + + + + \ No newline at end of file diff --git a/Server/.idea/misc.xml b/Server/.idea/misc.xml new file mode 100644 index 0000000..9870be1 --- /dev/null +++ b/Server/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/Server/.idea/workspace.xml b/Server/.idea/workspace.xml new file mode 100644 index 0000000..f0c9e71 --- /dev/null +++ b/Server/.idea/workspace.xml @@ -0,0 +1,271 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + + + + + + + + + + + + + + + 1550790895238 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 10 + + + + + + + + \ No newline at end of file diff --git a/Server/build.gradle b/Server/build.gradle new file mode 100644 index 0000000..5dcedff --- /dev/null +++ b/Server/build.gradle @@ -0,0 +1,32 @@ +buildscript { + repositories { + mavenCentral() + } + dependencies { + classpath("org.springframework.boot:spring-boot-gradle-plugin:2.0.5.RELEASE") + } +} + +apply plugin: 'java' +apply plugin: 'eclipse' +apply plugin: 'idea' +apply plugin: 'org.springframework.boot' +apply plugin: 'io.spring.dependency-management' +apply plugin: 'jacoco' + +bootJar { + baseName = 'gs-rest-service' + version = '0.1.0' +} + +repositories { + mavenCentral() +} + +sourceCompatibility = 1.8 +targetCompatibility = 1.8 + +dependencies { + compile("org.springframework.boot:spring-boot-starter-web") + testCompile('org.springframework.boot:spring-boot-starter-test') +} \ No newline at end of file diff --git a/Server/build/classes/java/main/hello/Application.class b/Server/build/classes/java/main/hello/Application.class new file mode 100644 index 0000000..7e42770 Binary files /dev/null and b/Server/build/classes/java/main/hello/Application.class differ diff --git a/Server/build/classes/java/main/hello/Greeting.class b/Server/build/classes/java/main/hello/Greeting.class new file mode 100644 index 0000000..1aba7ae Binary files /dev/null and b/Server/build/classes/java/main/hello/Greeting.class differ diff --git a/Server/build/classes/java/main/hello/GreetingController.class b/Server/build/classes/java/main/hello/GreetingController.class new file mode 100644 index 0000000..6938277 Binary files /dev/null and b/Server/build/classes/java/main/hello/GreetingController.class differ diff --git a/Server/src/main/java/hello/Application.java b/Server/src/main/java/hello/Application.java new file mode 100644 index 0000000..09ac9d8 --- /dev/null +++ b/Server/src/main/java/hello/Application.java @@ -0,0 +1,12 @@ +package hello; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +@SpringBootApplication +public class Application { + + public static void main(String[] args) { + SpringApplication.run(Application.class, args); + } +} \ No newline at end of file diff --git a/Server/src/main/java/hello/Greeting.java b/Server/src/main/java/hello/Greeting.java new file mode 100644 index 0000000..4868c27 --- /dev/null +++ b/Server/src/main/java/hello/Greeting.java @@ -0,0 +1,20 @@ +package hello; + +public class Greeting { + + private final long id; + private final String content; + + public Greeting(long id, String content) { + this.id = id; + this.content = content; + } + + public long getId() { + return id; + } + + public String getContent() { + return content; + } +} \ No newline at end of file diff --git a/Server/src/main/java/hello/GreetingController.java b/Server/src/main/java/hello/GreetingController.java new file mode 100644 index 0000000..49499f6 --- /dev/null +++ b/Server/src/main/java/hello/GreetingController.java @@ -0,0 +1,19 @@ +package hello; + +import java.util.concurrent.atomic.AtomicLong; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +@RestController +public class GreetingController { + + private static final String template = "Hello, %s!"; + private final AtomicLong counter = new AtomicLong(); + + @RequestMapping("/greeting") + public Greeting greeting(@RequestParam(value="name", defaultValue="World") String name) { + return new Greeting(counter.incrementAndGet(), + String.format(template, name)); + } +} \ No newline at end of file