Adding New Controllers Not Showing in UI
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2020
10:31 AM
01-06-2020
10:31 AM
Adding New Controllers Not Showing in UI
Currently, I have 4 controllers/categories on my UI ready and working.
However, I have 7 controllers in my folder. The expectation is to have them show up, along with the others, in the screenshot above. I can't figure out why they aren't showing. Even the JSON view isn't picking them up. I've built and rebuilt the project but to no avail. Any ideas?
Solved! Go to Solution.
Labels:
- Labels:
-
Swagger UI
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2020
12:54 PM
01-07-2020
12:54 PM
I believe the issue was that inside the controller, the name of the class didn't in with the word "Controller". It ended with DTO. I removed that and it showed up.
I went from
public class OrderControllerDTO : ApiController
to
public class OrderController : ApiController
