Skip to content

Example Reference โ€‹

This page is generated automatically from the swagger-php sources.

For improvements head over to GitHub and create a PR ๐Ÿ˜‰

Api โ€‹

A simple API example uing enums, traits and callbacks.

Colour.php โ€‹

NameTrait.php โ€‹

OpenApiSpec.php โ€‹

Product.php โ€‹

ProductController.php โ€‹

Server.php โ€‹

Petstore โ€‹

Classic petstore sample app. Uses OAuth

Controllers/PetController.php โ€‹

Controllers/StoreController.php โ€‹

Controllers/UserController.php โ€‹

Models/ApiResponse.php โ€‹

Models/Category.php โ€‹

Models/Order.php โ€‹

Models/Pet.php โ€‹

Models/PetRequestBody.php โ€‹

Models/Tag.php โ€‹

Models/User.php โ€‹

Models/UserArrayRequestBody.php โ€‹

Petstore.php โ€‹

Security.php โ€‹

Polymorphism โ€‹

Demonstrates the use of Discriminator

AbstractResponsible.php โ€‹

Controller.php โ€‹

Employee.php โ€‹

Fl.php โ€‹

Request.php โ€‹