unfoldingWord-dev / d43-catalog

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

Resources Endpoint #45

Closed jag3773 closed 5 years ago

jag3773 commented 6 years ago

Story

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

As a user, I don't want to wait a long time for the https://openbiblestories.squarespace.com/library/ page to load.

Notes

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

This process should happen whenever the main catalog.json file is updated.

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.

Acceptance Criteria

phillip-hopper commented 6 years ago

@jag3773: Just minifying the file shrunk it about 94 KB, from 998,586 bytes to 904,434.

jag3773 commented 6 years ago

In particular, you mean removing the spaces, right @phillip-hopper (line breaks are not present in the current version)?

phillip-hopper commented 6 years ago

Yes, @jag3773. I actually just ran it through https://www.cleancss.com/json-minify/.

jag3773 commented 5 years ago

This issue was solved in a slightly different manner in #52.