unfoldingWord-dev / d43-catalog

Lambda functions for the Door43 Catalog.
https://api.door43.org/v3/catalog
MIT License
1 stars 8 forks source link

Subject Endpoint #52

Closed jag3773 closed 5 years ago

jag3773 commented 6 years ago

Story

As a tC developer, I want to be able to get a list of content for a particular subject type instead of having to read the entire catalog.json.

Notes

The d43-catalog needs to start outputting a JSON file that only lists the resources that are in the catalog.json endpoint by subject.

This process should happen whenever the main catalog.json file is updated. An S3 file modification trigger will launch the Lambda function to post process the catalog.

The format of the JSON files should be the same as the catalog.json, excepting the catalogs array. Hence, only languages should be seen as a top level array in the output files.

Spaces that are in the subject field should be converted to underscores in the path names.

Acceptance Criteria

jag3773 commented 6 years ago

@RoyalSix Can you create a PR against http://api-info.readthedocs.io/en/latest/door43.html with documentation about this new subjects endpoint?