From 1376bb4d413240b38ea2c253cdb1dbd822905faf Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Fri, 10 Mar 2023 12:21:30 +1300 Subject: [PATCH 1/5] MNT Update development dependencies --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index f3ed4de..6534cfa 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ ], "require": { "php": "^7.4 || ^8.0", - "silverstripe/framework": "^4.10" + "silverstripe/framework": "4.13.x-dev" }, "require-dev": { "phpunit/phpunit": "^9.5", From 45883df8c049712a75e03488f144ffc87c4ff29a Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Fri, 10 Mar 2023 16:35:06 +1300 Subject: [PATCH 2/5] MNT Update release dependencies --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 6534cfa..4b4d432 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ ], "require": { "php": "^7.4 || ^8.0", - "silverstripe/framework": "4.13.x-dev" + "silverstripe/framework": "4.13.0-beta1" }, "require-dev": { "phpunit/phpunit": "^9.5", From 729494737dbaf3832c8547e66de4c19952dc5f60 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Fri, 10 Mar 2023 16:35:09 +1300 Subject: [PATCH 3/5] MNT Update development dependencies --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 4b4d432..6534cfa 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ ], "require": { "php": "^7.4 || ^8.0", - "silverstripe/framework": "4.13.0-beta1" + "silverstripe/framework": "4.13.x-dev" }, "require-dev": { "phpunit/phpunit": "^9.5", From e5c349b1b15c1900f8c7160860a179d750d121b5 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Tue, 28 Mar 2023 17:11:38 +1300 Subject: [PATCH 4/5] MNT Revert erroneous dependency changes (#107) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 6534cfa..f3ed4de 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ ], "require": { "php": "^7.4 || ^8.0", - "silverstripe/framework": "4.13.x-dev" + "silverstripe/framework": "^4.10" }, "require-dev": { "phpunit/phpunit": "^9.5", From 39614ba6e189c7c9155a337c836dfe065e9d4589 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Wed, 19 Apr 2023 16:25:38 +1200 Subject: [PATCH 5/5] DOC Update README.md for CMS 5 --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4769327..3cbb5ea 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,12 @@ [![CI](https://github.com/silverstripe/silverstripe-restfulserver/actions/workflows/ci.yml/badge.svg)](https://github.com/silverstripe/silverstripe-restfulserver/actions/workflows/ci.yml) [![Silverstripe supported module](https://img.shields.io/badge/silverstripe-supported-0071C4.svg)](https://www.silverstripe.org/software/addons/silverstripe-commercially-supported-module-list/) +## Installation + +```sh +composer require silverstripe/restfulserver +``` + ## Overview This class gives your application a RESTful API. All you have to do is set the `api_access` configuration option to `true` @@ -10,12 +16,6 @@ on the appropriate DataObjects. You will need to ensure that all of your data m your model layer (ie, the DataObject classes) and not in your Controllers. This is the recommended design for SilverStripe applications. -## Requirements - -* Silverstripe 4.0 or higher - -For a Silverstripe 3.x compatible version of this module, please see the [1.0 branch, or 1.x release line](https://github.com/silverstripe/silverstripe-restfulserver/tree/1.0#readme). - ## Configuration Example DataObject with simple API access, giving full access to all object properties and relations,