biocore / microsetta-public-api

A public microservice to support The Microsetta Initiative
BSD 3-Clause "New" or "Revised" License
2 stars 4 forks source link

List metadata available categories and available datasets #63

Closed gwarmstrong closed 3 years ago

gwarmstrong commented 4 years ago

Adds two new endpoints, /metadata/category/available and /avaialable/dataset that list the available metadata categories and available datasets, respectively.

gwarmstrong commented 3 years ago

The escaped keywords, namely schema.metadata_kw are located in the same place as the dataset keywords we are looking for, but contain different information. E.g., the structure is something like this:

├── __metadata__
├── fecal
│   ├── alpha
│   ├── beta
│   └── pcoa
└── oral
    ├── alpha
    ├── beta
    └── pcoa

And the result we want back is ['fecal', 'oral'], instead of ['__metadata__', 'fecal', 'oral'].

No concerns about trying to block users from accessing information. The results API at this point is only concerned with totally public data.