Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

๐Ÿš€ Restdocs๋ฅผ ํ™œ์šฉํ•œ #OOTW API ๋ช…์„ธ์„œ ์ž‘์„ฑ #75

Merged
merged 32 commits into from
Jan 18, 2024

Conversation

ASak1104
Copy link
Collaborator

@ASak1104 ASak1104 commented Jan 17, 2024

โœ… ์š”๊ตฌ์‚ฌํ•ญ

๐Ÿš€ ์ฃผ์š” ๋ณ€๊ฒฝ์‚ฌํ•ญ

  • Restdocs ์„ค์ •
  • UserController ๋ช…์„ธ
  • CertificateController ๋ช…์„ธ
  • AvatarItemController ๋ช…์„ธ
  • PostController ๋ช…์„ธ
  • LikeController ๋ช…์„ธ
  • WeatherController ๋ช…์„ธ
  • Bearer Token ์— ๋Œ€ํ•œ Required ์—ฌ๋ถ€ ์ •์˜
  • ๋ช…์„ธ์„œ ํ™•์ธ์„ ์œ„ํ•œ ์ž„์‹œ ๋งํฌ

๐Ÿ’ก ๊ธฐํƒ€์‚ฌํ•ญ

  • Controller ํ…Œ์ŠคํŠธ ์ฝ”๋“œ๊ฐ€ ์ „์ฒด์ ์ธ ๊ฐœ์„  ํ•„์š”
    • AvatarImage, Weather, Post, Like ๋„๋ฉ”์ธ์— ํ•ด๋‹นํ•˜๋Š” Controller์—์„œ Response body์— ๋Œ€ํ•œ ํ…Œ์ŠคํŠธ ์ฝ”๋“œ ์ถ”๊ฐ€๊ฐ€ ํ•„์š”
    • AvatarImageController์—์„œ mocking์ด ์—†์ด ๋ฐ”๋กœ status๋ฅผ ํ™•์ธํ•˜๋Š” ํ…Œ์ŠคํŠธ๊ฐ€ ์กด์žฌ, ์ถ”ํ›„ ์ˆ˜์ • ํ•„์š”
    • LikeController์—์„œ response๋ฅผ ํ™•์ธํ•˜๋Š” ํ…Œ์ŠคํŠธ๊ฐ€ ํ•„์š”
    • Post์™€ ๊ฐ™์€ ๋„๋ฉ”์ธ์€ ์ƒ์„ฑ์ž๊ฐ€ ๋ง‰ํ˜€์žˆ๊ณ  DTO๋ฅผ ํ†ตํ•œ ์ƒ์„ฑ๋งŒ ๊ฐ€๋Šฅํ•˜๊ธฐ ๋•Œ๋ฌธ์— ํ…Œ์ŠคํŠธ ์šฉ์ด์„ฑ์— ์–ด๋ ค์›€์ด ์žˆ์Œ, ์ถ”ํ›„ ๋…ผ์˜ ํ•„์š”

+ faker book title์ด 30์ž๋ฅผ ์ดˆ๊ณผํ•ด์„œ ์‹คํŒจํ•˜๋Š” ์˜ค๋ฅ˜ ์ˆ˜์ •
@ASak1104 ASak1104 added the enhancement New feature or request label Jan 17, 2024
Copy link

๐Ÿ“‘ Jacoco ํ…Œ์ŠคํŠธ ๊ฒฐ๊ณผ

Overall Project 98.48% ๐Ÿ
File Coverage
LikeController.java 100% ๐Ÿ

@ASak1104 ASak1104 linked an issue Jan 17, 2024 that may be closed by this pull request
7 tasks
Copy link
Member

@Sehee-Lee-01 Sehee-Lee-01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

๋„๋ฉ”์ธ ํด๋ž˜์Šค(Post)๋ฅผ ์ •์˜ํ•  ๋•Œ ๋ถˆํ•„์š”ํ•œ ๋ฉ”์„œ๋“œ ๋…ธ์ถœ์„ ์ค„์ด๋ ค๊ณ  ์ƒ์„ฑ์ž๋ฅผ ์ œํ•œ ์‹œ์ผฐ๋Š”๋ฐ ์˜คํžˆ๋ ค ์กฐ๊ธˆ ๋ถˆํŽธํ•œ ์ƒํ™ฉ์ด ์ƒ๊ธฐ๋Š” ๊ฒƒ ๊ฐ™๊ธฐ๋„ ํ•˜๋„ค์š”,,,ใ… ใ… 
์ž‘์„ฑํ•˜์‹œ๋Š๋ผ ๋„ˆ๋ฌด ๋„ˆ๋ฌด ๊ณ ์ƒ ๋งŽ์œผ์…จ์Šต๋‹ˆ๋‹ค!

src/docs/asciidoc/index.adoc Outdated Show resolved Hide resolved
Copy link

๐Ÿ“‘ Jacoco ํ…Œ์ŠคํŠธ ๊ฒฐ๊ณผ

Overall Project 98.48% ๐Ÿ
File Coverage
LikeController.java 100% ๐Ÿ

Copy link
Collaborator

@shoeone96 shoeone96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RestDocs ์ž‘์—… ๊ณ ์ƒํ•˜์…จ์–ด์š”!

Copy link

๐Ÿ“‘ Jacoco ํ…Œ์ŠคํŠธ ๊ฒฐ๊ณผ

Overall Project 98.48% ๐Ÿ
File Coverage
LikeController.java 100% ๐Ÿ

@ASak1104 ASak1104 merged commit 09ffbcc into feature Jan 18, 2024
1 check passed
@ASak1104 ASak1104 deleted the feature-restdocs branch January 18, 2024 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

โœ… #OOTW Server API Restdocs ๋ช…์„ธ์„œ ์ถ”๊ฐ€
3 participants