Validate Your PHP API Tests Against OpenAPI Definitions – A Laravel Example

Written by osteel | Published 2020/11/20
Tech Story Tags: openapi | php | api | testing | laravel | validation | symfony | hackernoon-top-story | web-monetization

TLDR The OpenAPI specification is a specification intended to describe RESTful APIs in YAML and JSON. It's used as the base layer for a growing number of tools that make the specification useful far beyond the mere documenting side of things. In this article, we will see how to combine OpenAPI 3.0.x definitions with integration tests to validate whether an API behaves the way it's supposed to, using the OpenAPI HttpFoundation Testing package. We will do so in a fresh Laravel installation, for which we'll also generate a Swagger UI documentation.via the TL;DR App

no story

Written by osteel | Senior backend developer
Published by HackerNoon on 2020/11/20