use rails-apis for query api
use rails-apis for query api