Mifosx 36

Hi Keith,

I have completed basic crud API services for Add/Update/Delete for “Code value”.
I have few questions related to coding and “Code Value” functionality.
1.	We are using url pattern "/codes/{codeId}/codevalues/{codevalueid}”  for updating “Code Value” do I need to validate for Code as well against the codeId which I get as part of URL?
Or do I simply use url of the pattern “/codevalues/{codevalueid}”  (code id is not passed in)
2.	Similarly for delete.
3.	How do you envision the “position” attribute is updated? I would think
a)	During create if no position is provided or position > total number of positions for a given code simply append the Code Value at the end with position as last position + 1.
b)	During Create/Update if position is provided then add +1 position for all existing Code Values at this position or higher.
c)	Delete would work similar to Create/Update with position decremented by 1.
d)	All positions will start with 1.