jungbin-kim / jungbin-kim.github.com

2 stars 1 forks source link

TDD by using play 2.5 for scala #11

Open jungbin-kim opened 6 years ago

jungbin-kim commented 6 years ago

TDD를 위해서 test code 부터 작성

1. Make API Spec

일단, api 명세부터 작성. 이 api가 보낼 데이터들을 생각해서 test code 작성.

2. 추상화된 API 작성

@TODO 또는 ??? 이용하여, route에서 controller의 action을 연결

jungbin-kim commented 6 years ago

API spec 작성중 multipart 관련 이슈 발생

Cannot write an instance of play.api.mvc.MultipartFormData[play.api.libs.Files.TemporaryFile] to HTTP response. Try to define a Writeable[play.api.mvc.MultipartFormData[play.api.libs.Files.TemporaryFile]]

솔루션: