def post(self):
self.set_header("<STR_LIT:Content-Type>", "<STR_LIT:application/json>")<EOL>key = uuid.uuid4().hex<EOL>metadata = json.loads(self.request.body.decode())<EOL>metadata["<STR_LIT>"] = key<EOL>self.database[key] = metadata<EOL>result = json.dumps({"<STR_LIT>": key})<EOL>self.write(result)<EOL>
Register a new model (models)