Skip to content

Commit

Permalink
update OpenAPI generated clients
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed Jul 9, 2024
1 parent 8e32618 commit 12eff98
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 20 deletions.
2 changes: 1 addition & 1 deletion python-restclient/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Class | Method | HTTP request | Description
*UsersResourceApi* | [**get_me**](docs/UsersResourceApi.md#get_me) | **GET** /api/v1/users/me | Get current user
*UsersResourceApi* | [**map_new_user**](docs/UsersResourceApi.md#map_new_user) | **POST** /api/v1/users/newUser | create vcell user
*UsersResourceApi* | [**map_user**](docs/UsersResourceApi.md#map_user) | **POST** /api/v1/users/mapUser | map vcell user
*UsersResourceApi* | [**process_magic_link**](docs/UsersResourceApi.md#process_magic_link) | **POST** /api/v1/users/processMagicLink | Process the magic link and map the user
*UsersResourceApi* | [**process_magic_link**](docs/UsersResourceApi.md#process_magic_link) | **GET** /api/v1/users/processMagicLink | Process the magic link and map the user
*UsersResourceApi* | [**request_recovery_email**](docs/UsersResourceApi.md#request_recovery_email) | **POST** /api/v1/users/requestRecoveryEmail | request a recovery email to link a VCell account.
*UsersResourceApi* | [**unmap_user**](docs/UsersResourceApi.md#unmap_user) | **PUT** /api/v1/users/unmapUser/{userName} | remove vcell identity mapping

Expand Down
5 changes: 2 additions & 3 deletions python-restclient/docs/UsersResourceApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Method | HTTP request | Description
[**get_me**](UsersResourceApi.md#get_me) | **GET** /api/v1/users/me | Get current user
[**map_new_user**](UsersResourceApi.md#map_new_user) | **POST** /api/v1/users/newUser | create vcell user
[**map_user**](UsersResourceApi.md#map_user) | **POST** /api/v1/users/mapUser | map vcell user
[**process_magic_link**](UsersResourceApi.md#process_magic_link) | **POST** /api/v1/users/processMagicLink | Process the magic link and map the user
[**process_magic_link**](UsersResourceApi.md#process_magic_link) | **GET** /api/v1/users/processMagicLink | Process the magic link and map the user
[**request_recovery_email**](UsersResourceApi.md#request_recovery_email) | **POST** /api/v1/users/requestRecoveryEmail | request a recovery email to link a VCell account.
[**unmap_user**](UsersResourceApi.md#unmap_user) | **PUT** /api/v1/users/unmapUser/{userName} | remove vcell identity mapping

Expand Down Expand Up @@ -542,8 +542,6 @@ No authorization required
|-------------|-------------|------------------|
**200** | User mapped successfully | - |
**400** | Invalid or expired magic link | - |
**406** | User not mapped | - |
**500** | Internal server 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)

Expand Down Expand Up @@ -612,6 +610,7 @@ void (empty response body)
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | magic link sent in email if appropriate | - |
**400** | unable to process request | - |
**403** | Not Allowed | - |
**401** | Not Authorized | - |

Expand Down
2 changes: 1 addition & 1 deletion python-restclient/vcell_client/api/users_resource_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2065,7 +2065,7 @@ def _process_magic_link_serialize(
]

return self.api_client.param_serialize(
method='POST',
method='GET',
resource_path='/api/v1/users/processMagicLink',
path_params=_path_params,
query_params=_query_params,
Expand Down
4 changes: 2 additions & 2 deletions vcell-restclient/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ Class | Method | HTTP request | Description
*UsersResourceApi* | [**mapNewUserWithHttpInfo**](docs/UsersResourceApi.md#mapNewUserWithHttpInfo) | **POST** /api/v1/users/newUser | create vcell user
*UsersResourceApi* | [**mapUser**](docs/UsersResourceApi.md#mapUser) | **POST** /api/v1/users/mapUser | map vcell user
*UsersResourceApi* | [**mapUserWithHttpInfo**](docs/UsersResourceApi.md#mapUserWithHttpInfo) | **POST** /api/v1/users/mapUser | map vcell user
*UsersResourceApi* | [**processMagicLink**](docs/UsersResourceApi.md#processMagicLink) | **POST** /api/v1/users/processMagicLink | Process the magic link and map the user
*UsersResourceApi* | [**processMagicLinkWithHttpInfo**](docs/UsersResourceApi.md#processMagicLinkWithHttpInfo) | **POST** /api/v1/users/processMagicLink | Process the magic link and map the user
*UsersResourceApi* | [**processMagicLink**](docs/UsersResourceApi.md#processMagicLink) | **GET** /api/v1/users/processMagicLink | Process the magic link and map the user
*UsersResourceApi* | [**processMagicLinkWithHttpInfo**](docs/UsersResourceApi.md#processMagicLinkWithHttpInfo) | **GET** /api/v1/users/processMagicLink | Process the magic link and map the user
*UsersResourceApi* | [**requestRecoveryEmail**](docs/UsersResourceApi.md#requestRecoveryEmail) | **POST** /api/v1/users/requestRecoveryEmail | request a recovery email to link a VCell account.
*UsersResourceApi* | [**requestRecoveryEmailWithHttpInfo**](docs/UsersResourceApi.md#requestRecoveryEmailWithHttpInfo) | **POST** /api/v1/users/requestRecoveryEmail | request a recovery email to link a VCell account.
*UsersResourceApi* | [**unmapUser**](docs/UsersResourceApi.md#unmapUser) | **PUT** /api/v1/users/unmapUser/{userName} | remove vcell identity mapping
Expand Down
8 changes: 3 additions & 5 deletions vcell-restclient/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ paths:
x-content-type: application/json
x-accepts: application/json
/api/v1/users/processMagicLink:
post:
get:
operationId: processMagicLink
parameters:
- explode: true
Expand All @@ -476,10 +476,6 @@ paths:
description: User mapped successfully
"400":
description: Invalid or expired magic link
"406":
description: User not mapped
"500":
description: Internal server error
summary: Process the magic link and map the user
tags:
- Users Resource
Expand All @@ -505,6 +501,8 @@ paths:
responses:
"200":
description: magic link sent in email if appropriate
"400":
description: unable to process request
"403":
description: Not Allowed
"401":
Expand Down
10 changes: 4 additions & 6 deletions vcell-restclient/docs/UsersResourceApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ All URIs are relative to *https://vcell-dev.cam.uchc.edu*
| [**mapNewUserWithHttpInfo**](UsersResourceApi.md#mapNewUserWithHttpInfo) | **POST** /api/v1/users/newUser | create vcell user |
| [**mapUser**](UsersResourceApi.md#mapUser) | **POST** /api/v1/users/mapUser | map vcell user |
| [**mapUserWithHttpInfo**](UsersResourceApi.md#mapUserWithHttpInfo) | **POST** /api/v1/users/mapUser | map vcell user |
| [**processMagicLink**](UsersResourceApi.md#processMagicLink) | **POST** /api/v1/users/processMagicLink | Process the magic link and map the user |
| [**processMagicLinkWithHttpInfo**](UsersResourceApi.md#processMagicLinkWithHttpInfo) | **POST** /api/v1/users/processMagicLink | Process the magic link and map the user |
| [**processMagicLink**](UsersResourceApi.md#processMagicLink) | **GET** /api/v1/users/processMagicLink | Process the magic link and map the user |
| [**processMagicLinkWithHttpInfo**](UsersResourceApi.md#processMagicLinkWithHttpInfo) | **GET** /api/v1/users/processMagicLink | Process the magic link and map the user |
| [**requestRecoveryEmail**](UsersResourceApi.md#requestRecoveryEmail) | **POST** /api/v1/users/requestRecoveryEmail | request a recovery email to link a VCell account. |
| [**requestRecoveryEmailWithHttpInfo**](UsersResourceApi.md#requestRecoveryEmailWithHttpInfo) | **POST** /api/v1/users/requestRecoveryEmail | request a recovery email to link a VCell account. |
| [**unmapUser**](UsersResourceApi.md#unmapUser) | **PUT** /api/v1/users/unmapUser/{userName} | remove vcell identity mapping |
Expand Down Expand Up @@ -1007,8 +1007,6 @@ No authorization required
|-------------|-------------|------------------|
| **200** | User mapped successfully | - |
| **400** | Invalid or expired magic link | - |
| **406** | User not mapped | - |
| **500** | Internal server error | - |

## processMagicLinkWithHttpInfo

Expand Down Expand Up @@ -1075,8 +1073,6 @@ No authorization required
|-------------|-------------|------------------|
| **200** | User mapped successfully | - |
| **400** | Invalid or expired magic link | - |
| **406** | User not mapped | - |
| **500** | Internal server error | - |


## requestRecoveryEmail
Expand Down Expand Up @@ -1144,6 +1140,7 @@ null (empty response body)
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | magic link sent in email if appropriate | - |
| **400** | unable to process request | - |
| **403** | Not Allowed | - |
| **401** | Not Authorized | - |

Expand Down Expand Up @@ -1215,6 +1212,7 @@ ApiResponse<Void>
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | magic link sent in email if appropriate | - |
| **400** | unable to process request | - |
| **403** | Not Allowed | - |
| **401** | Not Authorized | - |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ private HttpRequest.Builder processMagicLinkRequestBuilder(String magic) throws

localVarRequestBuilder.header("Accept", "application/json");

localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody());
localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody());
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ export class UsersResourceService implements UsersResourceServiceInterface {
}

let localVarPath = `/api/v1/users/processMagicLink`;
return this.httpClient.request<any>('post', `${this.configuration.basePath}${localVarPath}`,
return this.httpClient.request<any>('get', `${this.configuration.basePath}${localVarPath}`,
{
context: localVarHttpContext,
params: localVarQueryParameters,
Expand Down

0 comments on commit 12eff98

Please sign in to comment.