-
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad8f37c
commit 5acf617
Showing
5 changed files
with
107 additions
and
6 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
5 changes: 0 additions & 5 deletions
5
src/plone/restapi/tests/http-examples/translations_expand_get.req
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,8 +1,3 @@ | ||
GET /plone/en/test-document?expand=translations HTTP/1.1 | ||
Accept: application/json | ||
Authorization: Basic YWRtaW46c2VjcmV0 | ||
Content-Type: application/json | ||
|
||
{ | ||
"id": "http://localhost:55001/plone/es/test-document" | ||
} |
3 changes: 3 additions & 0 deletions
3
src/plone/restapi/tests/http-examples/translations_unexpand_get.req
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
GET /plone/en/test-document?@translations HTTP/1.1 | ||
Accept: application/json | ||
Authorization: Basic YWRtaW46c2VjcmV0 |
88 changes: 88 additions & 0 deletions
88
src/plone/restapi/tests/http-examples/translations_unexpand_get.resp
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 |
---|---|---|
@@ -0,0 +1,88 @@ | ||
HTTP/1.1 200 OK | ||
Content-Type: application/json | ||
|
||
{ | ||
"@components": { | ||
"actions": { | ||
"@id": "http://localhost:55001/plone/en/test-document/@actions" | ||
}, | ||
"aliases": { | ||
"@id": "http://localhost:55001/plone/en/test-document/@aliases" | ||
}, | ||
"breadcrumbs": { | ||
"@id": "http://localhost:55001/plone/en/test-document/@breadcrumbs" | ||
}, | ||
"contextnavigation": { | ||
"@id": "http://localhost:55001/plone/en/test-document/@contextnavigation" | ||
}, | ||
"navigation": { | ||
"@id": "http://localhost:55001/plone/en/test-document/@navigation" | ||
}, | ||
"navroot": { | ||
"@id": "http://localhost:55001/plone/en/test-document/@navroot" | ||
}, | ||
"translations": { | ||
"@id": "http://localhost:55001/plone/en/test-document/@translations" | ||
}, | ||
"types": { | ||
"@id": "http://localhost:55001/plone/en/test-document/@types" | ||
}, | ||
"workflow": { | ||
"@id": "http://localhost:55001/plone/en/test-document/@workflow" | ||
} | ||
}, | ||
"@id": "http://localhost:55001/plone/en/test-document", | ||
"@type": "Document", | ||
"UID": "SomeUUID000000000000000000000001", | ||
"allow_discussion": false, | ||
"changeNote": "", | ||
"contributors": [], | ||
"created": "1995-07-31T13:45:00+00:00", | ||
"creators": [ | ||
"test_user_1_" | ||
], | ||
"description": "", | ||
"effective": null, | ||
"exclude_from_nav": false, | ||
"expires": null, | ||
"id": "test-document", | ||
"is_folderish": false, | ||
"language": { | ||
"title": "English", | ||
"token": "en" | ||
}, | ||
"layout": "document_view", | ||
"lock": { | ||
"locked": false, | ||
"stealable": true | ||
}, | ||
"modified": "1995-07-31T17:30:00+00:00", | ||
"next_item": {}, | ||
"parent": { | ||
"@id": "http://localhost:55001/plone/en", | ||
"@type": "LRF", | ||
"description": "", | ||
"review_state": "published", | ||
"title": "English", | ||
"type_title": "Language Root Folder" | ||
}, | ||
"previous_item": { | ||
"@id": "http://localhost:55001/plone/en/assets", | ||
"@type": "LIF", | ||
"description": "", | ||
"title": "Assets", | ||
"type_title": "Language Independent Folder" | ||
}, | ||
"relatedItems": [], | ||
"review_state": "private", | ||
"rights": "", | ||
"subjects": [], | ||
"table_of_contents": null, | ||
"text": null, | ||
"title": "Test document", | ||
"type_title": "Page", | ||
"version": "current", | ||
"versioning_enabled": true, | ||
"working_copy": null, | ||
"working_copy_of": null | ||
} |
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