refactory api views
fix post api view
Merge branch 'master' of github.com:avelino/mining into bottle

* 'master' of github.com:avelino/mining:
  fix post api view
  refactory api views