add api command

add api command which can create a api application