How To Design Restful Api