-
-
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.
Added create and fetch aliases using csv.
- Loading branch information
Showing
9 changed files
with
149 additions
and
11 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
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
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 |
13 changes: 13 additions & 0 deletions
13
src/plone/restapi/tests/http-examples/aliases_root_post_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=8ef8f6e729077f0afdcee18b29387cf7 | ||
|
||
--8ef8f6e729077f0afdcee18b29387cf7 | ||
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 | ||
|
||
--8ef8f6e729077f0afdcee18b29387cf7-- |
2 changes: 2 additions & 0 deletions
2
src/plone/restapi/tests/http-examples/aliases_root_post_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 | ||
|
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