diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..527389dfe --- /dev/null +++ b/.gitignore @@ -0,0 +1,216 @@ +# Created by https://www.toptal.com/developers/gitignore/api/java,gradle,intellij,macos +# Edit at https://www.toptal.com/developers/gitignore?templates=java,gradle,intellij,macos + +### Intellij ### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +gradle/ +gradlew +gradlew.bat +HELP.md + +src/test/java/com/blackdog/springbootBoardJpa/global/JasyptTest.java +src/main/resources/jasypt-encryptor-password.txt + +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# AWS User-specific +.idea/**/aws.xml + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# Gradle and Maven with auto-import +# When using Gradle or Maven with auto-import, you should exclude module files, +# since they will be recreated, and may cause churn. Uncomment if using +# auto-import. +# .idea/artifacts +# .idea/compiler.xml +# .idea/jarRepositories.xml +# .idea/modules.xml +# .idea/*.iml +# .idea/modules +# *.iml +# *.ipr + +# CMake +cmake-build-*/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# File-based project format +*.iws + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# SonarLint plugin +.idea/sonarlint/ + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests + +# Android studio 3.1+ serialized cache file +.idea/caches/build_file_checksums.ser + +### Intellij Patch ### +# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721 + +# *.iml +# modules.xml +# .idea/misc.xml +# *.ipr + +# Sonarlint plugin +# https://plugins.jetbrains.com/plugin/7973-sonarlint +.idea/**/sonarlint/ + +# SonarQube Plugin +# https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin +.idea/**/sonarIssues.xml + +# Markdown Navigator plugin +# https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced +.idea/**/markdown-navigator.xml +.idea/**/markdown-navigator-enh.xml +.idea/**/markdown-navigator/ + +# Cache file creation bug +# See https://youtrack.jetbrains.com/issue/JBR-2257 +.idea/$CACHE_FILE$ + +# CodeStream plugin +# https://plugins.jetbrains.com/plugin/12206-codestream +.idea/codestream.xml + +# Azure Toolkit for IntelliJ plugin +# https://plugins.jetbrains.com/plugin/8053-azure-toolkit-for-intellij +.idea/**/azureSettings.xml + +### Java ### +# Compiled class file +*.class + +# Log file +*.log + +# BlueJ files +*.ctxt + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.nar +*.ear +*.zip +*.tar.gz +*.rar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* +replay_pid* + +### macOS ### +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +### macOS Patch ### +# iCloud generated files +*.icloud + +### Gradle ### +.gradle +**/build/ +!src/**/build/ + +# Ignore Gradle GUI config +gradle-app.setting + +# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) +!gradle-wrapper.jar + +# Avoid ignore Gradle wrappper properties +!gradle-wrapper.properties + +# Cache of project +.gradletasknamecache + +# Eclipse Gradle plugin generated files +# Eclipse Core +.project +# JDT-specific (Eclipse Java Development Tools) +.classpath + +### Gradle Patch ### +# Java heap dump +*.hprof + +###jar 파일 생성 관련 META-INF### +META-INF/* + +.idea/* + +# End of https://www.toptal.com/developers/gitignore/api/java,gradle,intellij,macos diff --git a/BOOT-INF/classes/static/docs/index.html b/BOOT-INF/classes/static/docs/index.html new file mode 100644 index 000000000..e2e1e0273 --- /dev/null +++ b/BOOT-INF/classes/static/docs/index.html @@ -0,0 +1,471 @@ + + +
+ + + + +POST /posts/1 HTTP/1.1
+Content-Type: application/json;charset=UTF-8
+Content-Length: 52
+Host: localhost:8080
+
+{
+ "title" : "subject2",
+ "content" : "content2"
+}
+| Path | +Type | +Description | +
|---|---|---|
|
+
|
+게시물 제목 |
+
|
+
|
+게시물 내용 |
+
HTTP/1.1 201 Created
+Content-Type: application/json
+Content-Length: 163
+
+{
+ "id" : 2,
+ "title" : "subject2",
+ "content" : "content2",
+ "name" : "둘리",
+ "createdAt" : "2023-08-08 15:26:14",
+ "updatedAt" : "2023-08-08 15:26:14"
+}
+| Path | +Type | +Description | +
|---|---|---|
|
+
|
+게시물 ID |
+
|
+
|
+게시물 제목 |
+
|
+
|
+게시물 내용 |
+
|
+
|
+작성자 이름 |
+
|
+
|
+게시물 작성 시간 |
+
|
+
|
+게시물 수정 시간 |
+
GET /posts?page=0&size=5 HTTP/1.1
+Host: localhost:8080
+HTTP/1.1 200 OK
+Content-Type: application/json
+Content-Length: 724
+
+{
+ "postResponses" : {
+ "content" : [ {
+ "id" : 1,
+ "title" : "subject1",
+ "content" : "content1",
+ "name" : "둘리",
+ "createdAt" : "2023-08-08 15:26:14",
+ "updatedAt" : "2023-08-08 15:26:14"
+ }, {
+ "id" : 2,
+ "title" : "subject2",
+ "content" : "content2",
+ "name" : "둘리",
+ "createdAt" : "2023-08-08 15:26:14",
+ "updatedAt" : "2023-08-08 15:26:14"
+ } ],
+ "pageable" : "INSTANCE",
+ "totalPages" : 1,
+ "totalElements" : 2,
+ "last" : true,
+ "size" : 2,
+ "number" : 0,
+ "sort" : {
+ "empty" : true,
+ "sorted" : false,
+ "unsorted" : true
+ },
+ "numberOfElements" : 2,
+ "first" : true,
+ "empty" : false
+ }
+}
+| Path | +Type | +Description | +
|---|---|---|
|
+
|
+게시물 응답 |
+
|
+
|
+게시물 정보 배열 |
+
|
+
|
+게시물 ID |
+
|
+
|
+게시물 제목 |
+
|
+
|
+게시물 내용 |
+
|
+
|
+게시물 작성자 이름 |
+
|
+
|
+게시물 생성일 |
+
|
+
|
+게시물 갱신일 |
+
|
+
|
+totalElements |
+
|
+
|
+totalPages |
+
GET /posts/1 HTTP/1.1
+Content-Type: application/json;charset=UTF-8
+Host: localhost:8080
+HTTP/1.1 200 OK
+Content-Type: application/json
+Content-Length: 163
+
+{
+ "id" : 2,
+ "title" : "subject2",
+ "content" : "content2",
+ "name" : "둘리",
+ "createdAt" : "2023-08-08 15:26:14",
+ "updatedAt" : "2023-08-08 15:26:14"
+}
+| Path | +Type | +Description | +
|---|---|---|
|
+
|
+게시글 아이디 |
+
|
+
|
+게시글 제목 |
+
|
+
|
+게시글 본문 |
+
|
+
|
+게시글 작성자 이름 |
+
|
+
|
+게시글 작성일 |
+
|
+
|
+게시글 갱신일 |
+
GET /posts/user/1?page=0&size=5 HTTP/1.1
+Content-Type: application/json;charset=UTF-8
+Host: localhost:8080
+HTTP/1.1 200 OK
+Content-Type: application/json
+Content-Length: 724
+
+{
+ "postResponses" : {
+ "content" : [ {
+ "id" : 1,
+ "title" : "subject1",
+ "content" : "content1",
+ "name" : "둘리",
+ "createdAt" : "2023-08-08 15:26:14",
+ "updatedAt" : "2023-08-08 15:26:14"
+ }, {
+ "id" : 2,
+ "title" : "subject2",
+ "content" : "content2",
+ "name" : "둘리",
+ "createdAt" : "2023-08-08 15:26:14",
+ "updatedAt" : "2023-08-08 15:26:14"
+ } ],
+ "pageable" : "INSTANCE",
+ "totalPages" : 1,
+ "totalElements" : 2,
+ "last" : true,
+ "size" : 2,
+ "number" : 0,
+ "sort" : {
+ "empty" : true,
+ "sorted" : false,
+ "unsorted" : true
+ },
+ "numberOfElements" : 2,
+ "first" : true,
+ "empty" : false
+ }
+}
+| Path | +Type | +Description | +
|---|---|---|
|
+
|
+게시글 응답 |
+
|
+
|
+게시글 정보 배열 |
+
|
+
|
+게시글 아이디 |
+
|
+
|
+게시글 이름 |
+
|
+
|
+게시글 나이 |
+
|
+
|
+게시글 작성자 이름 |
+
|
+
|
+게시글 생성일 |
+
|
+
|
+게시글 갱신일 |
+
|
+
|
+totalElements |
+
|
+
|
+totalPages |
+
POST /users HTTP/1.1
+Content-Type: application/json;charset=UTF-8
+Accept: application/json
+Content-Length: 40
+Host: localhost:8080
+
+{"name":"Kim","age":23,"hobby":"축구"}
+| Path | +Type | +Description | +
|---|---|---|
|
+
|
+회원 이름 |
+
|
+
|
+나이 |
+
|
+
|
+취미 |
+
HTTP/1.1 201 Created
+Content-Type: application/json
+Content-Length: 115
+
+{"id":1,"name":"Kim","age":23,"hobby":"축구","createdAt":"2023-08-08 15:26:15","updatedAt":"2023-08-08 15:26:15"}
+| Path | +Type | +Description | +
|---|---|---|
|
+
|
+회원 ID |
+
|
+
|
+회원 이름 |
+
|
+
|
+나이 |
+
|
+
|
+취미 |
+
|
+
|
+회원 가입 시간 |
+
|
+
|
+회원 수정 시간 |
+
DELETE /users/1 HTTP/1.1
+Host: localhost:8080
+HTTP/1.1 204 No Content
+GET /users/1 HTTP/1.1
+Content-Type: application/json;charset=UTF-8
+Accept: application/json
+Host: localhost:8080
+HTTP/1.1 200 OK
+Content-Type: application/json
+Content-Length: 147
+
+{
+ "id" : 1,
+ "name" : "Park",
+ "age" : 26,
+ "hobby" : "여행",
+ "createdAt" : "2023-08-08 15:26:15",
+ "updatedAt" : "2023-08-08 15:26:15"
+}
+| Path | +Type | +Description | +
|---|---|---|
|
+
|
+유저 아이디 |
+
|
+
|
+유저 이름 |
+
|
+
|
+유저 나이 |
+
|
+
|
+유저 취미 |
+
|
+
|
+유저 생성일 |
+
|
+
|
+유저 갱신일 |
+
GET /users?page=0&size=5 HTTP/1.1
+Host: localhost:8080
+HTTP/1.1 200 OK
+Content-Type: application/json
+Content-Length: 692
+
+{
+ "userResponses" : {
+ "content" : [ {
+ "id" : 1,
+ "name" : "Park",
+ "age" : 26,
+ "hobby" : "여행",
+ "createdAt" : "2023-08-08 15:26:15",
+ "updatedAt" : "2023-08-08 15:26:15"
+ }, {
+ "id" : 2,
+ "name" : "Park",
+ "age" : 26,
+ "hobby" : "여행",
+ "createdAt" : "2023-08-08 15:26:15",
+ "updatedAt" : "2023-08-08 15:26:15"
+ } ],
+ "pageable" : "INSTANCE",
+ "totalPages" : 1,
+ "totalElements" : 2,
+ "last" : true,
+ "size" : 2,
+ "number" : 0,
+ "sort" : {
+ "empty" : true,
+ "sorted" : false,
+ "unsorted" : true
+ },
+ "numberOfElements" : 2,
+ "first" : true,
+ "empty" : false
+ }
+}
+| Path | +Type | +Description | +
|---|---|---|
|
+
|
+유저 응답 |
+
|
+
|
+유저 정보 배열 |
+
|
+
|
+유저 아이디 |
+
|
+
|
+유저 이름 |
+
|
+
|
+유저 나이 |
+
|
+
|
+유저 취미 |
+
|
+
|
+유저 생성일 |
+
|
+
|
+유저 갱신일 |
+
|
+
|
+totalElements |
+
|
+
|
+totalPages |
+
POST /posts/1 HTTP/1.1
+Content-Type: application/json;charset=UTF-8
+Content-Length: 52
+Host: localhost:8080
+
+{
+ "title" : "subject2",
+ "content" : "content2"
+}
+| Path | +Type | +Description | +
|---|---|---|
|
+
|
+게시물 제목 |
+
|
+
|
+게시물 내용 |
+
HTTP/1.1 201 Created
+Content-Type: application/json
+Content-Length: 163
+
+{
+ "id" : 2,
+ "title" : "subject2",
+ "content" : "content2",
+ "name" : "둘리",
+ "createdAt" : "2023-08-08 15:26:14",
+ "updatedAt" : "2023-08-08 15:26:14"
+}
+| Path | +Type | +Description | +
|---|---|---|
|
+
|
+게시물 ID |
+
|
+
|
+게시물 제목 |
+
|
+
|
+게시물 내용 |
+
|
+
|
+작성자 이름 |
+
|
+
|
+게시물 작성 시간 |
+
|
+
|
+게시물 수정 시간 |
+
GET /posts?page=0&size=5 HTTP/1.1
+Host: localhost:8080
+HTTP/1.1 200 OK
+Content-Type: application/json
+Content-Length: 724
+
+{
+ "postResponses" : {
+ "content" : [ {
+ "id" : 1,
+ "title" : "subject1",
+ "content" : "content1",
+ "name" : "둘리",
+ "createdAt" : "2023-08-08 15:26:14",
+ "updatedAt" : "2023-08-08 15:26:14"
+ }, {
+ "id" : 2,
+ "title" : "subject2",
+ "content" : "content2",
+ "name" : "둘리",
+ "createdAt" : "2023-08-08 15:26:14",
+ "updatedAt" : "2023-08-08 15:26:14"
+ } ],
+ "pageable" : "INSTANCE",
+ "totalPages" : 1,
+ "totalElements" : 2,
+ "last" : true,
+ "size" : 2,
+ "number" : 0,
+ "sort" : {
+ "empty" : true,
+ "sorted" : false,
+ "unsorted" : true
+ },
+ "numberOfElements" : 2,
+ "first" : true,
+ "empty" : false
+ }
+}
+| Path | +Type | +Description | +
|---|---|---|
|
+
|
+게시물 응답 |
+
|
+
|
+게시물 정보 배열 |
+
|
+
|
+게시물 ID |
+
|
+
|
+게시물 제목 |
+
|
+
|
+게시물 내용 |
+
|
+
|
+게시물 작성자 이름 |
+
|
+
|
+게시물 생성일 |
+
|
+
|
+게시물 갱신일 |
+
|
+
|
+totalElements |
+
|
+
|
+totalPages |
+
GET /posts/1 HTTP/1.1
+Content-Type: application/json;charset=UTF-8
+Host: localhost:8080
+HTTP/1.1 200 OK
+Content-Type: application/json
+Content-Length: 163
+
+{
+ "id" : 2,
+ "title" : "subject2",
+ "content" : "content2",
+ "name" : "둘리",
+ "createdAt" : "2023-08-08 15:26:14",
+ "updatedAt" : "2023-08-08 15:26:14"
+}
+| Path | +Type | +Description | +
|---|---|---|
|
+
|
+게시글 아이디 |
+
|
+
|
+게시글 제목 |
+
|
+
|
+게시글 본문 |
+
|
+
|
+게시글 작성자 이름 |
+
|
+
|
+게시글 작성일 |
+
|
+
|
+게시글 갱신일 |
+
GET /posts/user/1?page=0&size=5 HTTP/1.1
+Content-Type: application/json;charset=UTF-8
+Host: localhost:8080
+HTTP/1.1 200 OK
+Content-Type: application/json
+Content-Length: 724
+
+{
+ "postResponses" : {
+ "content" : [ {
+ "id" : 1,
+ "title" : "subject1",
+ "content" : "content1",
+ "name" : "둘리",
+ "createdAt" : "2023-08-08 15:26:14",
+ "updatedAt" : "2023-08-08 15:26:14"
+ }, {
+ "id" : 2,
+ "title" : "subject2",
+ "content" : "content2",
+ "name" : "둘리",
+ "createdAt" : "2023-08-08 15:26:14",
+ "updatedAt" : "2023-08-08 15:26:14"
+ } ],
+ "pageable" : "INSTANCE",
+ "totalPages" : 1,
+ "totalElements" : 2,
+ "last" : true,
+ "size" : 2,
+ "number" : 0,
+ "sort" : {
+ "empty" : true,
+ "sorted" : false,
+ "unsorted" : true
+ },
+ "numberOfElements" : 2,
+ "first" : true,
+ "empty" : false
+ }
+}
+| Path | +Type | +Description | +
|---|---|---|
|
+
|
+게시글 응답 |
+
|
+
|
+게시글 정보 배열 |
+
|
+
|
+게시글 아이디 |
+
|
+
|
+게시글 이름 |
+
|
+
|
+게시글 나이 |
+
|
+
|
+게시글 작성자 이름 |
+
|
+
|
+게시글 생성일 |
+
|
+
|
+게시글 갱신일 |
+
|
+
|
+totalElements |
+
|
+
|
+totalPages |
+
POST /users HTTP/1.1
+Content-Type: application/json;charset=UTF-8
+Accept: application/json
+Content-Length: 40
+Host: localhost:8080
+
+{"name":"Kim","age":23,"hobby":"축구"}
+| Path | +Type | +Description | +
|---|---|---|
|
+
|
+회원 이름 |
+
|
+
|
+나이 |
+
|
+
|
+취미 |
+
HTTP/1.1 201 Created
+Content-Type: application/json
+Content-Length: 115
+
+{"id":1,"name":"Kim","age":23,"hobby":"축구","createdAt":"2023-08-08 15:26:15","updatedAt":"2023-08-08 15:26:15"}
+| Path | +Type | +Description | +
|---|---|---|
|
+
|
+회원 ID |
+
|
+
|
+회원 이름 |
+
|
+
|
+나이 |
+
|
+
|
+취미 |
+
|
+
|
+회원 가입 시간 |
+
|
+
|
+회원 수정 시간 |
+
DELETE /users/1 HTTP/1.1
+Host: localhost:8080
+HTTP/1.1 204 No Content
+GET /users/1 HTTP/1.1
+Content-Type: application/json;charset=UTF-8
+Accept: application/json
+Host: localhost:8080
+HTTP/1.1 200 OK
+Content-Type: application/json
+Content-Length: 147
+
+{
+ "id" : 1,
+ "name" : "Park",
+ "age" : 26,
+ "hobby" : "여행",
+ "createdAt" : "2023-08-08 15:26:15",
+ "updatedAt" : "2023-08-08 15:26:15"
+}
+| Path | +Type | +Description | +
|---|---|---|
|
+
|
+유저 아이디 |
+
|
+
|
+유저 이름 |
+
|
+
|
+유저 나이 |
+
|
+
|
+유저 취미 |
+
|
+
|
+유저 생성일 |
+
|
+
|
+유저 갱신일 |
+
GET /users?page=0&size=5 HTTP/1.1
+Host: localhost:8080
+HTTP/1.1 200 OK
+Content-Type: application/json
+Content-Length: 692
+
+{
+ "userResponses" : {
+ "content" : [ {
+ "id" : 1,
+ "name" : "Park",
+ "age" : 26,
+ "hobby" : "여행",
+ "createdAt" : "2023-08-08 15:26:15",
+ "updatedAt" : "2023-08-08 15:26:15"
+ }, {
+ "id" : 2,
+ "name" : "Park",
+ "age" : 26,
+ "hobby" : "여행",
+ "createdAt" : "2023-08-08 15:26:15",
+ "updatedAt" : "2023-08-08 15:26:15"
+ } ],
+ "pageable" : "INSTANCE",
+ "totalPages" : 1,
+ "totalElements" : 2,
+ "last" : true,
+ "size" : 2,
+ "number" : 0,
+ "sort" : {
+ "empty" : true,
+ "sorted" : false,
+ "unsorted" : true
+ },
+ "numberOfElements" : 2,
+ "first" : true,
+ "empty" : false
+ }
+}
+| Path | +Type | +Description | +
|---|---|---|
|
+
|
+유저 응답 |
+
|
+
|
+유저 정보 배열 |
+
|
+
|
+유저 아이디 |
+
|
+
|
+유저 이름 |
+
|
+
|
+유저 나이 |
+
|
+
|
+유저 취미 |
+
|
+
|
+유저 생성일 |
+
|
+
|
+유저 갱신일 |
+
|
+
|
+totalElements |
+
|
+
|
+totalPages |
+