Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 451 Bytes

openapi-laravel-boilerplate-generator.md

File metadata and controls

8 lines (7 loc) · 451 Bytes

OpenAPI Laravel Boilerplate Generator

This idea is to take an OpenAPI Spec file (JSON or YAML), parse it, and generate some of the boilerplate code to setup a Laravel API.

The primary components to generate would be:

  • Tests for each endpoint (flag to toggle Pest/PHPUnit)
  • Resource classes
    • use the x-props field to create the constructor
    • use the model properties to create a toArray function