-
Notifications
You must be signed in to change notification settings - Fork 4
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
Duplication of resource data across APIs #130
Comments
It's been added to the latest version of the guide in [hyp-links], after discussion in #101
About:
I think this would be a good way to do this. This can fall under the "...unless the link target is guaranteed to remain very stable" exception of the above rule. On the general question about enrichment (inline, refdata, embedding, no enrichment at all, ...), we didn't come to a general guideline in #101 because there are many different use cases requiring different solutions. |
|
Updated the issue description to limit the scope to duplication of resource data across APIs (the linking issue has been addressed). IMO this is an architecture decision for which we might only recommend to take into account the intended use of the API (see 'considerations' in issue opener). CBSS' APIs probably fall under the "back-office / authentic source" category. |
In which measure should duplication of resources across APIs be avoided ?
Considerations:
Original issue opener
When using IDs that belong to another API, it is not recommended to include the links to the resources in an response (because the path can change, ...). I don't find this recommendation in the guide.
Aside from that, could we add some recommendations on when refData can be used? Or more in general aboud "enrichment", as I would call it?
Take for example Belgian addresses. An authentic source exists for those. Should API's just return the BeST ID? Or can they return the address in String format too (in all the available languages)?
Same question goes for CBE organizations. There's an authentic source, but the list is semi-static. Could they be in a refData?
A similar question for countries. If I just use the NIS-code or ISO-code in my response, can I link to the refData for the available countries with their translations and validation periods? Or should I refer in my documentation to the CountryServices instead, which serve as the authentic source of the NIS-codes? For ISO-codes, one could even refer to the official standard.
Then a slightly different case. Rule [prb-type] allows us to define problem types in /refData/problemTypes. Can these be generalized in a generic API for our organization, in a different location? How to refer to it?
The text was updated successfully, but these errors were encountered: