add state to post factory
add api posts#index
add api posts#show
Merge branch 'feature/jbuilder' into develop