|
|
|
|
|
by vesinisa
1115 days ago
|
|
> "contract first” dev Just wanted say that this is very cool and I find it hard to understand why this is not already the norm in 2023. I've done something quite similar in a proprietary project (I called it "spec-driven development" in reference to "test-driven development"). I would first start by writing the OpenAPI spec and response model JSON schema. I could then write the frontend code, for example, as the API it called on the server was now defined. Only as the last step I would actually integrate the API to real data - this was especially nice as the customer in this particular project was taking their time to deliver the integration points. All the time during development the API conformity was being verified automatically. It saved me from writing a bunch of boilerplate tests at least. |
|
It’s often much more practical to integrate early and then iterate on the implementation and the spec at the same time until reaching a stable point.