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

Document a set of design principles for the API and Data Model #44

Open
jackdos opened this issue Mar 11, 2022 · 0 comments
Open

Document a set of design principles for the API and Data Model #44

jackdos opened this issue Mar 11, 2022 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@jackdos
Copy link
Collaborator

jackdos commented Mar 11, 2022

In order to assess proposed changes to the API and data model, it would be nice to have a set of clearly articulated principles that we are trying to achieve. Some principles we might want to adopt could be mutually exclusive, so we should also use this as a way to say what we're trying to achieve, e.g.

Each api response object should contain the minimum information that is necessary for a consumer to be able to determine the full context of the object

might be seen as fundamentally conflicting with something like

Consumers should receive the full context of an object with the minimum number of API calls

The conflict comes from whether you make reference to other related objects by including just a reference, (minimising the response but requiring the consumer to make follow up api calls) or whether you include nest the full related object (minimising the number of API calls, but bloating the response).

@jackdos jackdos added the documentation Improvements or additions to documentation label Mar 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant