add all function to api
add all function to api