Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add discovery metadata process workflows #25

Merged
merged 2 commits into from
Feb 27, 2023
Merged

Conversation

tomkralidis
Copy link
Collaborator

@tomkralidis tomkralidis commented Feb 22, 2023

Adds the following discovery metadata process/workflows:

WIS2 topic hierarchy

List all topics at a given level

curl -X 'POST' \
  'http://localhost:8999/oapi/processes/pywcmp-wis2-topics-list/execution' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "inputs": {
    "topic": "origin/a/wis2"
  }
}'

Validate a topic hierarchy

curl -X 'POST' \
  'http://localhost:8999/oapi/processes/pywcmp-wis2-topics-validate/execution' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "inputs": {
    "topic": "origin/a/wis2",
    "fuzzy": true
  }
}'

WIS2 Metadata (WMO Core Metadata Profile 2 [WCMP2])

Generate discovery metadata from an MCF file

curl -X 'POST' \
  'http://localhost:8999/oapi/processes/pygeometa-metadata-generate/execution' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "inputs": {
    "mcf": <<MCF_FILE_AS_JSON>>,
    "schema": "oarec-record"
  }
}'

Run WCMP2 executable test suite on an OGC API - Records JSON file

curl -X 'POST' \
  'http://localhost:8999/oapi/processes/pywcmp-wis2-wcmp2-ets/execution' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "inputs": {
    "record": <<OGC_API_RECORDS_JSON>>
  }
}'

SwaggerUI with more information can be found at http://localhost:8999/oapi/openapi?f=html

cc @sabersd

@tomkralidis tomkralidis changed the title [WIP] add discovery metadata process workflows add discovery metadata process workflows Feb 26, 2023
Copy link
Member

@webb-ben webb-ben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 nice work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants