api urils
preparing templates for resources
using parentDocumentResource[fieldName] instead fieldValue, to solve JSON primitive problems
cleaning templates sent, and sending adiotional data