diff --git a/dialogflow-fun-api/.gitignore b/dialogflow-fun-api/.gitignore new file mode 100644 index 0000000..a2a3040 --- /dev/null +++ b/dialogflow-fun-api/.gitignore @@ -0,0 +1,31 @@ +HELP.md +target/ +!.mvn/wrapper/maven-wrapper.jar +!**/src/main/** +!**/src/test/** + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans +.sts4-cache + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +/nbproject/private/ +/nbbuild/ +/dist/ +/nbdist/ +/.nb-gradle/ +build/ + +### VS Code ### +.vscode/ diff --git a/dialogflow-fun-api/pom.xml b/dialogflow-fun-api/pom.xml new file mode 100644 index 0000000..3059e3b --- /dev/null +++ b/dialogflow-fun-api/pom.xml @@ -0,0 +1,58 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 2.2.0.RELEASE + + + fr.lengrand + dialogflow-fun-api + 0.0.1-SNAPSHOT + dialogflow-fun-api + Bank API dummy for Dialog Flow + + + 11 + + + + + org.springframework.boot + spring-boot-starter-web + + + + org.springframework.boot + spring-boot-starter-test + test + + + org.junit.vintage + junit-vintage-engine + + + + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + com.google.cloud.tools + appengine-maven-plugin + 2.1.0 + + 1 + GCLOUD_CONFIG + + + + + + diff --git a/dialogflow-fun-api/src/main/appengine/app.yaml b/dialogflow-fun-api/src/main/appengine/app.yaml new file mode 100644 index 0000000..6ed5e6a --- /dev/null +++ b/dialogflow-fun-api/src/main/appengine/app.yaml @@ -0,0 +1,2 @@ +runtime: java11 +instance_class: F1 \ No newline at end of file diff --git a/dialogflow-fun-api/src/main/java/fr/lengrand/dialogflowfunapi/DialogflowFunApiApplication.java b/dialogflow-fun-api/src/main/java/fr/lengrand/dialogflowfunapi/DialogflowFunApiApplication.java new file mode 100644 index 0000000..aab9296 --- /dev/null +++ b/dialogflow-fun-api/src/main/java/fr/lengrand/dialogflowfunapi/DialogflowFunApiApplication.java @@ -0,0 +1,20 @@ +package fr.lengrand.dialogflowfunapi; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RestController; + +@SpringBootApplication +@RestController +public class DialogflowFunApiApplication { + + public static void main(String[] args) { + SpringApplication.run(DialogflowFunApiApplication.class, args); + } + + @GetMapping("/") + public String hello() { + return "hello world!"; + } +} diff --git a/dialogflow-fun-api/src/main/resources/application.properties b/dialogflow-fun-api/src/main/resources/application.properties new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/dialogflow-fun-api/src/main/resources/application.properties @@ -0,0 +1 @@ + diff --git a/dialogflow-fun-api/src/test/java/fr/lengrand/dialogflowfunapi/DialogflowFunApiApplicationTests.java b/dialogflow-fun-api/src/test/java/fr/lengrand/dialogflowfunapi/DialogflowFunApiApplicationTests.java new file mode 100644 index 0000000..10f2161 --- /dev/null +++ b/dialogflow-fun-api/src/test/java/fr/lengrand/dialogflowfunapi/DialogflowFunApiApplicationTests.java @@ -0,0 +1,13 @@ +package fr.lengrand.dialogflowfunapi; + +import org.junit.jupiter.api.Test; +import org.springframework.boot.test.context.SpringBootTest; + +@SpringBootTest +class DialogflowFunApiApplicationTests { + + @Test + void contextLoads() { + } + +}