Lumen REST API (Generated) from Open API v3 spec

v0.1 2021-05-31 12:03 UTC

This package is auto-updated.

Last update: 2024-11-14 22:41:29 UTC


README

Total Downloads

The package provides a simple way to create Open API service (REST API).

This package uses cebe/php-openapi for reading from Open API specification.

Features

  • Auto generate routes, Http/Request, Http/Controller, models
  • Auto generate common HTTP responses
  • Add support allOf extends Open API

Getting started

Installation via composer

First of all, create lumen project

$ composer create-project --prefer-dist laravel/lumen my-project

in your project directory run:

$ composer require tukangketik/genoa

add the service provider in bootstrap/app.php

$app->register(Genoa\GeneratorOpenApiServiceProvider::class);

The service provider will register to artisan command.

Running generator

$ php artisan genoa:yml pathOfYmlFile.yml

Add