neko32 / service-template

akka-http-based micro service baseline
0 stars 0 forks source link

TANU-000001 Add segment validation for /bin/__BIN_NUMBER__ GET #1

Closed neko32 closed 3 years ago

neko32 commented 3 years ago

Overview

Currently RestRouter::binRoute takes path param (referred with Segment syntax) and there is no validation for input value. We need to have a validation not to let bin ops be executed with invalid input.

TODO

If input validation fails, then should return error response indicating input error with http status 400 (wrong req)

Success Criteria

The above-mentioned logic is in place and the change is validated with proper unit test cases fully.

neko32 commented 3 years ago

fixed