From 9aea1a398a85f7f7aad30d57f33019da6f943e01 Mon Sep 17 00:00:00 2001 From: pricelees Date: Thu, 10 Jul 2025 12:18:50 +0900 Subject: [PATCH] feat: add simple API tests --- src/main/resources/http/create.http | 7 +++++++ src/main/resources/http/datasource.http | 2 ++ src/main/resources/http/findAll.http | 2 ++ src/main/resources/http/findById.http | 2 ++ 4 files changed, 13 insertions(+) create mode 100644 src/main/resources/http/create.http create mode 100644 src/main/resources/http/datasource.http create mode 100644 src/main/resources/http/findAll.http create mode 100644 src/main/resources/http/findById.http diff --git a/src/main/resources/http/create.http b/src/main/resources/http/create.http new file mode 100644 index 0000000..3e11208 --- /dev/null +++ b/src/main/resources/http/create.http @@ -0,0 +1,7 @@ +POST http://localhost:8080/demo +Content-Type: application/json + +{ + "name": "hello kotlin", + "age": 20 +} \ No newline at end of file diff --git a/src/main/resources/http/datasource.http b/src/main/resources/http/datasource.http new file mode 100644 index 0000000..ec6e8cb --- /dev/null +++ b/src/main/resources/http/datasource.http @@ -0,0 +1,2 @@ +GET http://localhost:8080/dataSource +Content-Type: application/json \ No newline at end of file diff --git a/src/main/resources/http/findAll.http b/src/main/resources/http/findAll.http new file mode 100644 index 0000000..c446e3f --- /dev/null +++ b/src/main/resources/http/findAll.http @@ -0,0 +1,2 @@ +GET http://localhost:8080/demo +Content-Type: application/json \ No newline at end of file diff --git a/src/main/resources/http/findById.http b/src/main/resources/http/findById.http new file mode 100644 index 0000000..8bc33c6 --- /dev/null +++ b/src/main/resources/http/findById.http @@ -0,0 +1,2 @@ +GET http://localhost:8080/demo/1 +Content-Type: application/json \ No newline at end of file