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
Other
2 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 2 months ago

tloubrieu-jpl commented 2 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 3 weeks ago

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