@web.asynchronous
    @gen.engine
    def post(self, *args, **kwargs):
        self.initialize_post()

        # Don't allow the post if the poster does not have permission
        if not self.has_create_permission():
            LOGGER.debug('Does not have write_permission')
            self.set_status(403, self.status_message('Creation Forbidden'))
            self.finish()
            return

        result = yield self.model.save()
        if result:
            self.set_status(201, self.status_message('Created'))
            self.add_headers()
            self.finish(self.model.as_dict())
        else:
            self.set_status(507, self.status_message('Creation Failed'))
            self.finish()
Handle creation of an item.
dataset/ETHPy150Open gmr/tinman/tinman/handlers/mixins.py/ModelAPIMixin.post