Validate Your PHP API Tests Against OpenAPI Definitions – A Laravel Exampleby@osteel
2,997 reads

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

November 20th 2020
8 min
by @osteel 2,997 reads
tldt arrow
Read on Terminal Reader

Too Long; Didn't Read

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.

Company Mentioned

Mention Thumbnail
featured image - Validate Your PHP API Tests Against OpenAPI Definitions – A Laravel Example
Yannick Chenot HackerNoon profile picture

@osteel

Yannick Chenot

About @osteel
LEARN MORE ABOUT @OSTEEL'S EXPERTISE AND PLACE ON THE INTERNET.
react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa