microbiomedata / nmdc-schema

National Microbiome Data Collaborative (NMDC) unified data model
https://microbiomedata.github.io/nmdc-schema/
Creative Commons Zero v1.0 Universal
27 stars 8 forks source link

`napa_compliance` branch: Update script to generate request bodies for `/queries:run` endpoint #1941

Closed eecavanna closed 3 months ago

eecavanna commented 3 months ago

In this branch, I added code that will generate bodies (each one in its own JSON file) for HTTP requests that can be made to the /queries:run endpoint of the Runtime API.

I tested the added code (by running it in a Jupyter notebook that contained only the added code and a contrived deleted_record_identifiers list, shown below).

Here's a screenshot showing what the request bodies would look like for an example (contrived) deleted_record_identifiers list:

image

Note: I did not remove the preexisting some_collection.delete_one(...) statements from this Python script. I will leave that to my teammate to do when she is ready.

Note: The target branch for this PR is the napa_compliance branch, not the main branch.

eecavanna commented 3 months ago

I will remove the preexisting delete_one statements now.