{
"spec": {
"swagger": "2.0",
"title": "Petstore Sample API",
...
}
}curl -X POST -H "accept:application/json" -d '{"swaggerUrl":"http://petstore.swagger.io/v2/swagger.json"}' http://generator.swagger.io/api/gen/clients/objcfor java:
curl -X POST -H "accept:application/json" -d '{"swaggerUrl":"http://petstore.swagger.io/v2/swagger.json"}' http://generator.swagger.io/api/gen/clients/javafor nodejs (a server:
curl -X POST -H "accept:application/json" -d '{"swaggerUrl":"http://petstore.swagger.io/v2/swagger.json"}' http://generator.swagger.io/api/gen/servers/nodejsThis works for any of the client or server languages supported (there's an API for that!)
If that isn't cool, tell me what is. Try it out, grab the source from swagger-codegen
Please send feedback, issues, etc. Happy 'gening.
curl -sX POST -H "accept:application/json" -d '{"swaggerUrl":"http://petstore.swagger.io/v2/swagger.json"}' "http://generator.swagger.io/api/gen/clients/java" | python -mjson.tool
{
"code": 415,
"message": "HTTP 415 Unsupported Media Type",
"type": "unknown"
}
--
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.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
--
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.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
which kinda looks nothing like this http://generator.swagger.io/ :)
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.