GNU/Linux
•
xterm-256color
•
bash
4507 views
Setting up an API from an OpenAPI 3 description file in 3 Minutes.
Following the instructions at https://github.com/cebe/yii2-app-api#setup
The OpenAPI 3 description file is the Petstore example from https://raw.githubusercontent.com/OAI/OpenAPI-Specification/3.0.2/examples/v3.0/petstore.yaml
- Automatically implements CRUD operations
- adds placeholders for specific endpoints
The last example throws a 404, while it should be 405, that still needs to be fixed :)