Collections of objects within object


#1

I can’t imagine that this has been discussed, but I guess I didn’t use the right search terms.

I have master and detail records.

I need to express in my RAML that the POST to master must contain an array of detail items.

I defined types Master and Detail, but when I got to the property “details”, I’m stumped. What do I put there?

I suspect that ResourceTypes are involved. No examples of what I need have been evident.

Thanks,
Ed Greenberg


#2

I got this to work!

My property for Detail is:

      Details: Detail[]

All it needed.
Perhaps this will help somebody else.

Thanks