Create a Post Model in api.js