rename protean data directory to api
add status codes for success and error