-
Notifications
You must be signed in to change notification settings - Fork 0
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
取得・削除API #126
取得・削除API #126
Conversation
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.
あんまりなかったです。さすがっす!! 🙌
Deleteを204にしてるのナイスです。
レスポンスのDTOあった方が良い気がしたんですけど、一覧取得の時でもOKです
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.
綺麗な実装ありがとうございますd( ̄  ̄)
コメント置いときましたです!(テストはまだ見れておりません!🙏)
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.
MockDBの設定ありがとうございます、勉強になります🙇♂️
取得と削除も特に突っ込むところも見当たらず、、
あとは
テストをおくフォルダも統一したいかなと感じました🦍
(また話し合って決めたいですね)
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.
何卒よろしくお願い申し上げます。
ID指定して一件取得
削除
参考
MockDBを使ってテスト https://github.com/DATA-DOG/go-sqlmock
URLをバインドする https://gin-gonic.com/ja/docs/examples/bind-uri/