Hi all,

While working on my little side-project (which actually puts together all the 
APIs for me for the first time) I noticed that currently the browse API has 
it’s shortcomings when it comes to handling arrays.

For example, the fully qualified address:
MAIN.hurz_STRUCT_ARRAY[2].hurz_DATE

Is returned as:
MAIN.hurz_STRUCT_ARRAY.hurz_DATE

Omitting the array portion.

Now I could think of multiple ways to handle this:


  1.  We return one item with the full dimensions: 
MAIN.hurz_STRUCT_ARRAY[1…3].hurz_DATE
  2.  We return one item per array item:

MAIN.hurz_STRUCT_ARRAY

MAIN.hurz_STRUCT_ARRAY[1].hurz_DATE

MAIN.hurz_STRUCT_ARRAY[2].hurz_DATE

MAIN.hurz_STRUCT_ARRAY[3].hurz_DATE



I would assume option 2 makes integration into other systems a LOT simpler, but 
extend the size of the response dramatically.



Considering that the browse functionality would only be used occasionally, I 
would lean more towards option 2 … mainly because this way users of the API 
don’t have to post-process the responses.

Hereby they can do less errors or misinterpret things.



What do you think?



If I don’t hear any feedback, I’ll start working on implementing option 2 this 
Friday.



Chris

Reply via email to