Generation code by swagger metadata only for directly specified controllers

21 views
Skip to first unread message

Дмитрий Лукьянов

unread,
May 18, 2018, 12:22:00 PM5/18/18
to Swagger
Hi all,
I'm using swagger as tool for generation .net client for my asp.net web api service. After swagger configuration and deployment of my api service, I can open swagger metadata by this url : http://myappazurelink/v1/swagger. Then, I save my service metadata to .json file and generate .net code with client for my web api service. Everything works.

But now, I don't want to generate a client according to all controllers/methods which I have in my service anymore, because most of methods in my service will not be used in my current system. Because I cannot split service functionality on several parts (by some external rules), I want to generate web api client but only for the specified api controllers.
I expect that I will be able to generate client only for the directly specified controllers for example by this link : http://myappazurelink/v1/swagger/controller1.

Is there way for it?
Thanks.
Reply all
Reply to author
Forward
0 new messages