Instalação
Basta rodar os comandos abaixo:
- docker-compose build
- docker-compose up -d
Acessar o terminal do container via: docker exec -it bash
Rodar o comando: composer install
A API estará disponível através da URL http://127.0.0.1:4000
Utilização
Para realizar consultas, basta realizar chamadas utilizando uma URL nos seguintes padrões:
Referências
- https://github.com/pacoogle/laravel-lumen-docker
- https://reqbin.com/req/php/c-1n4ljxb9/curl-get-request#:~:text=Curl%20GET,Request%20
- https://lumen.laravel.com/docs/8.x/
- https://medium.com/@currypat1985/one-to-many-rest-api-with-lumen-98464b8c6f42
- https://github.com/BrasilAPI/BrasilAPI
Lumen PHP Framework
Laravel Lumen is a stunningly fast PHP micro-framework for building web applications with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Lumen attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as routing, database abstraction, queueing, and caching.
Official Documentation
Documentation for the framework can be found on the Lumen website.
Contributing
Thank you for considering contributing to Lumen! The contribution guide can be found in the Laravel documentation.
Security Vulnerabilities
If you discover a security vulnerability within Lumen, please send an e-mail to Taylor Otwell at taylor@laravel.com. All security vulnerabilities will be promptly addressed.
License
The Lumen framework is open-sourced software licensed under the MIT license.