https://github.com/sr2ds/laravel-api-restfull-generator
Laravel API RestFull Generator with Tests and OpenApi Documentation
https://github.com/sr2ds/laravel-api-restfull-generator
laravel openapi php restfull swagger
Last synced: 4 months ago
JSON representation
Laravel API RestFull Generator with Tests and OpenApi Documentation
- Host: GitHub
- URL: https://github.com/sr2ds/laravel-api-restfull-generator
- Owner: sr2ds
- Created: 2022-04-19T14:39:59.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-10-24T20:24:30.000Z (over 3 years ago)
- Last Synced: 2025-04-22T14:39:44.905Z (about 1 year ago)
- Topics: laravel, openapi, php, restfull, swagger
- Language: PHP
- Homepage: https://youtu.be/moESYTm9rF4
- Size: 36.1 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Laravel API RestFull Generator
This project is a simple tool for help you with your CRUDs.
What have in here?
1. Some stubs to a razoable API RestFull with Tests and OpenAPI documentation.
2. PHP script to write attributes in all files generated
Is required that your application has L5-Swagger setuped to correct run.
# How to usage
## 1. Download this files to your laravel application
```
mkdir stubs
cd stubs
git clone https://github.com/sr2ds/Laravel-API-RestFull-Generator .
```
## 2. Setup your schema attributes like file `stubs/misc/file.txt`
## 3. Run Script to generate files and write attributes
```
php stubs/misc/set-attributes.php stubs/misc/file.txt Example
```
## TODO
* Fix dateTime Factory to `$this->faker->dateTime()->format('Y-m-d H:i:s')` and validate to `date`
* Refactor way to replace -> Today the replaces there are make by RULES, I to want change this to be by Files.
* Improve getAttributesListFromFile to accept more attributes
* Improve datatypes system fully
* Refactor
## Extra Help
If necessary, you can check this repository with all configuration, fully works and video demonstrations:
https://github.com/sr2ds/laravel-9-tutorial