Skip to content

Commit

Permalink
chore: improve search request speed by passing accession and score only
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwenk committed Oct 23, 2024
1 parent d3fb735 commit 1fccce6
Show file tree
Hide file tree
Showing 14 changed files with 74 additions and 471 deletions.
6 changes: 3 additions & 3 deletions api/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,11 @@ paths:
$ref: "./schemas/FilterSchemas.yaml#/components/schemas/Substructure"
required: false
get:
summary: Get a list of records as a search result in a specific format (accession, title, peaks, smiles, similarity search result)
operationId: getSearchRecords
summary: Get a list of records as a search result in a specific format (accession, similarity score)
operationId: getSearchResults
responses:
"200":
description: "A list of simple records as a search result"
description: "A list of search results"
content:
application/json:
schema:
Expand Down
6 changes: 3 additions & 3 deletions api/schemas/SearchResult.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ properties:
items:
type: object
properties:
record:
description: MassBank record as a search result.
$ref: "./MBRecord.yaml"
accession:
description: The accession id of the record.
type: string
score:
description: Similarity score to the query spectrum.
type: number
Loading

0 comments on commit 1fccce6

Please sign in to comment.