def _create_model_info_endpoint(self, path='<STR_LIT>'):
model = self.model<EOL>model_details = {}<EOL>for key, value in model.__dict__.items():<EOL><INDENT>model_details[key] = make_serializable(value)<EOL><DEDENT>class ModelInfo(Resource):<EOL><INDENT>@staticmethod<EOL>def get():<EOL><INDENT>return model_details<EOL><DEDENT><DEDENT>self.api.add_resource(ModelInfo, path)<EOL>self.app.logger.info('<STR_LIT>'.format(path))<EOL>self.app.logger.debug('<STR_LIT>'.format(path, model_details))<EOL>
Create an endpoint to serve info GET requests.