updated the API generator to repect the new body.encoding spec field, fixed the check for required body, and added new API methods termventor and mtermvectors