Skip to content

Commit

Permalink
add alternate search end point examples
Browse files Browse the repository at this point in the history
  • Loading branch information
antony-wilson committed Jun 12, 2024
1 parent f7b5f10 commit 813839b
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions mod_api/static/mod_api/openAPI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1575,3 +1575,57 @@ paths:
$ref: "#/components/responses/records"
"404":
$ref: "#/components/responses/error_message"

# Search all semantic artefacts
/search/artefacts:
parameters:
- $ref: "#/components/parameters/format_param"
- $ref: "#/components/parameters/query"

get:
tags:
- Search
summary: Get information about all semantic artefacts that match the search criteria.
description: Retrieves a collection of all semantic artefacts that match the search criteria.
operationId: searchArtefacts
responses:
"200":
$ref: "#/components/responses/artefacts"
"404":
$ref: "#/components/responses/error_message"

# Search all semantic artefact distributions
/search/distributions:
parameters:
- $ref: "#/components/parameters/format_param"
- $ref: "#/components/parameters/query"

get:
tags:
- Search
summary: Get information about all semantic artefact distributions that match the search criteria.
description: Retrieves a collection of semantic artefact distributions that match the search criteria.
operationId: searchCatalogueDistributions
responses:
"200":
$ref: "#/components/responses/distributions"
"404":
$ref: "#/components/responses/error_message"

# Search all semantic artefact catalog records
/search/records:
parameters:
- $ref: "#/components/parameters/format_param"
- $ref: "#/components/parameters/query"

get:
tags:
- Search
summary: Get information about all semantic artefact catalog records that match the search criteria.
description: Retrieves a collection of semantic artefact catalog records that match the search criteria.
operationId: searchCatalogueRecords
responses:
"200":
$ref: "#/components/responses/records"
"404":
$ref: "#/components/responses/error_message"

0 comments on commit 813839b

Please sign in to comment.