Adam S
04/30/2022, 8:05 AMPOST /user/create
that GET /user/{id}
works) is possible too.
The benefits of this would be
⢠the OpenAPI spec drives the testing, and would be completely separate from the codebase (no need for spec or code generation, which is always limiting)
⢠there's no limitation or restriction on how to implement the API (for example Hikaku doesn't handle many custom implementations)
⢠because the spec can be tested, it would always be up-to-date.
I've attached a mock code example. I might work on a proof-of-concept...sam
04/30/2022, 10:24 AMAdam S
04/30/2022, 10:27 AMPOST /user/create
returns some ID, that can be used in GET /user/{id}
. So that can be tested!sam
04/30/2022, 10:29 AMAdam S
04/30/2022, 11:30 AMAdam S
05/01/2022, 8:41 AM