-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
BE/#196 Spring REST Docs 세팅
- Loading branch information
Showing
14 changed files
with
197 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,5 @@ logs/ | |
logs/ | ||
|
||
backend/src/main/resources/application-local.yml | ||
|
||
backend/src/main/resources/static/docs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
ifndef::snippets[] | ||
:snippets: ./build/generated-snippets | ||
endif::[] | ||
:doctype: book | ||
:icons: font | ||
:source-highlighter: highlightjs | ||
:toc: left | ||
:toclevels: 4 | ||
|
||
= Auth API | ||
|
||
== 회원가입 | ||
=== 성공 | ||
operation::auth/signUp/success[snippets='request-fields,http-request,http-response'] | ||
|
||
=== 실패 : 이메일 형식 오류 | ||
operation::auth/signUp/fail/invalidEmail[snippets='http-request,http-response'] | ||
|
||
=== 실패 : 이메일 공백 오류 | ||
operation::auth/signUp/fail/emptyEmail[snippets='http-request,http-response'] | ||
|
||
=== 실패 : 비밀번호 공백 오류 | ||
operation::auth/signUp/fail/emptyPassword[snippets='http-request,http-response'] | ||
|
||
== 로그인 | ||
=== 성공 | ||
operation::auth/signIn/success[snippets='request-fields,http-request,http-response'] | ||
|
||
=== 실패 : 이메일 형식 오류 | ||
operation::auth/signIn/fail/invalidEmail[snippets='http-request,http-response'] | ||
|
||
=== 실패 : 이메일 공백 오류 | ||
operation::auth/signIn/fail/emptyEmail[snippets='http-request,http-response'] | ||
|
||
=== 실패 : 비밀번호 공백 오류 | ||
operation::auth/signIn/fail/emptyPassword[snippets='http-request,http-response'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
ifndef::snippets[] | ||
:snippets: ./build/generated-snippets | ||
endif::[] | ||
:doctype: book | ||
:icons: font | ||
:source-highlighter: highlightjs | ||
:toc: left | ||
:toclevels: 4 | ||
|
||
= Comment API | ||
|
||
== 댓글 저장 | ||
=== 성공 | ||
operation::comment/add/success[snippets='request-fields,http-request,http-response'] | ||
|
||
=== 실패 : content(내용) 공백 오류 | ||
operation::comment/add/fail/emptyContent[snippets='request-fields,http-request,http-response'] | ||
|
||
=== 실패 : ProjectId(프로젝트 ID) 공백 오류 | ||
operation::comment/add/fail/emptyProjectId[snippets='request-fields,http-request,http-response'] | ||
|
||
== 댓글 삭제 | ||
=== 성공 | ||
operation::comment/remove/success[snippets='path-parameters,http-request,http-response'] | ||
|
||
== 댓글 수정 | ||
=== 성공 | ||
operation::comment/modify/success[snippets='path-parameters,request-fields,http-request,http-response'] | ||
|
||
=== 실패 : content(내용) 공백 오류 | ||
operation::comment/modify/fail/emptyContent[snippets='request-fields,http-request,http-response'] | ||
|
||
|
||
== 답글 조회 | ||
=== 성공 | ||
operation::comment/reComment/findAll/success[snippets='path-parameters,http-request,http-response'] | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,11 @@ | ||
= Graphy API 문서 | ||
:doctype: book | ||
:icons: font | ||
:source-highlighter: highlightjs | ||
:toc: left | ||
:toclevels: 1 | ||
|
||
= Comment | ||
|
||
== 삭제 | ||
=== Request | ||
include::{snippets}/comment-delete/http-request.adoc[] | ||
|
||
=== Response | ||
include::{snippets}/comment-delete/http-response.adoc[] | ||
|
||
|
||
= Graphy API Docs | ||
:nofooter: | ||
|
||
[width="70%"] | ||
|=== | ||
|link:member.html[[.big]#Member API#] | ||
|link:auth.html[[.big]#Auth API#] | ||
|link:problem.html[[.big]#Project API#] | ||
|link:comment.html[[.big]#Comment API#] | ||
|link:follow.html[[.big]#Follow API#] | ||
|=== |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
backend/src/test/java/com/graphy/backend/BackendApplicationTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
package com.graphy.backend; | ||
|
||
import com.graphy.backend.test.config.TestProfile; | ||
import org.springframework.boot.test.context.SpringBootTest; | ||
import org.springframework.test.context.ActiveProfiles; | ||
|
||
@SpringBootTest | ||
@ActiveProfiles(TestProfile.TEST) | ||
class BackendApplicationTests { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.