improve api impl
manage 'validation required' branch parameter
Merge pull request #10 from gsaunier/master

bugfix