-
Notifications
You must be signed in to change notification settings - Fork 1
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
#426 [Bug] Swagger api 테스트가 작동하지 않음 #427
Conversation
Main branch update from Dev branch
Main branch update from Dev branch
Main branch update from Dev branch
Main branch update from Dev branch
Main branch update from Dev branch
Main branch update from Dev branch
Main branch update from Dev branch
Main branch update from Dev branch
…426-bug-swagger-api-test
const serverList = [ | ||
{ | ||
url: `http://localhost:${port}`, | ||
description: "local api server", | ||
development: true, | ||
production: false, | ||
}, | ||
{ | ||
url: "https://taxi.sparcs.org/api", | ||
description: "taxi main api server", | ||
development: true, | ||
production: true, | ||
}, | ||
{ | ||
url: "https://taxi.dev.sparcs.org/api", | ||
description: "taxi dev api server", | ||
development: true, | ||
production: false, | ||
}, | ||
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
loadEnv.js
에서 servers 필드의 값을 직접 계산하는 방법도 괜찮다고 생각해요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@withSang 저 serverList를 아예 loadEnv.js
에서 정의하자는 말씀이시죠? 다른 코드에서 servers 값을 재사용 할 일이 있으면 그게 나을 것 같은데 어떤 경우일까요??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오 좋아 보입니다! 해결해주셔서 감사해요 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM
Summary
It closes #426
swagger에서
servers
option을 사용하여 request를 보내고 싶은 base url을 설정 가능합니다.http://localhost:port
,main 서버
,dev 서버
에 대해 모두 테스트 가능하고,main 서버
에 대해서만 테스트 가능하도록 변경하였습니다.