Lonnie Ezell
b2b002dfae
Updating tests to work with new system. Partially complete.
2018-05-15 22:30:09 -05:00
Master Yoda
b733001e59
Annual copyright update
2018-01-09 01:01:00 -08:00
Natan Felles
30a8419f03
Avoid json encode-decode if format is application/json
2018-01-01 14:40:20 -02:00
Lonnie Ezell
d296dfd1a3
Merge pull request #821 from natanfelles/api_responses
...
Api responses
2017-11-08 22:17:35 -06:00
Natan Felles
5edd096a0a
Add error key to fail messages - avoid xml error (index 0 - Ex: <0>message</0>)
2017-11-07 03:37:23 -02:00
Natan Felles
4b428eb43e
Add default descriptions to ResponseTrait fails
2017-11-07 03:31:31 -02:00
Natan Felles
04a1fc4540
Recursively convert objects into associative arrays
2017-08-04 10:56:16 -03:00
Natan Felles
dd1c378adc
Fix API ResponseTrait. It was failing if format data type was Object
2017-08-04 08:26:15 -03:00
Natan Felles
2369a62a4d
Add some PHPDoc params in ResponseTrait
2017-07-24 23:03:42 -03:00
Natan Felles
09eb48de80
Update API ResponseTrait doc types - request
2017-07-22 21:19:59 -03:00
Natan Felles
bcec3cc178
Update API ResponseTrait doc types
2017-07-22 21:14:21 -03:00
Master Yoda
fcce549142
Update (2) copyright comments per phpDocumentor
2017-07-13 14:20:27 -07:00
Master Yoda
bda7c8a252
Update copyright comments per phpDocumentor
2017-07-13 10:22:49 -07:00
Master Yoda
e9b00dd716
Make HTTP codes line up pretty.
2017-07-05 21:43:28 -07:00
Master Yoda
12f00f83cc
Completed ResponseTrait & related testing
2017-07-05 14:42:45 -07:00
Lonnie Ezell
78962ab8b0
Move Formatting functionality from API namespace to its own home now. Fixes #451
2017-04-02 21:57:04 -05:00
Kristian Matthews
a8b70287b1
Updated Respond Created & Deleted
...
Don’t require `$data` for `respondCreated()` and `respondDeleted()` methods.
Signed-off-by: Kristian Matthews <kristian.matthews@me.com>
2017-03-10 23:31:20 +00:00
Kristian Matthews
dd59339c36
Updated Documenation
...
Signed-off-by: Kristian Matthews <kristian.matthews@me.com>
2017-03-06 09:57:45 +00:00
Kristian Matthews
88423a5fea
Create Response Trait Fail Server Error Method
...
Created a `failServerError(string $description, string $code = null, string $message = ''): Response` method in the response trait to fail server errors.
Signed-off-by: Kristian Matthews <kristian.matthews@me.com>
2017-03-03 22:26:20 +00:00
kenjis
d2c1e128ad
Fix indentation
...
Replace white spaces with tabs
2017-02-04 16:36:08 +09:00
Master Yoda
ef24a9a519
Add missing copyright header blocks
2017-01-20 00:57:53 -08:00
Lonnie Ezell
94b4d0d568
Removing todo item
2016-11-30 23:10:52 -06:00
Lonnie Ezell
b6169f3479
A bit more docs, and starting on ResponseTrait tests.
2016-11-29 00:33:22 -06:00
Lonnie Ezell
c19c62140f
Adding custom failure codes to responses, and fleshing out class methods in the docs.
2016-11-27 22:56:31 -06:00
Lonnie Ezell
f2c6cb2e82
Method in place now to automatically format the response type based on content negotiation with the request. Started docs.
2016-11-24 00:02:36 -06:00
Lonnie Ezell
96b85c980c
Initial ResponseTrait for #86
2016-11-22 00:26:30 -06:00