Commit Graph

121 Commits

Author SHA1 Message Date
Steve Boyd
bc6e0ff8c4 MNT Use GitHub Actions CI 2022-07-05 19:05:25 +12:00
Maxime Rainville
e84a66dad3
Merge pull request #96 from creative-commoners/pulls/2/sapphire-test-nine
API phpunit 9 support
2021-11-01 22:07:47 +13:00
Steve Boyd
4a2716cd7d API phpunit 9 support 2021-10-27 18:12:45 +13:00
Steve Boyd
c11b7cdcda Merge branch '2.3' into 2 2021-05-21 13:58:02 +12:00
Maxime Rainville
88c509b0d1 MNT Remove obsolete branch-alias 2021-05-05 11:17:49 +12:00
Steve Boyd
3da21bb6c2
Update build status badge 2021-01-21 16:40:37 +13:00
Steve Boyd
0cac389a9f Merge branch '2.2' into 2 2021-01-02 20:28:18 +13:00
Maxime Rainville
96654b86b2
Merge pull request #92 from creative-commoners/pulls/2.2/travis-shared
MNT Travis shared config
2020-12-21 15:42:21 +13:00
Steve Boyd
77be6bc44b MNT Travis shared config, use sminnee/phpunit 2020-12-01 16:33:21 +13:00
Maxime Rainville
6e62e846ce Merge branch '2.2' into 2 2020-10-22 13:58:33 +13:00
Robbie Averill
1e4fe6fbbe
Merge pull request #90 from creative-commoners/pulls/2.2/travis
Update travis 2.2
2020-06-23 09:44:08 -07:00
Steve Boyd
1a2527d210 Update travis 2020-06-23 15:43:09 +12:00
Garion Herman
444d1aa14f
Merge pull request #83 from creative-commoners/pulls/master/restore-php-5.6-support
BUG Restoring PHP5.6 support
2019-10-18 18:36:47 +13:00
Maxime Rainville
ac0b263683 BUG Restoring PHP5.6 support 2019-10-18 16:38:21 +13:00
Robbie Averill
b3acde80f6 Merge branch '2.2' 2019-08-15 10:13:35 +12:00
Robbie Averill
2fa54bc101 Remove obsolete branch alias 2019-08-15 10:12:42 +12: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
e0f4e5684f Merge branch '2.1' 2019-06-28 16:25:24 +12:00
Robbie Averill
89c811b295 Merge branch '2.0' into 2.1 2019-06-28 16:24:21 +12:00
Robbie Averill
bb45d27869 Update Travis build matrix 2019-06-28 16:13:59 +12:00
Robbie Averill
71865f60a4 Merge branch '2.1' 2019-06-11 14:09:26 +12:00
Robbie Averill
a9507a7886 Merge branch '2.0' into 2.1 2019-06-11 14:09:15 +12:00
Robbie Averill
5505f93875 Use trusty dist for Travis builds 2019-06-11 14:09:07 +12:00
Robbie Averill
aed6575e89 Merge branch '2.0' into 2.1 2019-06-11 12:05:29 +12:00
Robbie Averill
a3319831a8
Merge pull request #1 from silverstripe-security/pulls/2.0/sort-only-on-fields
[CVE-2019-12149] Fixed potential SQL injection vulnerability in RestfulServer
2019-06-11 12:04:42 +12:00
Robbie Averill
284aceddd0 Use trusty in Travis builds 2019-05-29 11:08:55 +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
Robbie Averill
b44203b800
DOCS Fix formatting endpoint descriptions
[ci skip]
2019-05-16 10:30:11 +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
Guy Marriott
57c0597db3
Merge pull request #72 from creative-commoners/pulls/2.1/remove-json-methods
FIX Replace Convert JSON methods with json_* methods, deprecated from SilverStripe 4.4
2018-10-29 11:29:39 +13: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
080ce4015b Merge branch '2.1' 2018-07-26 15:12:19 +12:00
Dylan Wagstaff
c8ddec1ecb Add supported module badge to readme (#71) 2018-06-18 10:42:37 +12:00
Robbie Averill
1e09707cc0 Remove obsolete branch alias 2018-06-11 15:36:41 +12: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
Robbie Averill
9243546b75
Merge pull request #59 from catalyst/jsondataformater-to-not-use-xml
FIX: fix JSONDataFormatter to not convert values to XML
2018-04-17 13:01:09 +12:00
Andreas Piening
4ec6eb4db0 FIX: fix JSONDataFormatter to not convert values to XML 2018-04-17 11:56:21 +12:00
Robbie Averill
ee37e6c896
Merge pull request #57 from silverstripe-terraformers/feature/many_many_through_support
Many many through syntax support added.
2018-04-09 15:49:41 +12:00
Mojmir Fendek
a60751bd74 Many many through syntax support added. 2018-04-09 12:26:24 +12:00
Robbie Averill
3c1055e2f0
Merge pull request #58 from catalyst/fix-missing-canview-check
FIX: add missing canView check in json
2018-04-09 11:34:20 +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
Robbie Averill
eaef7a5ea4 Merge branch '2.0' 2018-04-04 15:33:03 +12:00