Package Data | |
---|---|
Maintainer Username: | alsofronie |
Maintainer Contact: | alsofronie@gmail.com (Alex Sofronie) |
Package Create Date: | 2017-08-05 |
Package Last Update: | 2017-08-09 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-23 03:05:04 |
Package Statistics | |
---|---|
Total Downloads: | 23 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
A scaffolding for Lumen Based API, featuring:
/api/v1
)/app
directory (wish)Although many will argue a centralized API Error codes approach, I found it
easier to manage in small / medium projects. So, everything the API
throws as an exception is dealt by the ApiException
class, which has
all the internal API codes (maybe an HTML documentation for each code will
be nice) as static implementation.
The validation errors will be returned in the details
component of the
error, with the name of the validation rule. (to be completed).