Skip to content

Commit

Permalink
백엔드 병합 작업 (#670)
Browse files Browse the repository at this point in the history
  • Loading branch information
cookienc authored Oct 13, 2023
1 parent 4698889 commit bb2cb10
Show file tree
Hide file tree
Showing 401 changed files with 18,477 additions and 985 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/deploy-be-ci-cd-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,9 @@ jobs:
- name: Pull Latest Docker Image
run: |
sudo docker login --username ${{ secrets.DOCKERHUB_DEPLOY_USERNAME }} --password ${{ secrets.DOCKERHUB_DEPLOY_TOKEN }}
if sudo docker inspect spring-baton &>/dev/null; then
sudo docker stop spring-baton
sudo docker rm -f spring-baton
sudo docker image prune -af
fi
sudo docker pull 2023batondeploy/2023-baton-deploy:latest
- name: Docker Compose
run: |
sudo docker run --name spring-baton -v /home/ubuntu/logs:/app/logs -p 8080:8080 -e TZ=Asia/Seoul 2023batondeploy/2023-baton-deploy:latest 1>> build.log 2>> error.log &
/home/ubuntu/zero-downtime-deploy.sh
sudo docker image prune -af
9 changes: 3 additions & 6 deletions .github/workflows/dev-be-ci-cd-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,13 @@ jobs:
needs: build

steps:

- name: Pull Latest Docker Image
run: |
sudo docker login --username ${{ secrets.DOCKERHUB_DEV_USERNAME }} --password ${{ secrets.DOCKERHUB_DEV_TOKEN }}
if sudo docker inspect spring-baton &>/dev/null; then
sudo docker stop spring-baton
sudo docker rm -f spring-baton
sudo docker image prune -af
fi
sudo docker pull 2023baton/2023baton:latest
- name: Docker Compose
run: |
sudo docker run --name spring-baton --network=baton -p 8080:8080 -e TZ=Asia/Seoul 2023baton/2023baton:latest 1>> build.log 2>> error.log &
/home/ubuntu/zero-downtime-deploy.sh
sudo docker image prune -af
1 change: 1 addition & 0 deletions backend/baton/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,5 @@ gradle-app.setting

src/main/resources/application-deploy.yml
src/main/resources/application-dev.yml
src/main/resources/application-local.yml
src/main/resources/static/docs/**
6 changes: 6 additions & 0 deletions backend/baton/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation 'org.springframework.boot:spring-boot-starter-aop:3.1.1'

// Querydsl 추가
implementation 'com.querydsl:querydsl-jpa:5.0.0:jakarta'
annotationProcessor "com.querydsl:querydsl-apt:${dependencyManagement.importedProperties['querydsl.version']}:jakarta"
annotationProcessor "jakarta.annotation:jakarta.annotation-api"
annotationProcessor "jakarta.persistence:jakarta.persistence-api"

// flyway
implementation 'org.flywaydb:flyway-core'
implementation 'org.flywaydb:flyway-mysql'
Expand Down
16 changes: 4 additions & 12 deletions backend/baton/src/docs/asciidoc/GithubOauthApi.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,16 @@ endif::[]

===== *Http Request*

include::{snippets}/../../build/generated-snippets/github-oauth-api-test/github_login/http-request.adoc[]
include::{snippets}/../../build/generated-snippets/github-oauth-api-test/github_redirect_auth_code/http-request.adoc[]

===== *Http Request Path Paramemters*

include::{snippets}/../../build/generated-snippets/github-oauth-api-test/github_login/path-parameters.adoc[]

===== *Http Request Query Paramemters*

include::{snippets}/../../build/generated-snippets/github-oauth-api-test/github_login/query-parameters.adoc[]
include::{snippets}/../../build/generated-snippets/github-oauth-api-test/github_redirect_auth_code/path-parameters.adoc[]

===== *Http Response*

include::{snippets}/../../build/generated-snippets/github-oauth-api-test/github_login/http-response.adoc[]
include::{snippets}/../../build/generated-snippets/github-oauth-api-test/github_redirect_auth_code/http-response.adoc[]

===== *Http Response Headers*

include::{snippets}/../../build/generated-snippets/github-oauth-api-test/github_login/response-headers.adoc[]

===== *Http Response Cookies*

include::{snippets}/../../build/generated-snippets/github-oauth-api-test/github_login/response-cookies.adoc[]
include::{snippets}/../../build/generated-snippets/github-oauth-api-test/github_redirect_auth_code/response-headers.adoc[]
29 changes: 29 additions & 0 deletions backend/baton/src/docs/asciidoc/NotificationDeleteApi.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
ifndef::snippets[]
:snippets: ../../../build/generated-snippets
endif::[]
:doctype: book
:icons: font
:source-highlighter: highlight.js
:toc: left
:toclevels: 3
:sectlinks:
:operation-http-request-title: Example Request
:operation-http-response-title: Example Response

==== *알림 삭제 API*

===== *Http Request*

include::{snippets}/../../build/generated-snippets/notification-delete-api-test/delete-notification-by-notification-id/http-request.adoc[]

===== *Http Request Headers*

include::{snippets}/../../build/generated-snippets/notification-delete-api-test/delete-notification-by-notification-id/request-headers.adoc[]

===== *Http Request Path Parameters*

include::{snippets}/../../build/generated-snippets/notification-delete-api-test/delete-notification-by-notification-id/path-parameters.adoc[]

===== *Http Response*

include::{snippets}/../../build/generated-snippets/notification-delete-api-test/delete-notification-by-notification-id/http-response.adoc[]
29 changes: 29 additions & 0 deletions backend/baton/src/docs/asciidoc/NotificationLoginReadApi.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
ifndef::snippets[]
:snippets: ../../../build/generated-snippets
endif::[]
:doctype: book
:icons: font
:source-highlighter: highlight.js
:toc: left
:toclevels: 3
:sectlinks:
:operation-http-request-title: Example Request
:operation-http-response-title: Example Response

==== *로그인된 사용자 알림 목록 조회 API*

===== *Http Request*

include::{snippets}/../../build/generated-snippets/notification-read-with-logined-member-api-test/read-notifications-by-member-id/http-request.adoc[]

===== *Http Request Headers*

include::{snippets}/../../build/generated-snippets/notification-read-with-logined-member-api-test/read-notifications-by-member-id/request-headers.adoc[]

===== *Http Response*

include::{snippets}/../../build/generated-snippets/notification-read-with-logined-member-api-test/read-notifications-by-member-id/http-response.adoc[]

===== *Http Response Fields*

include::{snippets}/../../build/generated-snippets/notification-read-with-logined-member-api-test/read-notifications-by-member-id/response-fields.adoc[]
29 changes: 29 additions & 0 deletions backend/baton/src/docs/asciidoc/NotificationUpdateApi.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
ifndef::snippets[]
:snippets: ../../../build/generated-snippets
endif::[]
:doctype: book
:icons: font
:source-highlighter: highlight.js
:toc: left
:toclevels: 3
:sectlinks:
:operation-http-request-title: Example Request
:operation-http-response-title: Example Response

==== *알림 읽음 여부 업데이트 API*

===== *Http Request*

include::{snippets}/../../build/generated-snippets/notification-update-api-test/update-notification-is-read-true-by-member/http-request.adoc[]

===== *Http Request Headers*

include::{snippets}/../../build/generated-snippets/notification-update-api-test/update-notification-is-read-true-by-member/request-headers.adoc[]

===== *Http Request Path Parameters*

include::{snippets}/../../build/generated-snippets/notification-update-api-test/update-notification-is-read-true-by-member/path-parameters.adoc[]

===== *Http Response*

include::{snippets}/../../build/generated-snippets/notification-update-api-test/update-notification-is-read-true-by-member/http-response.adoc[]
25 changes: 25 additions & 0 deletions backend/baton/src/docs/asciidoc/OauthLogoutApi.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
ifndef::snippets[]
:snippets: ../../../build/generated-snippets
endif::[]
:doctype: book
:icons: font
:source-highlighter: highlight.js
:toc: left
:toclevels: 3
:sectlinks:
:operation-http-request-title: Example Request
:operation-http-response-title: Example Response

==== *로그아웃 API*

===== *Http Request*

include::{snippets}/../../build/generated-snippets/oauth-logout-api-test/logout/http-request.adoc[]

===== *Http Request Headers*

include::{snippets}/../../build/generated-snippets/oauth-logout-api-test/logout/request-headers.adoc[]

===== *Http Response*

include::{snippets}/../../build/generated-snippets/oauth-logout-api-test/logout/http-response.adoc[]
92 changes: 68 additions & 24 deletions backend/baton/src/docs/asciidoc/RunnerPostReadApi.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -32,45 +32,49 @@ include::{snippets}/../../build/generated-snippets/runner-post-read-one-api-test

include::{snippets}/../../build/generated-snippets/runner-post-read-one-api-test/read-by-runner-post-id/response-fields.adoc[]

==== *러너 게시글 전체 조회 API*
==== *러너 마이페이지 게시글 조회 API*

===== *Http Request*

include::{snippets}/../../build/generated-snippets/runner-post-read-all-api-test/read-runner-posts-by-review-status/http-request.adoc[]
include::{snippets}/../../build/generated-snippets/runner-post-read-with-logined-runner-api-test/read-runner-post-by-logined-runner-and-review-status/http-request.adoc[]

===== *Http Request Headers*

include::{snippets}/../../build/generated-snippets/runner-post-read-with-logined-runner-api-test/read-runner-post-by-logined-runner-and-review-status/request-headers.adoc[]

===== *Http Request Query Parameters*

include::{snippets}/../../build/generated-snippets/runner-post-read-all-api-test/read-runner-posts-by-review-status/query-parameters.adoc[]
include::{snippets}/../../build/generated-snippets/runner-post-read-with-logined-runner-api-test/read-runner-post-by-logined-runner-and-review-status/query-parameters.adoc[]

===== *Http Response*

include::{snippets}/../../build/generated-snippets/runner-post-read-all-api-test/read-runner-posts-by-review-status/http-response.adoc[]
include::{snippets}/../../build/generated-snippets/runner-post-read-with-logined-runner-api-test/read-runner-post-by-logined-runner-and-review-status/http-response.adoc[]

===== *Http Response Fields*

include::{snippets}/../../build/generated-snippets/runner-post-read-all-api-test/read-runner-posts-by-review-status/response-fields.adoc[]
include::{snippets}/../../build/generated-snippets/runner-post-read-with-logined-runner-api-test/read-runner-post-by-logined-runner-and-review-status/response-fields.adoc[]

==== *러너 마이페이지 게시글 조회 API*
==== *러너 마이페이지 게시글 개수 조회 API*

===== *Http Request*

include::{snippets}/../../build/generated-snippets/runner-post-read-all-api-test/read-runner-my-page/http-request.adoc[]
include::{snippets}/../../build/generated-snippets/runner-post-count-with-logined-runner-api-test/count-runner-post-by-logined-runner-and-review-status/http-request.adoc[]

===== *Http Request Headers*

include::{snippets}/../../build/generated-snippets/runner-post-read-all-api-test/read-runner-my-page/request-headers.adoc[]
include::{snippets}/../../build/generated-snippets/runner-post-count-with-logined-runner-api-test/count-runner-post-by-logined-runner-and-review-status/request-headers.adoc[]

===== *Http Request Query Parameters*

include::{snippets}/../../build/generated-snippets/runner-post-read-all-api-test/read-runner-my-page/query-parameters.adoc[]
include::{snippets}/../../build/generated-snippets/runner-post-count-with-logined-runner-api-test/count-runner-post-by-logined-runner-and-review-status/query-parameters.adoc[]

===== *Http Response*

include::{snippets}/../../build/generated-snippets/runner-post-read-all-api-test/read-runner-my-page/http-response.adoc[]
include::{snippets}/../../build/generated-snippets/runner-post-count-with-logined-runner-api-test/count-runner-post-by-logined-runner-and-review-status/http-response.adoc[]

===== *Http Response Fields*

include::{snippets}/../../build/generated-snippets/runner-post-read-all-api-test/read-runner-my-page/response-fields.adoc[]
include::{snippets}/../../build/generated-snippets/runner-post-count-with-logined-runner-api-test/count-runner-post-by-logined-runner-and-review-status/response-fields.adoc[]

==== *리뷰 지원한 서포터 조회 API*

Expand Down Expand Up @@ -98,37 +102,77 @@ include::{snippets}/../../build/generated-snippets/supporter-runner-post-read-ap

===== *Http Request*

include::{snippets}/../../build/generated-snippets/runner-post-read-with-logined-supporter-api-test/read-runner-posts-by-logined-supporter-and-review-status/http-request.adoc[]
include::{snippets}/../../build/generated-snippets/runner-post-read-with-logined-supporter-api-test/read-runner-post-by-logined-supporter-and-review-status/http-request.adoc[]

===== *Http Request Query Parameters*

include::{snippets}/../../build/generated-snippets/runner-post-read-with-logined-supporter-api-test/read-runner-post-by-logined-supporter-and-review-status/query-parameters.adoc[]

===== *Http Response*

include::{snippets}/../../build/generated-snippets/runner-post-read-with-logined-supporter-api-test/read-runner-post-by-logined-supporter-and-review-status/http-response.adoc[]

===== *Http Response Fields*

include::{snippets}/../../build/generated-snippets/runner-post-read-with-logined-supporter-api-test/read-runner-post-by-logined-supporter-and-review-status/response-fields.adoc[]

==== *서포터 마이페이지 게시글 개수 조회 API*

===== *Http Request*

include::{snippets}/../../build/generated-snippets/runner-post-count-with-logined-supporter-api-test/count-runner-post-by-logined-supporter-and-review-status/http-request.adoc[]

===== *Http Request Headers*

include::{snippets}/../../build/generated-snippets/runner-post-count-with-logined-supporter-api-test/count-runner-post-by-logined-supporter-and-review-status/request-headers.adoc[]

===== *Http Request Query Parameters*

include::{snippets}/../../build/generated-snippets/runner-post-count-with-logined-supporter-api-test/count-runner-post-by-logined-supporter-and-review-status/query-parameters.adoc[]

===== *Http Response*

include::{snippets}/../../build/generated-snippets/runner-post-count-with-logined-supporter-api-test/count-runner-post-by-logined-supporter-and-review-status/http-response.adoc[]

===== *Http Response Fields*

include::{snippets}/../../build/generated-snippets/runner-post-count-with-logined-supporter-api-test/count-runner-post-by-logined-supporter-and-review-status/response-fields.adoc[]

==== *서포터의 리뷰 완료한 게시글 조회 API*

===== *Http Request*

include::{snippets}/../../build/generated-snippets/runner-post-read-of-supporter-by-guest-api-test/read-runner-post-by-supporter-id-and-review-status/http-request.adoc[]

===== *Http Request Query Parameters*

include::{snippets}/../../build/generated-snippets/runner-post-read-with-logined-supporter-api-test/read-runner-posts-by-logined-supporter-and-review-status/query-parameters.adoc[]
include::{snippets}/../../build/generated-snippets/runner-post-read-of-supporter-by-guest-api-test/read-runner-post-by-supporter-id-and-review-status/query-parameters.adoc[]

===== *Http Response*

include::{snippets}/../../build/generated-snippets/runner-post-read-with-logined-supporter-api-test/read-runner-posts-by-logined-supporter-and-review-status/http-response.adoc[]
include::{snippets}/../../build/generated-snippets/runner-post-read-of-supporter-by-guest-api-test/read-runner-post-by-supporter-id-and-review-status/http-response.adoc[]

===== *Http Response Fields*

include::{snippets}/../../build/generated-snippets/runner-post-read-with-logined-supporter-api-test/read-runner-posts-by-logined-supporter-and-review-status/response-fields.adoc[]
include::{snippets}/../../build/generated-snippets/runner-post-read-of-supporter-by-guest-api-test/read-runner-post-by-supporter-id-and-review-status/response-fields.adoc[]

==== *서포터 리뷰 완료한 게시글 조회 API*
==== *서포터의 리뷰 완료한 게시글 개수 조회 API*

===== *Http Request*

include::{snippets}/../../build/generated-snippets/runner-post-read-of-supporter-by-guest-api-test/read-referenced-by-supporter/http-request.adoc[]
include::{snippets}/../../build/generated-snippets/runner-post-count-of-supporter-by-guest-api-test/count-runner-post-by-supporter-id-and-review-status/http-request.adoc[]

===== *Http Request Query Parameters*

include::{snippets}/../../build/generated-snippets/runner-post-read-of-supporter-by-guest-api-test/read-referenced-by-supporter/query-parameters.adoc[]
include::{snippets}/../../build/generated-snippets/runner-post-count-of-supporter-by-guest-api-test/count-runner-post-by-supporter-id-and-review-status/query-parameters.adoc[]

===== *Http Response*

include::{snippets}/../../build/generated-snippets/runner-post-read-of-supporter-by-guest-api-test/read-referenced-by-supporter/http-response.adoc[]
include::{snippets}/../../build/generated-snippets/runner-post-count-of-supporter-by-guest-api-test/count-runner-post-by-supporter-id-and-review-status/http-response.adoc[]

===== *Http Response Fields*

include::{snippets}/../../build/generated-snippets/runner-post-read-of-supporter-by-guest-api-test/read-referenced-by-supporter/response-fields.adoc[]
include::{snippets}/../../build/generated-snippets/runner-post-count-of-supporter-by-guest-api-test/count-runner-post-by-supporter-id-and-review-status/response-fields.adoc[]

==== *태그 이름과 리뷰 상태를 조건으로 러너 게시글 페이징 조회 API*

Expand All @@ -152,16 +196,16 @@ include::{snippets}/../../build/generated-snippets/runner-post-read-search-api-t

===== *Http Request*

include::{snippets}/../../build/generated-snippets/tag-read-api-test/read-tags/http-request.adoc[]
include::{snippets}/../../build/generated-snippets/tag-read-api-test/read-tags-by-reduced-name/http-request.adoc[]

===== *Http Request Query Parameters*

include::{snippets}/../../build/generated-snippets/tag-read-api-test/read-tags/query-parameters.adoc[]
include::{snippets}/../../build/generated-snippets/tag-read-api-test/read-tags-by-reduced-name/query-parameters.adoc[]

===== *Http Response*

include::{snippets}/../../build/generated-snippets/tag-read-api-test/read-tags/http-response.adoc[]
include::{snippets}/../../build/generated-snippets/tag-read-api-test/read-tags-by-reduced-name/http-response.adoc[]

===== *Http Response Fields*

include::{snippets}/../../build/generated-snippets/tag-read-api-test/read-tags/response-fields.adoc[]
include::{snippets}/../../build/generated-snippets/tag-read-api-test/read-tags-by-reduced-name/response-fields.adoc[]
6 changes: 3 additions & 3 deletions backend/baton/src/docs/asciidoc/RunnerReadApi.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ endif::[]

===== *Http Request*

include::{snippets}/../../build/generated-snippets/runner-read-by-runner-id-api-test/read-runner-profile/http-request.adoc[]
include::{snippets}/../../build/generated-snippets/runner-read-by-guest-api-test/read-runner-profile/http-request.adoc[]

===== *Http Response*

include::{snippets}/../../build/generated-snippets/runner-read-by-runner-id-api-test/read-runner-profile/http-response.adoc[]
include::{snippets}/../../build/generated-snippets/runner-read-by-guest-api-test/read-runner-profile/http-response.adoc[]

===== *Http Response Fields*

include::{snippets}/../../build/generated-snippets/runner-read-by-runner-id-api-test/read-runner-profile/response-fields.adoc[]
include::{snippets}/../../build/generated-snippets/runner-read-by-guest-api-test/read-runner-profile/response-fields.adoc[]

Loading

0 comments on commit bb2cb10

Please sign in to comment.