Home

Awesome

Swagger Bake Demo Application

Demo Site | Project Home

Submit problems or requests for additional examples as github issues.

Installation

Clone repository:

git clone git@github.com:cnizzardini/cakephp-swagger-bake-demo.git

Install via composer:

composer install

Configure the application for database access using config/.env or config/app_local.php, then run migrations to build/seed your database. The default in config/app.php will work with sqlite3.

bin/cake migrations migrate -p Sakila
bin/cake migrations seed -p Sakila

Configure your web server or run the cake web server:

bin/cake server

That's it, you're done!

Examples

Here is a list of some examples. It's best to search src/ for an exhaustive list of examples.

FeatureExample
SwaggerBake EventsApp\Event\SwaggerBakeListener
OpenApiDtoApp\Controller\ExamplesControllers
OpenApiFormApp\Controller\ExamplesController::formExample
OpenApiHeaderApp\Controller\ExamplesController::headerExample
OpenApiOperationApp\Controller\ActorsController::index
OpenApiPaginatorMost controller index() actions have this defined
OpenApiPath
OpenApiPathParam
OpenApiQueryParamApp\Controller\ExamplesController::headerExample
OpenApiRequestBody
OpenApiResponseApp\Controller\CountriesController
OpenApiResponse associationsApp\Controller\ActorsController::films
OpenApiResponse schemaApp\Controller\ExamplesControllers
OpenApiSchemaApp\Model\Entity\Rental
OpenApiSchemaProperty
OpenApiSearchFilmsController::index
OpenApiSecurity