code: def create_resource(self, path, transaction):
          
          t = self._parent.root.with_prefix(path)
          max_len = 0
          imax = None
          for i in t:
              if i == path:
                  # Resource already present
                  return self.edit_resource(transaction, path)
              elif len(i) > max_len:
                  imax = i
                  max_len = len(i)
  
          lp = path
          parent_resource = self._parent.root[imax]
          if parent_resource.allow_children:
                  return self.add_resource(transaction, parent_resource, lp)
          else:
              transaction.response.code = defines.Codes.METHOD_NOT_ALLOWED.number
              return transaction
docs: Render a POST request.
  
          :param path: the path of the request
          :param transaction: the transaction
          :return: the response