https://github.com/sensorario/wheelevent
mvc micro framework
https://github.com/sensorario/wheelevent
micro-framework mvc mvc-framework rest-framework
Last synced: about 2 months ago
JSON representation
mvc micro framework
- Host: GitHub
- URL: https://github.com/sensorario/wheelevent
- Owner: sensorario
- License: mit
- Created: 2018-06-20T08:28:15.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-14T00:21:36.000Z (almost 8 years ago)
- Last Synced: 2025-01-19T19:46:31.095Z (over 1 year ago)
- Topics: micro-framework, mvc, mvc-framework, rest-framework
- Language: PHP
- Size: 41 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WheelEvent
## Invalid Request
### Request
```
> GET /invalid HTTP/1.1
```
### Response
```
< HTTP/1.1 400 Bad Request
< {"success":"false","definition":"Not Found"}
```
## Valid Request
### Request
```
> GET / HTTP/1.1
```
### Response
```
< HTTP/1.1 200 OK
< {
< "class":"Controller\\RestController",
< "method":"Controller\\RestController::get"
< }
```
## Forbidden request
### Request
```
> GET /protected HTTP/1.1
```
### Response
```
> {
> "success":"false",
> "definition":"Forbidden"
> }
```
## Get Protected route:
> curl http://localhost:8001/protected -H 'Authorization: Wheel Value'