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
This should be a lambda function that is triggered via S3 trigger any time the catalog.json file is updated
Every unique resource in catalog.json has a corresponding endpoint at /v3/resources/{subject}.json, for example:
A list of aligned Bible resources are found at /v3/subject/Aligned_Bible.json
A list of Greek New Testament resources are found at /v3/subject/Greek_New_Testament.json
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 bysubject
.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 thecatalogs
array. Hence, onlylanguages
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
catalog.json
has a corresponding endpoint at /v3/resources/{subject}.json, for example:/v3/subject/Aligned_Bible.json
/v3/subject/Greek_New_Testament.json