Recommendation20 - updates following issue #9#14
Recommendation20 - updates following issue #9#14rgenoulaz wants to merge 2 commits intoedi3:developfrom
Conversation
Updated accordoing to elements agreed in usse edi3#9: - Change the name of the resource to make it a plural : unitsOfMeasure. - Update all parameters to camelCase - Change the name of one parameter that had a slash in the middle, Update description to contain the old name as information. - Add the descriptions based on the documentation from UN/CEFACT - Remove Status parameter/property - Change commonCode parameter type from query to path
|
@rgenoulaz I was expecting keeping the different paths means keeping the different resources. So GET quantityCategory/{commonCode} will return a quantity category object and GET unitsOfMeasure/{commonCode} will return a unit of measure object. These two contexts might share the common properties, but I though they would be defined separately. @cmsdroff what are your thoughts on this? |
|
@kshychko oh ok you want to keep : But you want the two first ones to return a QuantityCategory object, event if it's a duplicate of unitsOfMeasure ? If so, then why not ;) |
|
@rgenoulaz , I think they should be different objects, as they represent data from different data sources, that's my only concern. @cmsdroff , what do you think on this? |
|
@rgenoulaz agree with @kshychko, at this point we should keep the quantityCategory object, looking through the background of this the fields are described once in the pdf, but each annex only refers to the fields that it needs (most overlap though) and they are in different orders, which makes little sense either. International trade uses the Annex II/III only, the other must be for scientific usage, so should treat as separate objects as this is what is happening in excel today. Suggest we add the quantityCategory object back in, merge the PR and close this ticket @rgenoulaz if you could paste it back in, I'll merge? Maybe one for the code group in UN/CEFACT to consider is could they merge the dataset.. but outside of scope for what we are working, reality with this type of dataset is changes would be really occasional! |
adding back QuantityCategory per edi3#14 (comment) also re-using some parameters and responses definitions
|
@rgenoulaz I made the changes in your PR, hope you don't mind. |
FIrst step : Updated according to elements agreed in issue #9: