Steve Boyd
bdafc33228
API Stop using deprecated API
2022-11-28 19:19:41 +13:00
Steve Boyd
5bff584246
ENH PHP 8.1 compatibility
2022-04-13 13:42:48 +12:00
Maxime Rainville
ac0b263683
BUG Restoring PHP5.6 support
2019-10-18 16:38:21 +13:00
Sander Hagenaars
0b734c21c6
NEW Aliases can now be defined for DataObject endpoints ( #80 )
...
* set endpoint_aliases on RestfulServer to specify fixed aliases for exposed dataobjects
* removed wrong use statements from older project
* better docblock
* use correct obj ClassName in RestfulServer::updateDataObject
* added findClassNameEndpoint method, replaced getEndpointAlias()
* getDataFormatter() - find correct endpoint instead of request param ClassName
* Better docblock
Co-Authored-By: Guy Marriott <guy@scopey.co.nz>
* Better docblock
Co-Authored-By: Guy Marriott <guy@scopey.co.nz>
* Return type hint in findClassNameEndpoint method
Co-Authored-By: Guy Marriott <guy@scopey.co.nz>
* renamed endpoint method to resolveEndpoint
* unsanitiseClassName in resolveEndpoint method
* renamed resolveEndpoint to resolveClassName. Take $request as param instead of string
* better docbloc
* Remove unneccesary unsanitiseClassName call
Co-Authored-By: Guy Marriott <guy@scopey.co.nz>
* changed docblocks to satisfy codesniffer
* Drop PHP 5.6 and 7.0 from travis
Co-authored-by: Guy Marriott <guy@scopey.co.nz>
2019-07-15 10:03:51 +12:00
Robbie Averill
71865f60a4
Merge branch '2.1'
2019-06-11 14:09:26 +12:00
Robbie Averill
aed6575e89
Merge branch '2.0' into 2.1
2019-06-11 12:05:29 +12:00
Robbie Averill
165e1d4794
Merge pull request #75 from phptek/issue/70
...
FIX: Fixes #70 Added extension points for GET requests
2019-05-27 15:29:22 +12:00
Robbie Averill
dbb8e18644
[CVE-2019-12149] Fixed potential SQL injection vulnerability in RestfulServer
2019-05-20 15:46:18 +12:00
User for performing fabric deployments
498402389c
FIX: Fixes #70 Added extension points for GET requests
...
- MINOR: Fixed typos
2019-05-07 14:08:32 +12:00
Robbie Averill
2390698ea9
FIX Replace Convert JSON methods with json_* methods, deprecated from SilverStripe 4.4
2018-10-28 21:39:14 +00:00
Robbie Averill
11ac9d142e
Merge branch '2.0'
2018-06-06 10:34:43 +12:00
Russ Michell
9e923d6f9e
FIX: Fixes #65 Use Injector to instantiate created objects. ( #68 )
2018-06-06 09:39:30 +12:00
Russ Michell
8e4fbd0636
FIX: Fixes #63 Conditionally permit additional GET request in POST context. ( #64 )
2018-05-31 12:11:12 +12:00
Robbie Averill
489f8c576f
Merge branch '2.0'
2018-05-25 15:03:11 +12:00
andreaspiening
cacf25fb9b
Fix infinite redirect after PUT ( #62 )
...
* Fix infinite redirect after PUT by changing requestMethod through responsecode
* Fix unit tests to reflect changes
* Use 202 instead of 303
2018-05-08 12:09:02 +12:00
andreaspiening
73c61e7d4c
Cast SilverStripe types to appropriate JSON types ( #60 )
2018-04-19 15:54:43 +12:00
Andreas Piening
4ec6eb4db0
FIX: fix JSONDataFormatter to not convert values to XML
2018-04-17 11:56:21 +12:00
Mojmir Fendek
a60751bd74
Many many through syntax support added.
2018-04-09 12:26:24 +12:00
Andreas Piening
cbca821c9b
FIX: comply with psr-2
2018-04-09 11:27:20 +12:00
Andreas Piening
d0149f8995
FIX: add missing canView check in json
2018-04-09 11:20:34 +12:00
Robbie Averill
5f7861e0ac
Merge pull request #51 from silverstripe-terraformers/feature/catch-exception-and-extension-points
...
Added general Exception catch/response. Added extension points to response methods
2018-04-04 15:34:05 +12:00
Andreas Piening
9cfe4f343d
Sanitise class name in JSON formatter
2018-04-04 14:54:00 +12:00
Andreas Piening
d45a407185
FIX: make RestfulServer:: configurable
2018-04-04 12:54:18 +12:00
Robbie Averill
4581fbf479
Merge pull request #53 from silverstripe-terraformers/feature/api-field-mapping
...
Add field mapping config
2018-03-23 09:43:17 +13:00
Bernard Hamlin
5c52bf0c53
Alias unit tests
2018-03-09 16:16:15 +13:00
Bernard Hamlin
aada3e350f
Add field mapping config
2018-03-08 16:27:23 +13:00
cpenny
44c5b45748
Added general Exception catch/response. Added extension points to all response methods.
2018-03-07 11:41:27 +13:00
cpenny
029ccd0a38
Catch ValidationExceptions and return ValidationResult messages.
2018-03-02 10:39:47 +13:00
Robbie Averill
defdc72bbd
FIX getFieldsForObj does not return relation classes in hasField() check
2018-02-08 16:56:07 +13:00
Raissa North
334553c779
FIX Replace deprecated Config stat() calls with get()
2017-12-07 15:53:11 +13:00
Raissa North
823d29f94a
ENHANCEMENT DataFormatter setters return for chaining
2017-12-07 10:32:13 +13:00
Dylan Wagstaff
3dda824796
Silence Travis CI complaints about Versioned via require-dev
2017-12-06 11:57:22 +13:00
Dylan Wagstaff
6601b42c4b
Upgrade: begin SilverStripe 4 compatiblity update
2017-12-06 10:43:10 +13:00