-
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added upload and download aliases in csv format. (#1813)
* Added text/CSV content-type support to upload/download aliases in bulk. * Added aliases unit/integration tests for aliases service. * Added documentation
- Loading branch information
Showing
11 changed files
with
370 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Added create and fetch aliases in CSV format. @Faakhir30 |
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
13 changes: 13 additions & 0 deletions
13
src/plone/restapi/tests/http-examples/aliases_root_add_csv_format.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,13 @@ | ||
POST /plone/@aliases HTTP/1.1 | ||
Accept: application/json | ||
Authorization: Basic YWRtaW46c2VjcmV0 | ||
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW | ||
|
||
------WebKitFormBoundary7MA4YWxkTrZu0gW | ||
Content-Disposition: form-data; name="file"; filename="test_file.csv" | ||
Content-Type: text/csv | ||
|
||
old path,new path,datetime,manual | ||
/old-page,/front-page,2022/01/01 00:00:00 GMT+0,True | ||
|
||
------WebKitFormBoundary7MA4YWxkTrZu0gW-- |
2 changes: 2 additions & 0 deletions
2
src/plone/restapi/tests/http-examples/aliases_root_add_csv_format.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,2 @@ | ||
HTTP/1.1 204 No Content | ||
|
3 changes: 3 additions & 0 deletions
3
src/plone/restapi/tests/http-examples/aliases_root_get_csv_format.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/@aliases HTTP/1.1 | ||
Accept: text/csv | ||
Authorization: Basic YWRtaW46c2VjcmV0 |
6 changes: 6 additions & 0 deletions
6
src/plone/restapi/tests/http-examples/aliases_root_get_csv_format.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,6 @@ | ||
HTTP/1.1 201 Created | ||
Content-Type: text/csv; charset=utf-8 | ||
|
||
old path,new path,datetime,manual | ||
/fizzbuzz,/front-page,2022/05/05 00:00:00 GMT+0,True | ||
/old-page,/front-page,2022/05/05 00:00:00 GMT+0,True |
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
Oops, something went wrong.