Rest4 / Rest4-php

PHP Rest Full of Rest Framework
http://rest4.org
GNU General Public License v3.0
3 stars 2 forks source link

Internal data types #3

Closed nfroidure closed 11 years ago

nfroidure commented 11 years ago

Currently the system makes no difference between application/internal and text varstream.

What we should do is :

This way, we should be able to refuse to serve application/internal data by sending a 400 response instead of converting it as plain/text.

nfroidure commented 11 years ago

.dat and .lang are now known as text/varstream. Still need to create a .int data type

nfroidure commented 11 years ago

Finally, it's a bad idea to create a special internal data type. Will instead use a driver (RestVarsDriver) and a response (RestVarsResponse) allowing to get vars directly if neeeded.

Commit : https://github.com/nfroidure/Rest4/commit/93e82d9f57a0ef7d6a21017656f072bab49debdc