swashbuckle - Swagger: support for optional routes -


i have route optional parameter:

    [route("{categoryid?}")]     public httpresponsemessage get(int? categoryid=null) 

however, when don't provide value categoryid call includes {categoryid?} in request itself...

http://myhost/api/%7bcategoryid%7d 

swagger has no support optional path parameters. if wish document way, you'd have create 2 separate paths - 1 without path parameter , 1 with.


Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -