create directive map
add base api, verify input json by colander