DefaultApi when using Codegen

1,731 views
Skip to first unread message

lsa...@genexus.com

unread,
Jun 15, 2016, 10:53:47 AM6/15/16
to Swagger
Hi, when I generate the code from a yaml I always get a DefaultApi (or something like that depending on the language) even though I don´t have a Default element in my yaml.
Why is it generated? Can I avoid that?
Thanks! 

tony tam

unread,
Jun 15, 2016, 2:02:20 PM6/15/16
to swagger-sw...@googlegroups.com
Yes, add a tag to your operation:

tags:
- MyValue

and you’ll get a MyValueApi class.

--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted

Tony Tam

unread,
Jun 19, 2016, 12:22:40 PM6/19/16
to swagger-sw...@googlegroups.com
You will always get one or the other, but you should never get both.

On Jun 16, 2016, at 7:45 AM, lsa...@genexus.com wrote:

The thing is I do get a class for each one of my operations where the name is the one on the tag but apart from that I get an extra DefaultApi class.


El miércoles, 15 de junio de 2016, 15:02:20 (UTC-3), tony tam escribió:
Yes, add a tag to your operation:

tags:
- MyValue

and you’ll get a MyValueApi class.
On Jun 15, 2016, at 7:53 AM, lsa...@genexus.com wrote:

Hi, when I generate the code from a yaml I always get a DefaultApi (or something like that depending on the language) even though I don´t have a Default element in my yaml.
Why is it generated? Can I avoid that?
Thanks! 

--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages