RestServer
RestServer copied to clipboard
A PHP REST server for providing a very light-weight REST API.
[IIS_RewriteRule.zip](https://github.com/jacwright/RestServer/files/14122312/IIS_RewriteRule.zip) Hello, here is a rewrite rule for example folder. If anyone would operate this REST solution with IIS, instead of Apache. Kind regards Stefan
This enables the developer to return additional data to user. So in case of an error in REST function, the error can be additionaly explained **in code:** ```php throw new...
Hello, I need support for allowing some custom headers in cors environment in my project. This modifications works for me, could it be merged?
This commit allows for the default response format to be changed. This will let developers set the default format for their API without the need for additional query parameters.
Hi.. I want to ask about how to use required_once in case the file located in different directory.. Example: Project Name -> Test1 Folder that i want required in outside...
This pull request will introduce following new features in RestServer. * For JWT support, bearer header support added. * For role based permissions, authentication process separated into 'authenticate' and 'authorize'...
The current behavior when you do not return a value from your controller method is that an empty 200 response without CORS header is returned to the client. This patch...
Addresses #115
Request JWT Auth Features https://github.com/miguelangel-nubla/JWT-PHP
Hi There, just hit a Problem - would be nice if you could implement it. Multiple "Access-Control-Allow-Origin"-Headers are not allowed: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSMultipleAllowOriginNotAllowed Instead of ``` foreach($allowedOrigin as $allowed_origin) { // to...