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

API userdocs #2190

Open
mikerkelly opened this issue Dec 2, 2024 · 1 comment
Open

API userdocs #2190

mikerkelly opened this issue Dec 2, 2024 · 1 comment
Labels
deck-scrubbing Tech debt or other between-initiative tidy-up work documentation Improvements or additions to documentation

Comments

@mikerkelly
Copy link
Contributor

mikerkelly commented Dec 2, 2024

OpenCodelists has a RESTful API for interacting with codelists and related resources. Most clients are OpenSAFELY CLI or services, but we are aware of at least one tool a researcher created that uses the API (here).

Probably userdocumentation of the API should provide and overview of what the API is and list each API and its parameters, inputs and outputs and include usage examples.

There's a risk that the docs get out of sync with the code. Ideally parts of this would be generated automatically from the source, perhaps with a tool like pydoc-markdown, mkdocstrings, or sphinx-autoapi.

Part of the Open nature of the site should be that its public API is well-documented. This can assist more potential users in benefiting from the site by integrating it into their tooling and scripting. This also fits with exploring how OpenCodelists might become a product with its own identity somewhat distinct from OpenSAFELY.

@mikerkelly mikerkelly added the documentation Improvements or additions to documentation label Dec 2, 2024
@iaindillingham
Copy link
Member

Thanks for writing this up, @mikerkelly. From the planning meeting today, I think you created it having spoken to Milan at the OpenSAFELY Symposium. As with #2191, it's not quite urgent or important enough to be addressed during the OpenCodelists initiative, but we can return to it during deck-scrubbing.

Before we do, we should consider whether the OpenCodelists API is public in the sense of "we expect it to be used by clients that weren't created by the tech team".

@iaindillingham iaindillingham added the deck-scrubbing Tech debt or other between-initiative tidy-up work label Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deck-scrubbing Tech debt or other between-initiative tidy-up work documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants