fixed API posts resource