前缀为版本号,大括号内为变量名,如某app名为
myapp
,则获取该app信息url为http://example.dev/v1/myapp
用途 | 方法 | url |
---|---|---|
获取列表 | get | / |
指定信息 | get | /{name} |
增添数据 | post | / |
完整更新 | put | /{name} |
部分更新 | patch | /{name} |
删除数据 | delete | /{name} |
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.
Documentation for the framework can be found on the Lumen website.
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell at taylor@laravel.com. All security vulnerabilities will be promptly addressed.
The Lumen framework is open-sourced software licensed under the MIT license