code: def handle_post(self, config: NamePostConfig):
      self.names.append(config.name)
      return f"The name {config} was registered"
  
file_path: pytorch-lightning/docs/source-app/workflows/build_rest_api/post_example_pydantic.py
imports: from models import NamePostConfig
  from lightning.app import LightningFlow, LightningApp
  from lightning.app.api import Post
label_desc: Use image node_id 3 for calling the Flow obj's underlying member method code with example usage: obj.handle_post(config) and returns: str, config, str