NASA-PDS / registry-api

Web API service for the PDS Registry, providing the implementation of the PDS Search API (https://github.com/nasa-pds/pds-api) for the PDS Registry.
https://nasa-pds.github.io/pds-api
Apache License 2.0
3 stars 5 forks source link

As a web developer, I want to access read-only any feature provided by opensearch #433

Open tloubrieu-jpl opened 7 months ago

tloubrieu-jpl commented 7 months ago

Checked for duplicates

No - I haven't checked

🧑‍🔬 User Persona(s)

Web developer, eventually the code running in web browser for any anonymous user.

💪 Motivation

...so that a web user can access anonymously the content of the registry with the filtering features of opensearch.

📖 Additional Details

The registry-api will have an additional endpoint which will securely forward queries to OpenSearch and return the response to the users.

Acceptance Criteria

Given an opensearch POST query When I perform this query through the registry-api Then I expect to get the opensearch result

Example POST query:

{
  "from": 0,
  "size": 9999,
  "query": {
    "wildcard": {
      "lid": {
        "value": "urn:*:investigation:*"
      }
    }
  }
}

TO BE DONE: add an example of query which would be rejected.

⚙️ Engineering Details

No response

tloubrieu-jpl commented 6 months ago

Started but does not work yet. On hold since the regular API works for the web modernization project.

tloubrieu-jpl commented 4 months ago

We might have to come back to that when the facetting and autocompletion will be needed for the Web Modernization Search.