Skip to content

Commit

Permalink
Update examples in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleybl committed Sep 26, 2023
1 parent 8c310a8 commit 78edeb3
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/plone/restapi/tests/http-examples/groups.resp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Content-Type: application/json
[
{
"@id": "http://localhost:55001/plone/@groups/Administrators",
"can_delete": true,
"description": "",
"email": "",
"groupname": "Administrators",
Expand All @@ -21,6 +22,7 @@ Content-Type: application/json
},
{
"@id": "http://localhost:55001/plone/@groups/Reviewers",
"can_delete": true,
"description": "",
"email": "",
"groupname": "Reviewers",
Expand All @@ -38,6 +40,7 @@ Content-Type: application/json
},
{
"@id": "http://localhost:55001/plone/@groups/Site Administrators",
"can_delete": true,
"description": "",
"email": "",
"groupname": "Site Administrators",
Expand All @@ -55,6 +58,7 @@ Content-Type: application/json
},
{
"@id": "http://localhost:55001/plone/@groups/ploneteam",
"can_delete": true,
"description": "We are Plone",
"email": "[email protected]",
"groupname": "ploneteam",
Expand All @@ -73,6 +77,7 @@ Content-Type: application/json
},
{
"@id": "http://localhost:55001/plone/@groups/AuthenticatedUsers",
"can_delete": true,
"description": "Automatic Group Provider",
"email": "",
"groupname": "AuthenticatedUsers",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Content-Type: application/json
[
{
"@id": "http://localhost:55001/plone/@groups/ploneteam",
"can_delete": true,
"description": "We are Plone",
"email": "[email protected]",
"groupname": "ploneteam",
Expand Down
1 change: 1 addition & 0 deletions src/plone/restapi/tests/http-examples/groups_get.resp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Content-Type: application/json

{
"@id": "http://localhost:55001/plone/@groups/ploneteam",
"can_delete": true,
"description": "We are Plone",
"email": "[email protected]",
"groupname": "ploneteam",
Expand Down
14 changes: 14 additions & 0 deletions src/plone/restapi/tests/http-examples/roles.resp
Original file line number Diff line number Diff line change
Expand Up @@ -5,42 +5,56 @@ Content-Type: application/json
{
"@id": "http://localhost:55001/plone/@roles/Contributor",
"@type": "role",
"can_assign": true,
"can_assign_add": true,
"id": "Contributor",
"title": "Contributor"
},
{
"@id": "http://localhost:55001/plone/@roles/Editor",
"@type": "role",
"can_assign": true,
"can_assign_add": true,
"id": "Editor",
"title": "Editor"
},
{
"@id": "http://localhost:55001/plone/@roles/Member",
"@type": "role",
"can_assign": true,
"can_assign_add": true,
"id": "Member",
"title": "Member"
},
{
"@id": "http://localhost:55001/plone/@roles/Reader",
"@type": "role",
"can_assign": true,
"can_assign_add": true,
"id": "Reader",
"title": "Reader"
},
{
"@id": "http://localhost:55001/plone/@roles/Reviewer",
"@type": "role",
"can_assign": true,
"can_assign_add": true,
"id": "Reviewer",
"title": "Reviewer"
},
{
"@id": "http://localhost:55001/plone/@roles/Site Administrator",
"@type": "role",
"can_assign": true,
"can_assign_add": true,
"id": "Site Administrator",
"title": "Site Administrator"
},
{
"@id": "http://localhost:55001/plone/@roles/Manager",
"@type": "role",
"can_assign": true,
"can_assign_add": true,
"id": "Manager",
"title": "Manager"
}
Expand Down
2 changes: 2 additions & 0 deletions src/plone/restapi/tests/http-examples/users.resp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Content-Type: application/json
[
{
"@id": "http://localhost:55001/plone/@users/admin",
"can_delete": true,
"description": "This is an admin user",
"email": "[email protected]",
"fullname": "Administrator",
Expand All @@ -28,6 +29,7 @@ Content-Type: application/json
},
{
"@id": "http://localhost:55001/plone/@users/test_user_1_",
"can_delete": true,
"description": "This is a test user",
"email": "[email protected]",
"fullname": "Test User",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Content-Type: application/json

{
"@id": "http://localhost:55001/plone/@users/noam",
"can_delete": true,
"description": "Professor of Linguistics",
"email": "[email protected]",
"fullname": "Noam Avram Chomsky",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Content-Type: application/json
[
{
"@id": "http://localhost:55001/plone/@users/noam",
"can_delete": true,
"description": "Professor of Linguistics",
"email": "[email protected]",
"fullname": "Noam Avram Chomsky",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Content-Type: application/json
[
{
"@id": "http://localhost:55001/plone/@users/noam",
"can_delete": true,
"description": "Professor of Linguistics",
"email": "[email protected]",
"fullname": "Noam Avram Chomsky",
Expand Down
1 change: 1 addition & 0 deletions src/plone/restapi/tests/http-examples/users_get.resp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Content-Type: application/json

{
"@id": "http://localhost:55001/plone/@users/noam",
"can_delete": true,
"description": "Professor of Linguistics",
"email": "[email protected]",
"fullname": "Noam Avram Chomsky",
Expand Down
1 change: 1 addition & 0 deletions src/plone/restapi/tests/http-examples/users_searched.resp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Content-Type: application/json
[
{
"@id": "http://localhost:55001/plone/@users/noam",
"can_delete": true,
"description": "Professor of Linguistics",
"email": "[email protected]",
"fullname": "Noam Avram Chomsky",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Content-Type: application/json

{
"@id": "http://localhost:55001/plone/@users/noam",
"can_delete": true,
"description": null,
"email": "[email protected]",
"fullname": null,
Expand Down

0 comments on commit 78edeb3

Please sign in to comment.