-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Experimental support for the new REST API (#994)
* First commit * Tweak experimental API language * XFail on 5.x * Do not try to create REST client in unsupported versions * Implement survey detail * Add unit tests * Do not pull MarkupSafe binary for PyPy * Add missing test * Fix mypy * Use TypeAlias * Add context manager to REST client * Add change file * Skip docs for citric._rest.client * Move to citric.rest * Abstract away request logic * Update lockfile * Skip binary wheel for MarkupSafe in python 3.13 * Fix typo * Document REST coverage * Document REST coverage * Make RESTClient.authenticate a side effect * Sort tags lexicographically * Remove unnecessary classifiers * Add async client * Revert "Add async client" This reverts commit 672ca69. * Make REST module private * Update expection for PATCH `survey-detail` * Document REST client * Update integration tests list
- Loading branch information
1 parent
cb4ec17
commit 72330a3
Showing
18 changed files
with
654 additions
and
225 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,5 @@ | ||
kind: Added | ||
body: Experimental support for the new REST API | ||
time: 2023-09-20T03:36:26.529589-06:00 | ||
custom: | ||
Issue: "994" |
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
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,10 @@ | ||
# REST endpoints coverage | ||
|
||
|
||
| Name | Implemented | | ||
| :----------------------------------------- | :-------------------------------------------------- | | ||
| `POST /rest/v1/session` | [Yes](citric._rest.RESTClient.authenticate) | | ||
| `DELETE /rest/v1/session` | [Yes](citric._rest.RESTClient.close) | | ||
| `GET /rest/v1/survey` | [Yes](citric._rest.RESTClient.get_surveys) | | ||
| `GET /rest/v1/survey-detail/{survey_id}` | [Yes](citric._rest.RESTClient.get_survey_details) | | ||
| `PATCH /rest/v1/survey-detail/{survey_id}` | [Yes](citric._rest.RESTClient.update_survey_details) | |
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.