code: def create_info_endpoint(self, name, data):
          
          # make sure data is serializable
          data = make_serializable(data)
  
          # create generic restful resource to serve static JSON data
          class InfoBase(Resource):
              @staticmethod
              def get():
                  return data
  
          def info_factory(name):
              """Return an Info derivative resource."""
              class NewClass(InfoBase):
                  pass
              NewClass.__name__ = "{}_{}".format(name, InfoBase.__name__)
              return NewClass
  
          path = '/info/{}'.format(name)
          self.api.add_resource(info_factory(name), path)
          logger.info('Regestered informational resource to {} (available via GET)'.format(path))
          logger.debug('Endpoint {} will now serve the following static data:\n{}'.format(path, data))
docs: Create an endpoint to serve info GET requests.