restful api current best practice is to separate front and rear ends
restful api benefits:
- Lightweight, directly through http, no additional protocols, post / get / put / delete operations
- Resource-oriented, clear, self-explanatory
- Simple description data, through data communications typically do json or xml