swagger generator

293 views
Skip to first unread message

dips aws

unread,
Mar 31, 2017, 3:46:27 AM3/31/17
to Swagger
Hi, 

can the swagger online generator be used for yaml files as well ? I've the .yaml files locally on my system and so would below work?

curl -X POST -H "content-type:application/json" -d '{"swaggerUrl":"restapi.yaml"}' https://generator.swagger.io/api/gen/clients/python -k
{"code":1,"type":"error","message":"The swagger specification supplied was not valid"}

thanks !


Ron Ratovsky

unread,
Mar 31, 2017, 12:48:15 PM3/31/17
to swagger-sw...@googlegroups.com

Yup, JSON, YAML, doesn’t matter.

--
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.

dips aws

unread,
Mar 31, 2017, 1:18:29 PM3/31/17
to Swagger
is that the correct format to specify a local swaggerUrl ? It returns an error : {"code":1,"type":"error","message":"The swagger specification supplied was not valid"}

Also, wanted to know the meaning of packageUrl in Config Options for python. 

packageUrl
   python package URL.

What URL would this be?

Also for swagger editor, how/where do you specify the config.json paramters in the editor? like say for example packageName. If i don't specify packageName it would store all the methods in default_api.py.

Thanks. Appreciate your response.

dips

To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.

wing328

unread,
Apr 3, 2017, 1:15:01 AM4/3/17
to Swagger
dips,


dips aws於 2017年4月1日星期六 UTC+8上午1時18分29秒寫道:
Reply all
Reply to author
Forward
0 new messages