create script for generating api using sami
update api