forked from loafle/openapi-generator-original
* Output swagger models. Fix route verbs and formatting * Remove backup files * Make postProcessOperations consistent with go client
This commit is contained in:
21
samples/server/petstore/go-api-server/go/api_response.go
Normal file
21
samples/server/petstore/go-api-server/go/api_response.go
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* 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 petstoreserver
|
||||
|
||||
// Describes the result of uploading an image resource
|
||||
type ApiResponse struct {
|
||||
|
||||
Code int32 `json:"code,omitempty"`
|
||||
|
||||
Type_ string `json:"type,omitempty"`
|
||||
|
||||
Message string `json:"message,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user