I ran into the exact same issue recently, Swagger loaded fine but no endpoints showed after publishing. Deleting the bin and obj folders before republishing fixed it for me. Seems like stale builds can cause this kind of weird behavior.
Give that a shot and let me know if it helps, happy to assist further if it doesn't.