code: def _create_model_info_endpoint(self, path='/info/model'):
          
          model = self.model
  
          # parse model details
          model_details = {}
          for key, value in model.__dict__.items():
              model_details[key] = make_serializable(value)
  
          # create generic restful resource to serve model information as JSON
          class ModelInfo(Resource):
              @staticmethod
              def get():
                  return model_details
  
          self.api.add_resource(ModelInfo, path)
          self.app.logger.info('Regestered informational resource to {} (available via GET)'.format(path))
          self.app.logger.debug('Endpoint {} will now serve the following static data:\n{}'.format(path, model_details))
docs: Create an endpoint to serve info GET requests.