-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update config.yml * Ss4 (#1) * Update SS Framework dependency * WIP: SS4 upgrade legwork * WIP Namespace yml and Config references * Update phpunit.xml & add composer autoload * Update phpunit.xml * Namespacing & formatting updates * Update: Rename namespace to colymba * Namespacing fixes * Fix; correct yml array config * Update config.yml * FEATURE: Upgrade to SS4 * FIX: consistent formatting of composer file * Fix incomplete namespace references * Allow maping of URL segment to class name This allows us to use fully qualified namespaced classes in the API config. * Update PHPUnit config Fix path to framework bootstrap. Exclude tests that perform CORS pre-flight request. * Fix configuration defaults * Fix test class namespaces * Ensure test records are generated * Fix header check * Add model mapping for query handler * Fix deprecation notice * Fix test fixture setup * Fix more issues with authenticator tests * Fix permission manager tests * Downgrade framework version * Fix query handler tests * Update capitalisation of namespace * Fix basic serializer tests * Fix ember serializer tests * Update travis config * Update class names to remove RESTfulAPI prefix * Update documantation * Document the `models` mapping * Test fallback to stardard model name mapping * Rename Basic serializers to Default * Remove ember data serializers * Fix password validation error on Travis
- Loading branch information
Showing
59 changed files
with
3,588 additions
and
3,981 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
language: php | ||
php: | ||
- 5.6 | ||
- 7.1 | ||
env: | ||
matrix: | ||
- DB=MYSQL CORE_RELEASE=3 | ||
- DB=MYSQL CORE_RELEASE=4 | ||
global: | ||
secure: Le917O5p+3nccje9JNHyvFuQk44wkoXmfDYTV5tyfqH1yvTOS9aD2zUkSORbGBcxwFKbXxJxlhSH/TBub/ZjXoAlURw10oS8uzG5T4LVPkyKUNcph54Mbgs4E05K6IzOg78VlRZ6IOjBsXh/8NI51uEstgJZ/dajjPdERgjrd+k= | ||
before_script: | ||
- phpenv rehash | ||
- git clone git://github.com/silverstripe-labs/silverstripe-travis-support.git ~/travis-support | ||
- git clone git://github.com/silverstripe/silverstripe-travis-support.git ~/travis-support | ||
- php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss | ||
- cd ~/builds/ss | ||
script: | ||
- cd ~/builds/ss/silverstripe-restfulapi | ||
- phpunit | ||
- vendor/bin/phpunit vendor/colymba/silverstripe-restfulapi/tests/ --exclude-group CORSPreflight |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
--- | ||
Name: restfulapi | ||
After: 'framework/*','cms/*' | ||
After: | ||
- rootroutes | ||
--- | ||
# --------------------------------- | ||
# Routing | ||
Director: | ||
SilverStripe\Control\Director: | ||
rules: | ||
'api': 'RESTfulAPI' | ||
'api': 'Colymba\RESTfulAPI\RESTfulAPI' | ||
# --------------------------------- | ||
# Permissions / Uncomment or create your own | ||
#Group: | ||
#SilverStripe\Security\Group: | ||
# extensions: | ||
# - RESTfulAPI_GroupExtension | ||
# - Colymba\RESTfulAPI\Extensions\GroupExtension |
Oops, something went wrong.