Skip to content

Commit

Permalink
add first pass at search methods
Browse files Browse the repository at this point in the history
  • Loading branch information
antony-wilson committed Jun 12, 2024
1 parent 5e035a3 commit f7b5f10
Showing 1 changed file with 64 additions and 2 deletions.
66 changes: 64 additions & 2 deletions mod_api/static/mod_api/openAPI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ components:
schema:
type: string

query:
description: The search query.
name: q
in: path
required: true
schema:
type: string

page:
description: The page number you want to retrieve.
name: page
Expand All @@ -71,7 +79,7 @@ components:
in: query
schema:
type: integer
default: 1
default: 50

responses:

Expand Down Expand Up @@ -692,7 +700,7 @@ components:
title: Individual
description: An owl individual
type: string

ProvActivity:
title: Activity
description: An activity is something that occurs over a period of time and acts upon or with entities; it may include consuming, processing, transforming, modifying, relocating, using, or generating entities.
Expand Down Expand Up @@ -1513,3 +1521,57 @@ paths:
$ref: "#/components/responses/resources"
"404":
$ref: "#/components/responses/error_message"

# Search all semantic artefacts
/artefacts/search:
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
/distributions/search:
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
/records/search:
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 f7b5f10

Please sign in to comment.