Spring REST Docs ๋ ํผ๋ฐ์ค ๋ค์ ๋๋ค. ๋งค์ฐ๋งค์ฐ! ์ ์ฉํ ๊ฒ ๊ฐ์ต๋๋ค! ๐ Spring REST DocsThe aim of Spring REST Docs is to help you produce accurate and readable documentation for your RESTful services. Writing high-quality documentation is difficult. One way to ease that difficulty is to use tools that are well-suited to the job. To this end, Spring REST Docs uses Asciidoctor by default.https://docs.spring.io/spring-restdocs/docs/current/reference/html5/spring-restdocs/ApiDocumentation.java at v2.0.6.RELEASE ยท spring-projects/spring-restdocsThis 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 You can't perform that action at this time. You signed in with another tab or window.https://github.com/spring-projects/spring-restdocs/blob/v2.0.6.RELEASE/samples/rest-notes-spring-data-rest/src/test/java/com/example/notes/ApiDocumentation.javaSpring Rest Docs ์ ์ฉ | ์ฐ์ํํ์ ๋ค ๊ธฐ์ ๋ธ๋ก๊ทธ์๋ ํ์ธ์? ์ฐ์ํํ์ ๋ค์์ ์ ์ฐ์์คํ ์ ๊ฐ๋ฐํ๊ณ ์๋ ์ดํธ์ง์ ๋๋ค. ์ง๊ธ๋ถํฐ ์ ์ฐ์์คํ API ๋ฌธ์๋ฅผ wiki ์์ Spring Rest Docs ๋ก ์ ํํ ์ด์ผ๊ธฐ๋ฅผ ํด๋ณด๋ ค๊ณ ํฉ๋๋ค. ํ์ฌ ์ ์ฐ์์คํ ์ API ๋ฌธ์๋ฅผ wiki ๋ก ๊ณต์ ํ๊ณ ์์์ต๋๋ค. ๋ฉฐ์น ์ API ์ ํ๋๋ฅผ ์ถ๊ฐํ๊ณ API ๋ฌธ์๋ฅผ ํ์ธํด๋ณด๋ ๋ณ๊ฒฝ๋ ์ฝ๋์ ๋ฌ๋์ต๋๋ค. ์์ด์ผ ํ ํ๋๊ฐ ์์๊ณ ์์ด์ผ ํ ํ๋๊ฐ ์์์ผ๋ฉฐ ๊ฐ์ ๊ฐ์ ์ฃผ๋ ํ๋๊ฐ ๊ฐ๊ธฐ ๋ค๋ฅธ์ด๋ฆ์ ํ๋๋ก ์ ๊ณต๋์์ต๋๋ค.https://techblog.woowahan.com/2597/Spring REST Docs์ ๋ ๊ฐ๋ฅผ... (feat: Popup) | ์ฐ์ํํ์ ๋ค ๊ธฐ์ ๋ธ๋ก๊ทธ์๋ ํ์ธ์? ์ฐ์ํํ์ ๋ค์์ ์ ์ฐ์์คํ ์ ๊ฐ๋ฐํ๊ณ ์๋ ์ดํธ์ง์ ๋๋ค. 2018๋ 12์ Spring REST Docs๋ฅผ ์ฃผ์ ๋ก ์ฌ๋ด ๋ธ๋ก๊ทธ๋ฅผ ์์ฑ ํ... 1๋ ์ด์์ด ์ง๋ฌ์ต๋๋ค. Spring REST Docs๋ฅผ ์ ์ฉ ํ ๋น ๋ฅด๊ฒ ํ ์์คํ ์ API ์คํ์ ์ ๊ณตํ ์ ์๋ค๋ ์ฅ์ ์ ๋๋ ธ๋ ๋ฐ๋ฉด API ๊ฐ ๋์ด๋ ์๋ก ๋จ์ ์ด ๋ถ๊ฐ ๋์๊ณ ์ด ๋จ์ ์ ํด์ํ๊ธฐ ์ํด ๋ฐฉ๋ฒ( ๊ผผ์)์ ์ฐ๊ตฌ ํ์ต๋๋ค.https://techblog.woowahan.com/2678/Spring REST Docs ์ ์ฉ ๋ฐ ์ต์ ํ ํ๊ธฐํด๋น ํฌ์คํ ์ ์ฝ๋๋ Github ๋ฅผ ์ฐธ๊ณ ํด์ฃผ์ธ์. ํ ์คํธ ์ฝ๋ ๊ธฐ๋ฐ์ผ๋ก Restful API ๋ฌธ์๋ฅผ ๋๋ ๋๊ตฌ์ ๋๋ค. Asciidoctor๋ฅผ ์ด์ฉํด์ HTML ๋ฑ๋ฑ ๋ค์ํ ํฌ๋งท์ผ๋ก ๋ฌธ์๋ฅผ ์๋์ผ๋ก ์ถ๋ ฅํ ์ ์์ต๋๋ค. RestDocs์ ๊ฐ์ฅ ํฐ ์ฅ์ ์ ํ ์คํธ ์ฝ๋ ๊ธฐ๋ฐ์ผ๋ก ๋ฌธ์๋ฅผ ์์ฑํ๋ค๋ ์ ์ ๋๋ค. API Spec๊ณผ ๋ฌธ์ํ๋ฅผ ์ํ ํ ์คํธ ์ฝ๋๊ฐ ์ผ์นํ์ง ์์ผ๋ฉด ํ ์คํธ ๋น๋๋ฅผ ์คํจํ๊ฒ ๋์ด ํ ์คํธ ์ฝ๋๋ก ๊ฒ์ฆ๋ ๋ฌธ์๋ฅผ ๋ณด์ฅํ ์ ์์ต๋๋ค.https://backtony.github.io/spring/2021-10-15-spring-test-3/