We don't have this kind of demo.
PCIe EP is only a framework, it cannot initiate a request, allocate buffers, to set up PCIe transmission environment.
RC is always request initiator in the system.
You could refer to drivers/pci/endpoint/functions/pci-epf-test.c for PCI Endpoint test driver.