opensafely-core / opencodelists

OpenCodelists is an open platform for creating and sharing codelists of clinical terms and drugs.
https://www.opencodelists.org
Other
31 stars 9 forks source link

Add codelist metadata to API response #1993

Closed iaindillingham closed 1 month ago

iaindillingham commented 1 month ago

Add codelist metadata to API response

This adds description, methodology, and references properties (codelist metadata) to a response, following a request with the appropriate query parameters. The following example takes roughly 4s to execute locally.

http://localhost:7000/api/v1/codelist/?description&methodology&references

Closes #1991

Acceptance criteria:

Closes #1991

iaindillingham commented 1 month ago

Thank you for your comment, @rebkwok. I've added methodology to the response, and controlled each with a separate query parameter. How does the PR look to you, now?

rebkwok commented 1 month ago

LGTM :)