mardi 3 mars 2020

How to ensure a Spring application implements an OpenAPI-defined API?

I have a Spring application which HTTP API is defined by an OpenAPI descriptor, provided by an other team. I want to ensure my application implements all endpoints defined in this descriptor. I'm thinking about running the application in an integration test to get the OpenAPI descriptor from the springfox extension, and then to compare it to the reference using as an example swagger-diff.

Do you think it's a correct approach ? Is there any way to make it simpler ?

Aucun commentaire:

Enregistrer un commentaire