freeelephants / rest-daemon Goto Github PK
View Code? Open in Web Editor NEWMicro framework for building REST applications on http-socket server
Micro framework for building REST applications on http-socket server
Inject PSR-3 compatible logger.
I'm using DefaultBeforeMiddlewareCollection to add CORS header. But with an OPTIONS request the middleware don't get called at all.
Ratchet and Aerys seems not to handle OPTIONS requests by themselves. At least I haven't found a solution.
Providing an options handler for every endpoints seems to be a overkill.
Is there a solution for that?
Generate routes from swagger annotation.
Support OPTIONS method on configured routes.
Now build on 7.2 is failed
https://travis-ci.org/FreeElephants/rest-daemon/jobs/291125204
Problem may be in some composer vendors.
Affected version: 0.13.0.
Request example:
curl -g "http://127.0.0.1:9000/api/v0/exchanges?filter[post]=1,2&filter[author]=12"
Actual result:
array(2) {
'filter[post]' =>
array(1) {
[0] =>
string(3) "1,2"
}
'filter[author]' =>
array(1) {
[0] =>
string(2) "12"
}
}
Expected result:
array(1) {
'filter' =>
array(2) {
'post' =>
string(3) "1,2"
'author' =>
string(2) "12"
}
}
Ratchet driver work fine.
$ vendor/bin/rest-deamon
PHP Fatal error: Uncaught Error: Class 'Symfony\Component\Console\Application' not found in /home/samizdam/dev/projects/rest-daemon-uptime/vendor/free-elephants/rest-daemon/bin/rest-deamon:24
Stack trace:
#0 {main}
thrown in /home/samizdam/dev/projects/rest-daemon-uptime/vendor/free-elephants/rest-daemon/bin/rest-deamon on line 24
Version installed via composer: 0.12, null of custom configuration, PHP version: 7.3.
Send Access-Control-Allow-Headers and Access-Control-Allow-Methods with response when Access-Control-Request-Headers and Access-Control-Request-Method are presents.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.