Skip to content

Commit

Permalink
Update http-examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasgraf committed Sep 19, 2019
1 parent c2fbea8 commit b07cfb4
Show file tree
Hide file tree
Showing 27 changed files with 84 additions and 84 deletions.
4 changes: 2 additions & 2 deletions src/plone/restapi/tests/http-examples/collection.resp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Content-Type: application/json
"UID": "SomeUUID000000000000000000000002",
"allow_discussion": false,
"contributors": [],
"created": "2016-01-21T08:14:48+00:00",
"created": "1988-09-13T13:03:24",
"creators": [
"test_user_1_"
],
Expand Down Expand Up @@ -80,7 +80,7 @@ Content-Type: application/json
"language": "",
"layout": "listing_view",
"limit": 1000,
"modified": "2016-01-21T08:24:11+00:00",
"modified": "1988-09-14T13:03:24",
"parent": {
"@id": "http://localhost:55001/plone",
"@type": "Plone Site",
Expand Down
20 changes: 10 additions & 10 deletions src/plone/restapi/tests/http-examples/comments_get.resp
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,35 @@ Content-Type: application/json
"@id": "http://localhost:55001/plone/front-page/@comments",
"items": [
{
"@id": "http://localhost:55001/plone/front-page/@comments/1477076400000000",
"@id": "http://localhost:55001/plone/front-page/@comments/123456",
"@parent": null,
"@type": "Discussion Item",
"author_name": null,
"author_username": null,
"comment_id": "1477076400000000",
"creation_date": "2016-10-21T19:00:00",
"comment_id": "0",
"creation_date": "1988-09-13T13:03:24",
"in_reply_to": null,
"is_deletable": true,
"is_editable": true,
"modification_date": "2016-10-21T19:00:00",
"modification_date": "1988-09-14T13:03:24",
"text": {
"data": "Comment 1",
"mime-type": "text/plain"
},
"user_notification": null
},
{
"@id": "http://localhost:55001/plone/front-page/@comments/1477076400000001",
"@parent": "http://localhost:55001/plone/front-page/@comments/1477076400000000",
"@id": "http://localhost:55001/plone/front-page/@comments/123456",
"@parent": "http://localhost:55001/plone/front-page/@comments/123456",
"@type": "Discussion Item",
"author_name": null,
"author_username": null,
"comment_id": "1477076400000001",
"creation_date": "2016-10-21T19:00:00",
"in_reply_to": "1477076400000000",
"comment_id": "1",
"creation_date": "1988-09-13T13:03:24",
"in_reply_to": "0",
"is_deletable": true,
"is_editable": true,
"modification_date": "2016-10-21T19:00:00",
"modification_date": "1988-09-14T13:03:24",
"text": {
"data": "Comment 1.1",
"mime-type": "text/plain"
Expand Down
4 changes: 2 additions & 2 deletions src/plone/restapi/tests/http-examples/content_get.resp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Content-Type: application/json
"allow_discussion": false,
"changeNote": "",
"contributors": [],
"created": "2016-10-21T19:00:00+00:00",
"created": "1988-09-13T13:03:24",
"creators": [
"admin"
],
Expand All @@ -37,7 +37,7 @@ Content-Type: application/json
"is_folderish": false,
"language": "",
"layout": "document_view",
"modified": "2016-10-21T19:00:00+00:00",
"modified": "1988-09-14T13:03:24",
"parent": {
"@id": "http://localhost:55001/plone/folder",
"@type": "Folder",
Expand Down
4 changes: 2 additions & 2 deletions src/plone/restapi/tests/http-examples/content_get_folder.resp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Content-Type: application/json
"UID": "SomeUUID000000000000000000000002",
"allow_discussion": false,
"contributors": [],
"created": "2016-01-21T07:14:48+00:00",
"created": "1988-09-13T13:03:24",
"creators": [
"test_user_1_"
],
Expand Down Expand Up @@ -66,7 +66,7 @@ Content-Type: application/json
"items_total": 3,
"language": "",
"layout": "listing_view",
"modified": "2016-10-21T19:00:00+00:00",
"modified": "1988-09-14T13:03:24",
"nextPreviousEnabled": false,
"parent": {
"@id": "http://localhost:55001/plone",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Content-Type: application/json
"allow_discussion": false,
"changeNote": "",
"contributors": [],
"created": "2016-10-21T19:00:00+00:00",
"created": "1988-09-13T13:03:24",
"creators": [
"admin"
],
Expand All @@ -37,7 +37,7 @@ Content-Type: application/json
"is_folderish": false,
"language": "",
"layout": "document_view",
"modified": "2016-10-21T19:00:00+00:00",
"modified": "1988-09-14T13:03:24",
"parent": {
"@id": "http://localhost:55001/plone/folder",
"@type": "Folder",
Expand Down
4 changes: 2 additions & 2 deletions src/plone/restapi/tests/http-examples/content_post.resp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Location: http://localhost:55001/plone/folder/my-document
"allow_discussion": false,
"changeNote": "",
"contributors": [],
"created": "2016-10-21T19:00:00+00:00",
"created": "1988-09-13T13:03:24",
"creators": [
"admin"
],
Expand All @@ -38,7 +38,7 @@ Location: http://localhost:55001/plone/folder/my-document
"is_folderish": false,
"language": "",
"layout": "document_view",
"modified": "2016-10-21T19:00:00+00:00",
"modified": "1988-09-14T13:03:24",
"parent": {
"@id": "http://localhost:55001/plone/folder",
"@type": "Folder",
Expand Down
4 changes: 2 additions & 2 deletions src/plone/restapi/tests/http-examples/document.resp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Content-Type: application/json
"allow_discussion": false,
"changeNote": "",
"contributors": [],
"created": "2016-01-21T01:14:48+00:00",
"created": "1988-09-13T13:03:24",
"creators": [
"test_user_1_"
],
Expand All @@ -37,7 +37,7 @@ Content-Type: application/json
"is_folderish": false,
"language": "",
"layout": "document_view",
"modified": "2016-01-21T01:24:11+00:00",
"modified": "1988-09-14T13:03:24",
"parent": {
"@id": "http://localhost:55001/plone",
"@type": "Plone Site",
Expand Down
4 changes: 2 additions & 2 deletions src/plone/restapi/tests/http-examples/event.resp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Content-Type: application/json
"contact_name": null,
"contact_phone": null,
"contributors": [],
"created": "2016-01-21T03:14:48+00:00",
"created": "1988-09-13T13:03:24",
"creators": [
"test_user_1_"
],
Expand All @@ -44,7 +44,7 @@ Content-Type: application/json
"language": "",
"layout": "event_view",
"location": null,
"modified": "2016-01-21T03:24:11+00:00",
"modified": "1988-09-14T13:03:24",
"open_end": false,
"parent": {
"@id": "http://localhost:55001/plone",
Expand Down
4 changes: 2 additions & 2 deletions src/plone/restapi/tests/http-examples/expansion.resp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Content-Type: application/json
"allow_discussion": false,
"changeNote": "",
"contributors": [],
"created": "2016-01-21T01:14:48+00:00",
"created": "1988-09-13T13:03:24",
"creators": [
"test_user_1_"
],
Expand All @@ -37,7 +37,7 @@ Content-Type: application/json
"is_folderish": false,
"language": "",
"layout": "document_view",
"modified": "2016-01-21T01:24:11+00:00",
"modified": "1988-09-14T13:03:24",
"parent": {
"@id": "http://localhost:55001/plone",
"@type": "Plone Site",
Expand Down
4 changes: 2 additions & 2 deletions src/plone/restapi/tests/http-examples/expansion_expanded.resp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Content-Type: application/json
"allow_discussion": false,
"changeNote": "",
"contributors": [],
"created": "2016-01-21T01:14:48+00:00",
"created": "1988-09-13T13:03:24",
"creators": [
"test_user_1_"
],
Expand All @@ -43,7 +43,7 @@ Content-Type: application/json
"is_folderish": false,
"language": "",
"layout": "document_view",
"modified": "2016-01-21T01:24:11+00:00",
"modified": "1988-09-14T13:03:24",
"parent": {
"@id": "http://localhost:55001/plone",
"@type": "Plone Site",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ Content-Type: application/json
"actor": "test_user_1_",
"comments": "",
"review_state": "private",
"time": "2016-10-21T19:00:00+00:00",
"time": "1988-09-14T13:03:24",
"title": "Private"
}
],
Expand All @@ -207,7 +207,7 @@ Content-Type: application/json
"allow_discussion": false,
"changeNote": "",
"contributors": [],
"created": "2016-01-21T01:14:48+00:00",
"created": "1988-09-13T13:03:24",
"creators": [
"test_user_1_"
],
Expand All @@ -219,7 +219,7 @@ Content-Type: application/json
"is_folderish": false,
"language": "",
"layout": "document_view",
"modified": "2016-01-21T01:24:11+00:00",
"modified": "1988-09-14T13:03:24",
"parent": {
"@id": "http://localhost:55001/plone",
"@type": "Plone Site",
Expand Down
4 changes: 2 additions & 2 deletions src/plone/restapi/tests/http-examples/file.resp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Content-Type: application/json
"UID": "SomeUUID000000000000000000000002",
"allow_discussion": false,
"contributors": [],
"created": "2016-01-21T05:14:48+00:00",
"created": "1988-09-13T13:03:24",
"creators": [
"test_user_1_"
],
Expand All @@ -42,7 +42,7 @@ Content-Type: application/json
"is_folderish": false,
"language": "",
"layout": "file_view",
"modified": "2016-01-21T05:24:11+00:00",
"modified": "1988-09-14T13:03:24",
"parent": {
"@id": "http://localhost:55001/plone",
"@type": "Plone Site",
Expand Down
4 changes: 2 additions & 2 deletions src/plone/restapi/tests/http-examples/folder.resp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Content-Type: application/json
"UID": "SomeUUID000000000000000000000002",
"allow_discussion": false,
"contributors": [],
"created": "2016-01-21T07:14:48+00:00",
"created": "1988-09-13T13:03:24",
"creators": [
"test_user_1_"
],
Expand Down Expand Up @@ -53,7 +53,7 @@ Content-Type: application/json
"items_total": 2,
"language": "",
"layout": "listing_view",
"modified": "2016-01-21T07:24:11+00:00",
"modified": "1988-09-14T13:03:24",
"nextPreviousEnabled": false,
"parent": {
"@id": "http://localhost:55001/plone",
Expand Down
32 changes: 16 additions & 16 deletions src/plone/restapi/tests/http-examples/history_get.resp
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,6 @@ HTTP/1.1 200 OK
Content-Type: application/json

[
{
"action": "Create",
"actor": {
"@id": "http://localhost:55001/plone/@users/test_user_1_",
"fullname": "",
"id": "test_user_1_",
"username": "test-user"
},
"comments": "",
"review_state": "private",
"state_title": "Private",
"time": "2016-10-21T19:00:00",
"transition_title": "Create",
"type": "workflow"
},
{
"@id": "http://localhost:55001/plone/front-page/@history/0",
"action": "Edited",
Expand All @@ -28,9 +13,24 @@ Content-Type: application/json
},
"comments": "Initial version",
"may_revert": true,
"time": "2016-10-21T19:00:00",
"time": "1988-09-14T13:03:24",
"transition_title": "Edited",
"type": "versioning",
"version": 0
},
{
"action": "Create",
"actor": {
"@id": "http://localhost:55001/plone/@users/test_user_1_",
"fullname": "",
"id": "test_user_1_",
"username": "test-user"
},
"comments": "",
"review_state": "private",
"state_title": "Private",
"time": "1988-09-14T14:03:24",
"transition_title": "Create",
"type": "workflow"
}
]
4 changes: 2 additions & 2 deletions src/plone/restapi/tests/http-examples/image.resp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Content-Type: application/json
"UID": "SomeUUID000000000000000000000002",
"allow_discussion": false,
"contributors": [],
"created": "2016-01-21T06:14:48+00:00",
"created": "1988-09-13T13:03:24",
"creators": [
"test_user_1_"
],
Expand Down Expand Up @@ -81,7 +81,7 @@ Content-Type: application/json
"is_folderish": false,
"language": "",
"layout": "image_view",
"modified": "2016-01-21T06:24:11+00:00",
"modified": "1988-09-14T13:03:24",
"parent": {
"@id": "http://localhost:55001/plone",
"@type": "Plone Site",
Expand Down
4 changes: 2 additions & 2 deletions src/plone/restapi/tests/http-examples/link.resp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Content-Type: application/json
"allow_discussion": false,
"changeNote": "",
"contributors": [],
"created": "2016-01-21T04:14:48+00:00",
"created": "1988-09-13T13:03:24",
"creators": [
"test_user_1_"
],
Expand All @@ -37,7 +37,7 @@ Content-Type: application/json
"is_folderish": false,
"language": "",
"layout": "link_redirect_view",
"modified": "2016-01-21T04:24:11+00:00",
"modified": "1988-09-14T13:03:24",
"parent": {
"@id": "http://localhost:55001/plone",
"@type": "Plone Site",
Expand Down
2 changes: 1 addition & 1 deletion src/plone/restapi/tests/http-examples/lock.resp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Content-Type: application/json
"locked": true,
"name": "plone.locking.stealable",
"stealable": true,
"time": 1477076400.0,
"time": 590245404.0,
"timeout": 600,
"token": "0.684672730996-0.25195226375-00105A989226:1477076400.000"
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Content-Type: application/json
"locked": true,
"name": "plone.locking.stealable",
"stealable": true,
"time": 1477076400.0,
"time": 590245404.0,
"timeout": 3600,
"token": "0.684672730996-0.25195226375-00105A989226:1477076400.000"
}
4 changes: 2 additions & 2 deletions src/plone/restapi/tests/http-examples/newsitem.resp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Content-Type: application/json
"allow_discussion": false,
"changeNote": "",
"contributors": [],
"created": "2016-01-21T02:14:48+00:00",
"created": "1988-09-13T13:03:24",
"creators": [
"test_user_1_"
],
Expand Down Expand Up @@ -83,7 +83,7 @@ Content-Type: application/json
"is_folderish": false,
"language": "",
"layout": "newsitem_view",
"modified": "2016-01-21T02:24:11+00:00",
"modified": "1988-09-14T13:03:24",
"parent": {
"@id": "http://localhost:55001/plone",
"@type": "Plone Site",
Expand Down

0 comments on commit b07cfb4

Please sign in to comment.