2017-11-29 03:20:09 +01:00
|
|
|
SilverStripe\Security\Member:
|
|
|
|
editor:
|
|
|
|
FirstName: Editor
|
|
|
|
Email: editor@test.com
|
|
|
|
Password: editor
|
|
|
|
user:
|
|
|
|
FirstName: User
|
|
|
|
Email: user@test.com
|
|
|
|
Password: user
|
|
|
|
SilverStripe\Security\Group:
|
|
|
|
editorgroup:
|
|
|
|
Title: Editors
|
|
|
|
Code: editors
|
|
|
|
Members: =>SilverStripe\Security\Member.editor
|
|
|
|
usergroup:
|
|
|
|
Title: Users
|
|
|
|
Code: users
|
|
|
|
Members: =>SilverStripe\Security\Member.user
|
|
|
|
SilverStripe\Security\Permission:
|
|
|
|
perm1:
|
|
|
|
Code: CREATE_Comment
|
|
|
|
Group: =>SilverStripe\Security\Group.usergroup
|
|
|
|
perm3:
|
|
|
|
Code: EDIT_Comment
|
|
|
|
Group: =>SilverStripe\Security\Group.editorgroup
|
|
|
|
perm4:
|
|
|
|
Code: DELETE_Comment
|
|
|
|
Group: =>SilverStripe\Security\Group.editorgroup
|
|
|
|
perm5:
|
|
|
|
Code: CREATE_Comment
|
|
|
|
Group: =>SilverStripe\Security\Group.editorgroup
|
|
|
|
perm6:
|
|
|
|
Code: VIEW_SecretThing
|
|
|
|
Group: =>SilverStripe\Security\Group.editorgroup
|
|
|
|
SilverStripe\RestfulServer\Tests\Stubs\RestfulServerTestPage:
|
|
|
|
page1:
|
|
|
|
Title: Testpage without API Access
|
|
|
|
SilverStripe\RestfulServer\Tests\Stubs\RestfulServerTestComment:
|
|
|
|
comment1:
|
|
|
|
Name: Joe
|
|
|
|
Comment: This is a test comment
|
|
|
|
Page: =>SilverStripe\RestfulServer\Tests\Stubs\RestfulServerTestPage.page1
|
|
|
|
SilverStripe\RestfulServer\Tests\Stubs\RestfulServerTestAuthor:
|
|
|
|
author1:
|
|
|
|
FirstName: Author 1
|
|
|
|
author2:
|
|
|
|
FirstName: Author 2
|
|
|
|
author3:
|
2019-05-20 01:04:52 +02:00
|
|
|
FirstName: Author 3
|
2017-11-29 03:20:09 +01:00
|
|
|
author4:
|
|
|
|
FirstName: Author 4
|
2019-05-20 01:04:52 +02:00
|
|
|
RelatedAuthors:
|
2017-12-05 22:49:45 +01:00
|
|
|
- =>SilverStripe\RestfulServer\Tests\Stubs\RestfulServerTestAuthor.author2
|
|
|
|
- =>SilverStripe\RestfulServer\Tests\Stubs\RestfulServerTestAuthor.author3
|
2017-11-29 03:20:09 +01:00
|
|
|
SilverStripe\RestfulServer\Tests\Stubs\RestfulServerTestAuthorRating:
|
|
|
|
rating1:
|
|
|
|
Rating: 3
|
|
|
|
WriteProtectedField: Dont overwrite me
|
|
|
|
SecretField: Dont look at me!
|
|
|
|
Author: =>SilverStripe\RestfulServer\Tests\Stubs\RestfulServerTestAuthor.author1
|
|
|
|
SecretRelation: =>SilverStripe\RestfulServer\Tests\Stubs\RestfulServerTestAuthor.author1
|
|
|
|
rating2:
|
|
|
|
Rating: 5
|
|
|
|
Author: =>SilverStripe\RestfulServer\Tests\Stubs\RestfulServerTestAuthor.author1
|
|
|
|
SecretRelation: =>SilverStripe\RestfulServer\Tests\Stubs\RestfulServerTestAuthor.author1
|
|
|
|
SilverStripe\RestfulServer\Tests\Stubs\RestfulServerTestSecretThing:
|
|
|
|
thing1:
|
|
|
|
Name: Unspeakable
|