forked from loafle/openapi-generator-original
* Output swagger models. Fix route verbs and formatting * Remove backup files * Make postProcessOperations consistent with go client
34 lines
802 B
Go
34 lines
802 B
Go
/*
|
|
* Swagger Petstore
|
|
*
|
|
* This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
|
|
*
|
|
* API version: 1.0.0
|
|
* Contact: apiteam@swagger.io
|
|
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
|
|
*/
|
|
|
|
package main
|
|
|
|
import (
|
|
"log"
|
|
"net/http"
|
|
|
|
// WARNING!
|
|
// Change this to a fully-qualified import path
|
|
// once you place this file into your project.
|
|
// For example,
|
|
//
|
|
// sw "github.com/myname/myrepo/go"
|
|
//
|
|
sw "./go"
|
|
)
|
|
|
|
func main() {
|
|
log.Printf("Server started")
|
|
|
|
router := sw.NewRouter()
|
|
|
|
log.Fatal(http.ListenAndServe(":8080", router))
|
|
}
|