...
# | Description | Details | Decisions | |
---|---|---|---|---|
1 | Should the java interface take in one (JSON) objects (like REST interface) or a few individual fields in a signature? |
|
| |
2 | Input streams and/or files to take in large amounts of data like yang models? |
| 03/11/12 Team meeting Niamh, Toine, Rishi, Aditya, Bruno, Phillipe We have decided to use (buffered) input streams. | |
3 | API uses (generated) ID's or customer provided names? If names are used should we return IDs at all? | 03/11/12 Team meeting notes - Niamh, Toine, Rishi, Aditya, Bruno, Phillipe
Cons:
Other considerations:
| 04/11/12 Team meeting notes - Niamh, Toine, Rishi, Tony We should not expose internal DB ID for dataspace, module set, module, anchor or fragment. DB ids should be fully encapsulated. Exposure of DB ids to clients limits freedom in the future. We do not want to expose them for the following reasons:
Database technology uplift/swap out will not guarantee that ids will be immutable. Any client that uses DB ids would be broken. I can see this being quite important for ONAP trails going to commercially supported ONAP deployments.
We would like to reserve the right to change database ID's. You eliminate the option that will shuffle the ID's without impacting the client.
If there is a fragment that has restricted properties that can only be set at creation. This fragment will be identified by an xpath and internally by a DB id. An update of this (restricted) attribute will require a delete/create – this will change the DB id, but not the xpath. If a client had cached (or otherwise stored) the DB id, then their use case would be broken
| |
4 | Should a user be able to delete a dataspace, module ( (of the same revision), module set? |
| 04/11/12 Team meeting notes - Niamh, Toine, Rishi, Tony
| |
5 | Should a user be able to update/override (create again) dataspace, module (of the same revision), module set? |
| 04/11/12 Team meeting notes - Niamh, Toine, Rishi, Tony For now we are not going to be idempotent but we may consider it in the future. Need to be document clearly as part of Java API proposal (i.e in this wiki!) | |
6 | Should we have one method with any type of xpath to handle both direct gets with a fully qualified xpaths (pointing to one unique node) and any type of more advanced xpath expression/querys (pointing to multiple nodes)? Theoretically this is possible but if might be confusing for the end user | alternative we could have more specialized metods like getByXpath(String qualifiedXPath) QueryByXPath(String xpathExpression) And we could still consider an xpath builder pattern (like a query builder) XPathBuilder.withChildOfType() XapthBuilder.withAttributeValue() | ||
7 | How should we specify which attributes we want when querying with xpaths? | It often might be necessary to limit the number of attributes returned by queries. | ||
8 | Will we have separate methods to validate our modules or data? Alternatively validate on submitting of data/modules (and throw validation exception if needed) | |||
9 | The parser has detailed exception classes instead of one exception with different messages, we need to ask ourselves if we want to have a similar pattern | See section on error handling. | 10 |
Error Handling
Our options are:
...