Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Languages Endpoint #46

Open
jag3773 opened this issue Apr 20, 2018 · 1 comment
Open

Languages Endpoint #46

jag3773 opened this issue Apr 20, 2018 · 1 comment

Comments

@jag3773
Copy link
Contributor

jag3773 commented Apr 20, 2018

Story

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

Notes

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

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

  • Every unique language in catalog.json has a corresponding endpoint at /v3/languages/{identifier}.json, for example:
    • A list of English resources are found at /v3/languages/en.json
    • A list of Hindi resources are found at /v3/languages/hi.json
    • A list of Brazilian Portuguese resources are found at /v3/languages/pt-br.json
  • Documentation is updated at http://api-info.readthedocs.io/en/latest/door43.html .
@jag3773
Copy link
Contributor Author

jag3773 commented Oct 5, 2018

Much of the code for this should have already been written in #52 . Implementing this should be a matter of changing the key that we are pivoting on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants