Which approach to choose in API management: "Code first" vs "Spec first"?

132 Views Asked by At

I need to decide, which approach to use in our project. I personally stick to the "Spec first" approach (or "Design first" approach). It means, that we first design an API specification, then approve it all together, then code the backend.

But I know, that half of developers prefer the "Code first" approach, when you first code the backend, and then generate API docs automatically.

I have tried both of the approaches, and I prefer the first one. But maybe I miss something important? Or maybe I do not know how to cook the second approach properly?

0

There are 0 best solutions below