paint-brush
Validate Your PHP API Tests Against OpenAPI Definitions – A Laravel Exampleby@osteel
3,732 reads
3,732 reads

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

by Yannick Chenot8mNovember 20th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

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
Yannick Chenot

Yannick Chenot

@osteel

Senior backend developer

About @osteel
LEARN MORE ABOUT @OSTEEL'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Yannick Chenot HackerNoon profile picture
Yannick Chenot@osteel
Senior backend developer

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite