I’m looking to test and validate that my API specs match how the API code has been implemented. I’ve played with the abao project some, but I don’t think it fully does everything I want. So I’m curious what others are doing. Ideally, the tool I’m looking for needs to validate the following
- Does the endpoint exist
- Correct responses are returned
- Responses match the specified schema format
- Request parameters match what’s required
- and more.
In my testing with Abao, I haven’t seen it validate the response content structure matching that of the RAML. And I wasn’t sure if it verified the request part as well or not - haven’t delved that far yet. Are the hook files required to do that? From my viewpoint, it looks like the hook files are more or less just to setup data to test against, which I’m just looking for schema and code validation - the data piece isn’t as important (yet).
I very much like the concept of the project and it’s direction. (I had been researching a similar option for Swagger or other API documentation formats but hadn’t really seen anything that would compare the API spec to the actual code/server.)