From fa6412cf998cee193c602bfdf74d384a58a2c57e Mon Sep 17 00:00:00 2001 From: xnought Date: Sun, 10 Mar 2024 19:56:19 -0700 Subject: [PATCH] fix: change function name --- backend/src/api/protein.py | 2 +- .../lib/openapi/services/DefaultService.ts | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/backend/src/api/protein.py b/backend/src/api/protein.py index 82865ec0..ef18a3f1 100644 --- a/backend/src/api/protein.py +++ b/backend/src/api/protein.py @@ -337,7 +337,7 @@ def edit_protein_entry(body: EditBody, req: Request): # /pdb with two attributes returns both PDBs, superimposed and with different colors. @router.get("/protein/pdb/{proteinA:str}/{proteinB:str}") -def search_proteins(proteinA: str, proteinB: str): +def align_proteins(proteinA: str, proteinB: str): try: pdbA = stored_pdb_file_name(proteinA) pdbB = stored_pdb_file_name(proteinB) diff --git a/frontend/src/lib/openapi/services/DefaultService.ts b/frontend/src/lib/openapi/services/DefaultService.ts index 2697272c..2f16aa3f 100644 --- a/frontend/src/lib/openapi/services/DefaultService.ts +++ b/frontend/src/lib/openapi/services/DefaultService.ts @@ -248,6 +248,29 @@ export class DefaultService { }, }); } + /** + * Align Proteins + * @param proteinA + * @param proteinB + * @returns any Successful Response + * @throws ApiError + */ + public static alignProteins( + proteinA: string, + proteinB: string, + ): CancelablePromise { + return __request(OpenAPI, { + method: 'GET', + url: '/protein/pdb/{proteinA}/{proteinB}', + path: { + 'proteinA': proteinA, + 'proteinB': proteinB, + }, + errors: { + 422: `Validation Error`, + }, + }); + } /** * Get All Tutorials * @returns Tutorial Successful Response