create api.java  init,get,put
duplicate at server side
merge with zhuqihan
add duplication