Comments (1)
$data will be set when valid JSON is sent to the server. If your API expects JSON then use $data. If it expects regular form post data, use $_POST.
See https://github.com/jacwright/RestServer/blob/master/RestServer.php#L385 and http://php.net/json_decode
from restserver.
Related Issues (20)
- Explaining the $url == $this->url condition HOT 12
- Warning unlink (/jacwright/restserver/source/Jacwright/RestServer/RestServer.php (274) HOT 2
- Request JWT Auth Features HOT 2
- XML Does not encode if tag has spaces
- CORS: PATCH method is not allowed HOT 4
- Root dir has trailing slash if indexfile is in root
- Requests with '+' are converted to ' ', even when urlencoded as '%2b'
- is there some config to show some error ? HOT 1
- Multiple Access-Control-Allow-Origin Headers HOT 2
- "Syntax-Error" when useCors == false
- Extend the Class with another class HOT 3
- Required Once in outside REST Folder
- bug in handle method
- Example URL rewrite config for using it with IIS
- XML output includes an empty object for null/empty array for any option that ends with an 's'
- Regression: Apis without rootPaths do not work
- RestServer in sub directory doen't work HOT 3
- XML output contains an empty element when a numeric zero is passed.
- XML Output not valid if returned array is not encapsulated HOT 2
- Add documentation engine HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from restserver.