API to insert data to entity with many-to-may association

0
I have 2 entities, Document and Tag. 1 document can be associated with multiple tags and vice-versa. I need to publish an API so that API consumer can insert a new document record and its associated tags. JSON structure in API body is something like this: {   "DocumentName":"PDR673478",   "Tags":[      {         "Tag":"Tag1"      },      {         "Tag":"Tag2"      }   ]} Can you please help me out with import mapping and REST Service operation details.  I am ok using many-to-many association or having an intermediate entity.
asked
0 answers