-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX : Optional[Dict[str, StrictStr]] instead of Dict[str, str]
- Loading branch information
1 parent
68532b6
commit 00a5684
Showing
8 changed files
with
121 additions
and
159 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 |
---|---|---|
|
@@ -2,9 +2,9 @@ | |
|
||
All URIs are relative to *https://ecotaxa.obs-vlfr.fr/api* | ||
|
||
| Method | HTTP request | Description | | ||
| ----------------------------------------- | --------------- | ----------- | | ||
| [**login**](AuthentificationApi.md#login) | **POST** /login | Login | | ||
Method | HTTP request | Description | ||
------------- | ------------- | ------------- | ||
[**login**](AuthentificationApi.md#login) | **POST** /login | Login | ||
|
||
|
||
# **login** | ||
|
@@ -34,15 +34,11 @@ configuration = ecotaxa_py_client.Configuration( | |
with ecotaxa_py_client.ApiClient(configuration) as api_client: | ||
# Create an instance of the API class | ||
api_instance = ecotaxa_py_client.AuthentificationApi(api_client) | ||
login_req = ecotaxa_py_client.LoginReq( | ||
password="test!", | ||
username="[email protected]", | ||
) # LoginReq | | ||
login_req = ecotaxa_py_client.LoginReq() # LoginReq | | ||
|
||
try: | ||
# Login | ||
api_response = api_instance.login(login_req) | ||
os.environ["ACCESS_TOKEN"]=api_response | ||
print("The response of AuthentificationApi->login:\n") | ||
pprint(api_response) | ||
except Exception as e: | ||
|
@@ -54,9 +50,9 @@ with ecotaxa_py_client.ApiClient(configuration) as api_client: | |
### Parameters | ||
|
||
|
||
| Name | Type | Description | Notes | | ||
| ------------- | --------------------------- | ----------- | ----- | | ||
| **login_req** | [**LoginReq**](LoginReq.md) | | | ||
Name | Type | Description | Notes | ||
------------- | ------------- | ------------- | ------------- | ||
**login_req** | [**LoginReq**](LoginReq.md)| | | ||
|
||
### Return type | ||
|
||
|
@@ -73,10 +69,10 @@ No authorization required | |
|
||
### HTTP response details | ||
|
||
| Status code | Description | Response headers | | ||
| ----------- | ------------------- | ---------------- | | ||
| **200** | Successful Response | - | | ||
| **422** | Validation Error | - | | ||
| Status code | Description | Response headers | | ||
|-------------|-------------|------------------| | ||
**200** | Successful Response | - | | ||
**422** | Validation Error | - | | ||
|
||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "ecotaxa_py_client" | ||
version = "2.0.3" | ||
version = "2.0.4" | ||
description = "EcoTaxa" | ||
authors = ["OpenAPI Generator Community <[email protected]>"] | ||
license = "NoLicense" | ||
|
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