-
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add items_total to linkintegrity endpoint (#1636)
* Add items_total to linkintegrity endpoint * changelog * Add missing documentation for linkintegrity endpoint * Update docs/source/endpoints/linkintegrity.md * Run tests with Python 3.9 * Add upgrade guide for link integrity --------- Co-authored-by: Timo Stollenwerk <tisto@users.noreply.github.com> Co-authored-by: Timo Stollenwerk <stollenwerk@kitconcept.com>
- Loading branch information
1 parent
f5ec2f5
commit 1c08b5c
Showing
8 changed files
with
124 additions
and
16 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
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
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 @@ | ||
Change the @linkintegrity endpoint to add `items_total`, the number of contained items which would be deleted. @davisagli, @danalvrz, @pgrunewald |
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
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,3 +1,3 @@ | ||
GET /plone/@linkintegrity?uids=SomeUUID000000000000000000000001 HTTP/1.1 | ||
GET /plone/@linkintegrity?uids=SomeUUID000000000000000000000002 HTTP/1.1 | ||
Accept: application/json | ||
Authorization: Basic YWRtaW46c2VjcmV0 |
22 changes: 21 additions & 1 deletion
22
src/plone/restapi/tests/http-examples/linkintegrity_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 |
---|---|---|
@@ -1 +1,21 @@ | ||
TODO | ||
HTTP/1.1 200 OK | ||
Content-Type: application/json | ||
|
||
[ | ||
{ | ||
"@id": "http://localhost:55001/plone/doc-2", | ||
"@type": "Document", | ||
"breaches": [ | ||
{ | ||
"@id": "http://localhost:55001/plone/doc-1", | ||
"title": "First document", | ||
"uid": "SomeUUID000000000000000000000001" | ||
} | ||
], | ||
"description": "", | ||
"items_total": 0, | ||
"review_state": "private", | ||
"title": "Second document", | ||
"type_title": "Page" | ||
} | ||
] |
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
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