diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractGoCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractGoCodegen.java index 56ea40ef9aba..4392dcff5df3 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractGoCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractGoCodegen.java @@ -361,10 +361,11 @@ public Map postProcessOperationsWithModels(Map o iterator.remove(); } - // this will only import "fmt" if there are items in pathParams + // this will only import "fmt" and "strings" if there are items in pathParams for (CodegenOperation operation : operations) { if (operation.pathParams != null && operation.pathParams.size() > 0) { imports.add(createMapping("import", "fmt")); + imports.add(createMapping("import", "strings")); break; //just need to import once } } diff --git a/modules/openapi-generator/src/main/resources/go/api.mustache b/modules/openapi-generator/src/main/resources/go/api.mustache index fe72ace87e75..1a6a8f043431 100644 --- a/modules/openapi-generator/src/main/resources/go/api.mustache +++ b/modules/openapi-generator/src/main/resources/go/api.mustache @@ -7,7 +7,6 @@ import ( "io/ioutil" "net/http" "net/url" - "strings" {{#imports}} "{{import}}" {{/imports}} ) @@ -66,7 +65,7 @@ type {{{nickname}}}Opts struct { {{/hasOptionalParams}} func (a *{{{classname}}}Service) {{{nickname}}}(ctx context.Context{{#hasParams}}, {{/hasParams}}{{#allParams}}{{#required}}{{paramName}} {{{dataType}}}{{#hasMore}}, {{/hasMore}}{{/required}}{{/allParams}}{{#hasOptionalParams}}localVarOptionals *{{{nickname}}}Opts{{/hasOptionalParams}}) ({{#returnType}}{{{returnType}}}, {{/returnType}}*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("{{httpMethod}}") + localVarHttpMethod = http.Method{{httpMethod}} localVarPostBody interface{} localVarFormFileName string localVarFileName string diff --git a/samples/client/petstore/go/go-petstore-withXml/.openapi-generator/VERSION b/samples/client/petstore/go/go-petstore-withXml/.openapi-generator/VERSION index afa636560641..06b5019af3f4 100644 --- a/samples/client/petstore/go/go-petstore-withXml/.openapi-generator/VERSION +++ b/samples/client/petstore/go/go-petstore-withXml/.openapi-generator/VERSION @@ -1 +1 @@ -4.0.0-SNAPSHOT \ No newline at end of file +4.0.1-SNAPSHOT \ No newline at end of file diff --git a/samples/client/petstore/go/go-petstore-withXml/README.md b/samples/client/petstore/go/go-petstore-withXml/README.md index b063933c1d5d..a0aa0040ef3c 100644 --- a/samples/client/petstore/go/go-petstore-withXml/README.md +++ b/samples/client/petstore/go/go-petstore-withXml/README.md @@ -12,7 +12,8 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat ## Installation Install the following dependencies: -``` + +```shell go get github.com/stretchr/testify/assert go get golang.org/x/oauth2 go get golang.org/x/net/context @@ -20,6 +21,7 @@ go get github.com/antihax/optional ``` Put the package under your project folder and add the following in import: + ```golang import "./petstore" ``` @@ -70,7 +72,14 @@ Class | Method | HTTP request | Description ## Documentation For Models + - [AdditionalPropertiesAnyType](docs/AdditionalPropertiesAnyType.md) + - [AdditionalPropertiesArray](docs/AdditionalPropertiesArray.md) + - [AdditionalPropertiesBoolean](docs/AdditionalPropertiesBoolean.md) - [AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md) + - [AdditionalPropertiesInteger](docs/AdditionalPropertiesInteger.md) + - [AdditionalPropertiesNumber](docs/AdditionalPropertiesNumber.md) + - [AdditionalPropertiesObject](docs/AdditionalPropertiesObject.md) + - [AdditionalPropertiesString](docs/AdditionalPropertiesString.md) - [Animal](docs/Animal.md) - [ApiResponse](docs/ApiResponse.md) - [ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md) @@ -78,10 +87,12 @@ Class | Method | HTTP request | Description - [ArrayTest](docs/ArrayTest.md) - [Capitalization](docs/Capitalization.md) - [Cat](docs/Cat.md) + - [CatAllOf](docs/CatAllOf.md) - [Category](docs/Category.md) - [ClassModel](docs/ClassModel.md) - [Client](docs/Client.md) - [Dog](docs/Dog.md) + - [DogAllOf](docs/DogAllOf.md) - [EnumArrays](docs/EnumArrays.md) - [EnumClass](docs/EnumClass.md) - [EnumTest](docs/EnumTest.md) @@ -111,40 +122,56 @@ Class | Method | HTTP request | Description ## Documentation For Authorization + + ## api_key -- **Type**: API key + +- **Type**: API key Example + ```golang auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{ - Key: "APIKEY", - Prefix: "Bearer", // Omit if not necessary. + Key: "APIKEY", + Prefix: "Bearer", // Omit if not necessary. }) r, err := client.Service.Operation(auth, args) ``` + + ## api_key_query -- **Type**: API key + +- **Type**: API key Example + ```golang auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{ - Key: "APIKEY", - Prefix: "Bearer", // Omit if not necessary. + Key: "APIKEY", + Prefix: "Bearer", // Omit if not necessary. }) r, err := client.Service.Operation(auth, args) ``` + + ## http_basic_test + - **Type**: HTTP basic authentication Example + ```golang auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ - UserName: "username", - Password: "password", + UserName: "username", + Password: "password", }) r, err := client.Service.Operation(auth, args) ``` + + ## petstore_auth + + - **Type**: OAuth - **Flow**: implicit - **Authorization URL**: http://petstore.swagger.io/api/oauth/dialog @@ -153,12 +180,14 @@ r, err := client.Service.Operation(auth, args) - **read:pets**: read your pets Example + ```golang auth := context.WithValue(context.Background(), sw.ContextAccessToken, "ACCESSTOKENSTRING") r, err := client.Service.Operation(auth, args) ``` Or via OAuth2 module to automatically refresh tokens and perform user authentication. + ```golang import "golang.org/x/oauth2" @@ -169,6 +198,7 @@ auth := context.WithValue(oauth2.NoContext, sw.ContextOAuth2, tokenSource) r, err := client.Service.Operation(auth, args) ``` + ## Author diff --git a/samples/client/petstore/go/go-petstore-withXml/api/openapi.yaml b/samples/client/petstore/go/go-petstore-withXml/api/openapi.yaml index 7212ef07c279..5a020a1d0ab8 100644 --- a/samples/client/petstore/go/go-petstore-withXml/api/openapi.yaml +++ b/samples/client/petstore/go/go-petstore-withXml/api/openapi.yaml @@ -32,6 +32,9 @@ paths: description: Pet object that needs to be added to the store required: true responses: + 200: + content: {} + description: successful operation 405: content: {} description: Invalid input @@ -56,6 +59,9 @@ paths: description: Pet object that needs to be added to the store required: true responses: + 200: + content: {} + description: successful operation 400: content: {} description: Invalid ID supplied @@ -120,7 +126,8 @@ paths: /pet/findByTags: get: deprecated: true - description: Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. + description: Multiple tags can be provided with comma separated strings. Use + tag1, tag2, tag3 for testing. operationId: findPetsByTags parameters: - description: Tags to filter by @@ -173,6 +180,9 @@ paths: format: int64 type: integer responses: + 200: + content: {} + description: successful operation 400: content: {} description: Invalid pet value @@ -332,7 +342,8 @@ paths: x-codegen-request-body-name: body /store/order/{order_id}: delete: - description: For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors + description: For valid response try integer IDs with value < 1000. Anything + above 1000 or nonintegers will generate API errors operationId: deleteOrder parameters: - description: ID of the order that needs to be deleted @@ -352,7 +363,8 @@ paths: tags: - store get: - description: For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions + description: For valid response try integer IDs with value <= 5 or > 10. Other + values will generated exceptions operationId: getOrderById parameters: - description: ID of pet that needs to be fetched @@ -1072,7 +1084,8 @@ paths: x-codegen-request-body-name: body /fake/body-with-file-schema: put: - description: For this test, the body for this request much reference a schema named `File`. + description: For this test, the body for this request much reference a schema + named `File`. operationId: testBodyWithFileSchema requestBody: content: @@ -1350,17 +1363,11 @@ components: Dog: allOf: - $ref: '#/components/schemas/Animal' - - properties: - breed: - type: string - type: object + - $ref: '#/components/schemas/Dog_allOf' Cat: allOf: - $ref: '#/components/schemas/Animal' - - properties: - declawed: - type: boolean - type: object + - $ref: '#/components/schemas/Cat_allOf' Animal: discriminator: propertyName: className @@ -2009,6 +2016,14 @@ components: xml: namespace: http://a.com/schema prefix: pre + Dog_allOf: + properties: + breed: + type: string + Cat_allOf: + properties: + declawed: + type: boolean securitySchemes: petstore_auth: flows: @@ -2028,4 +2043,4 @@ components: type: apiKey http_basic_test: scheme: basic - type: http \ No newline at end of file + type: http diff --git a/samples/client/petstore/go/go-petstore-withXml/api_another_fake.go b/samples/client/petstore/go/go-petstore-withXml/api_another_fake.go index 7396effd6414..c6d1c2625564 100644 --- a/samples/client/petstore/go/go-petstore-withXml/api_another_fake.go +++ b/samples/client/petstore/go/go-petstore-withXml/api_another_fake.go @@ -15,7 +15,6 @@ import ( "io/ioutil" "net/http" "net/url" - "strings" ) // Linger please @@ -34,7 +33,7 @@ To test special tags and operation ID starting with number */ func (a *AnotherFakeApiService) Call123TestSpecialTags(ctx context.Context, body Client) (Client, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Patch") + localVarHttpMethod = http.MethodPatch localVarPostBody interface{} localVarFormFileName string localVarFileName string diff --git a/samples/client/petstore/go/go-petstore-withXml/api_fake.go b/samples/client/petstore/go/go-petstore-withXml/api_fake.go index dcc48da69379..b943fc4be884 100644 --- a/samples/client/petstore/go/go-petstore-withXml/api_fake.go +++ b/samples/client/petstore/go/go-petstore-withXml/api_fake.go @@ -15,7 +15,6 @@ import ( "io/ioutil" "net/http" "net/url" - "strings" "github.com/antihax/optional" "os" ) @@ -35,7 +34,7 @@ this route creates an XmlItem */ func (a *FakeApiService) CreateXmlItem(ctx context.Context, xmlItem XmlItem) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") + localVarHttpMethod = http.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -110,7 +109,7 @@ type FakeOuterBooleanSerializeOpts struct { func (a *FakeApiService) FakeOuterBooleanSerialize(ctx context.Context, localVarOptionals *FakeOuterBooleanSerializeOpts) (bool, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") + localVarHttpMethod = http.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -208,7 +207,7 @@ type FakeOuterCompositeSerializeOpts struct { func (a *FakeApiService) FakeOuterCompositeSerialize(ctx context.Context, localVarOptionals *FakeOuterCompositeSerializeOpts) (OuterComposite, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") + localVarHttpMethod = http.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -310,7 +309,7 @@ type FakeOuterNumberSerializeOpts struct { func (a *FakeApiService) FakeOuterNumberSerialize(ctx context.Context, localVarOptionals *FakeOuterNumberSerializeOpts) (float32, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") + localVarHttpMethod = http.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -408,7 +407,7 @@ type FakeOuterStringSerializeOpts struct { func (a *FakeApiService) FakeOuterStringSerialize(ctx context.Context, localVarOptionals *FakeOuterStringSerializeOpts) (string, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") + localVarHttpMethod = http.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -499,7 +498,7 @@ For this test, the body for this request much reference a schema named `Fil */ func (a *FakeApiService) TestBodyWithFileSchema(ctx context.Context, body FileSchemaTestClass) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Put") + localVarHttpMethod = http.MethodPut localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -567,7 +566,7 @@ FakeApiService */ func (a *FakeApiService) TestBodyWithQueryParams(ctx context.Context, query string, body User) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Put") + localVarHttpMethod = http.MethodPut localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -637,7 +636,7 @@ To test \"client\" model */ func (a *FakeApiService) TestClientModel(ctx context.Context, body Client) (Client, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Patch") + localVarHttpMethod = http.MethodPatch localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -753,7 +752,7 @@ type TestEndpointParametersOpts struct { func (a *FakeApiService) TestEndpointParameters(ctx context.Context, number float32, double float64, patternWithoutDelimiter string, byte_ string, localVarOptionals *TestEndpointParametersOpts) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") + localVarHttpMethod = http.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -897,7 +896,7 @@ type TestEnumParametersOpts struct { func (a *FakeApiService) TestEnumParameters(ctx context.Context, localVarOptionals *TestEnumParametersOpts) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") + localVarHttpMethod = http.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -1000,7 +999,7 @@ type TestGroupParametersOpts struct { func (a *FakeApiService) TestGroupParameters(ctx context.Context, requiredStringGroup int32, requiredBooleanGroup bool, requiredInt64Group int64, localVarOptionals *TestGroupParametersOpts) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Delete") + localVarHttpMethod = http.MethodDelete localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -1077,7 +1076,7 @@ FakeApiService test inline additionalProperties */ func (a *FakeApiService) TestInlineAdditionalProperties(ctx context.Context, param map[string]string) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") + localVarHttpMethod = http.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -1145,7 +1144,7 @@ FakeApiService test json serialization of form data */ func (a *FakeApiService) TestJsonFormData(ctx context.Context, param string, param2 string) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") + localVarHttpMethod = http.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string diff --git a/samples/client/petstore/go/go-petstore-withXml/api_fake_classname_tags123.go b/samples/client/petstore/go/go-petstore-withXml/api_fake_classname_tags123.go index 82217020bb27..dd7a0babfed8 100644 --- a/samples/client/petstore/go/go-petstore-withXml/api_fake_classname_tags123.go +++ b/samples/client/petstore/go/go-petstore-withXml/api_fake_classname_tags123.go @@ -15,7 +15,6 @@ import ( "io/ioutil" "net/http" "net/url" - "strings" ) // Linger please @@ -34,7 +33,7 @@ To test class name in snake case */ func (a *FakeClassnameTags123ApiService) TestClassname(ctx context.Context, body Client) (Client, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Patch") + localVarHttpMethod = http.MethodPatch localVarPostBody interface{} localVarFormFileName string localVarFileName string diff --git a/samples/client/petstore/go/go-petstore-withXml/api_pet.go b/samples/client/petstore/go/go-petstore-withXml/api_pet.go index 7f09af3a7b16..6b159c5001a8 100644 --- a/samples/client/petstore/go/go-petstore-withXml/api_pet.go +++ b/samples/client/petstore/go/go-petstore-withXml/api_pet.go @@ -15,8 +15,8 @@ import ( "io/ioutil" "net/http" "net/url" - "strings" "fmt" + "strings" "github.com/antihax/optional" "os" ) @@ -35,7 +35,7 @@ PetApiService Add a new pet to the store */ func (a *PetApiService) AddPet(ctx context.Context, body Pet) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") + localVarHttpMethod = http.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -109,7 +109,7 @@ type DeletePetOpts struct { func (a *PetApiService) DeletePet(ctx context.Context, petId int64, localVarOptionals *DeletePetOpts) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Delete") + localVarHttpMethod = http.MethodDelete localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -180,7 +180,7 @@ Multiple status values can be provided with comma separated strings */ func (a *PetApiService) FindPetsByStatus(ctx context.Context, status []string) ([]Pet, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") + localVarHttpMethod = http.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -268,7 +268,7 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 */ func (a *PetApiService) FindPetsByTags(ctx context.Context, tags []string) ([]Pet, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") + localVarHttpMethod = http.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -356,7 +356,7 @@ Returns a single pet */ func (a *PetApiService) GetPetById(ctx context.Context, petId int64) (Pet, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") + localVarHttpMethod = http.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -454,7 +454,7 @@ PetApiService Update an existing pet */ func (a *PetApiService) UpdatePet(ctx context.Context, body Pet) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Put") + localVarHttpMethod = http.MethodPut localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -530,7 +530,7 @@ type UpdatePetWithFormOpts struct { func (a *PetApiService) UpdatePetWithForm(ctx context.Context, petId int64, localVarOptionals *UpdatePetWithFormOpts) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") + localVarHttpMethod = http.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -612,7 +612,7 @@ type UploadFileOpts struct { func (a *PetApiService) UploadFile(ctx context.Context, petId int64, localVarOptionals *UploadFileOpts) (ApiResponse, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") + localVarHttpMethod = http.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -725,7 +725,7 @@ type UploadFileWithRequiredFileOpts struct { func (a *PetApiService) UploadFileWithRequiredFile(ctx context.Context, petId int64, requiredFile *os.File, localVarOptionals *UploadFileWithRequiredFileOpts) (ApiResponse, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") + localVarHttpMethod = http.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string diff --git a/samples/client/petstore/go/go-petstore-withXml/api_store.go b/samples/client/petstore/go/go-petstore-withXml/api_store.go index 50ca891a2574..ae780c2998ed 100644 --- a/samples/client/petstore/go/go-petstore-withXml/api_store.go +++ b/samples/client/petstore/go/go-petstore-withXml/api_store.go @@ -15,8 +15,8 @@ import ( "io/ioutil" "net/http" "net/url" - "strings" "fmt" + "strings" ) // Linger please @@ -34,7 +34,7 @@ For valid response try integer IDs with value < 1000. Anything above 1000 or */ func (a *StoreApiService) DeleteOrder(ctx context.Context, orderId string) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Delete") + localVarHttpMethod = http.MethodDelete localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -101,7 +101,7 @@ Returns a map of status codes to quantities */ func (a *StoreApiService) GetInventory(ctx context.Context) (map[string]int32, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") + localVarHttpMethod = http.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -200,7 +200,7 @@ For valid response try integer IDs with value <= 5 or > 10. Other val */ func (a *StoreApiService) GetOrderById(ctx context.Context, orderId int64) (Order, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") + localVarHttpMethod = http.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -293,7 +293,7 @@ StoreApiService Place an order for a pet */ func (a *StoreApiService) PlaceOrder(ctx context.Context, body Order) (Order, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") + localVarHttpMethod = http.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string diff --git a/samples/client/petstore/go/go-petstore-withXml/api_user.go b/samples/client/petstore/go/go-petstore-withXml/api_user.go index 29be65f0856d..be573458c73f 100644 --- a/samples/client/petstore/go/go-petstore-withXml/api_user.go +++ b/samples/client/petstore/go/go-petstore-withXml/api_user.go @@ -15,8 +15,8 @@ import ( "io/ioutil" "net/http" "net/url" - "strings" "fmt" + "strings" ) // Linger please @@ -34,7 +34,7 @@ This can only be done by the logged in user. */ func (a *UserApiService) CreateUser(ctx context.Context, body User) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") + localVarHttpMethod = http.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -101,7 +101,7 @@ UserApiService Creates list of users with given input array */ func (a *UserApiService) CreateUsersWithArrayInput(ctx context.Context, body []User) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") + localVarHttpMethod = http.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -168,7 +168,7 @@ UserApiService Creates list of users with given input array */ func (a *UserApiService) CreateUsersWithListInput(ctx context.Context, body []User) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") + localVarHttpMethod = http.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -236,7 +236,7 @@ This can only be done by the logged in user. */ func (a *UserApiService) DeleteUser(ctx context.Context, username string) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Delete") + localVarHttpMethod = http.MethodDelete localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -303,7 +303,7 @@ UserApiService Get user by user name */ func (a *UserApiService) GetUserByName(ctx context.Context, username string) (User, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") + localVarHttpMethod = http.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -391,7 +391,7 @@ UserApiService Logs user into the system */ func (a *UserApiService) LoginUser(ctx context.Context, username string, password string) (string, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") + localVarHttpMethod = http.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -477,7 +477,7 @@ UserApiService Logs out current logged in user session */ func (a *UserApiService) LogoutUser(ctx context.Context) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") + localVarHttpMethod = http.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -544,7 +544,7 @@ This can only be done by the logged in user. */ func (a *UserApiService) UpdateUser(ctx context.Context, username string, body User) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Put") + localVarHttpMethod = http.MethodPut localVarPostBody interface{} localVarFormFileName string localVarFileName string diff --git a/samples/client/petstore/go/go-petstore-withXml/client.go b/samples/client/petstore/go/go-petstore-withXml/client.go index 87152ec107b5..973bad121eda 100644 --- a/samples/client/petstore/go/go-petstore-withXml/client.go +++ b/samples/client/petstore/go/go-petstore-withXml/client.go @@ -230,10 +230,11 @@ func (c *APIClient) prepareRequest( if err != nil { return nil, err } - // Set the Boundary in the Content-Type - headerParams["Content-Type"] = w.FormDataContentType() } + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + // Set Content-Length headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) w.Close() @@ -329,6 +330,10 @@ func (c *APIClient) prepareRequest( } func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } if xmlCheck.MatchString(contentType) { if err = xml.Unmarshal(b, v); err != nil { return err diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/AdditionalPropertiesAnyType.md b/samples/client/petstore/go/go-petstore-withXml/docs/AdditionalPropertiesAnyType.md new file mode 100644 index 000000000000..eadec3142ce8 --- /dev/null +++ b/samples/client/petstore/go/go-petstore-withXml/docs/AdditionalPropertiesAnyType.md @@ -0,0 +1,11 @@ +# AdditionalPropertiesAnyType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/AdditionalPropertiesArray.md b/samples/client/petstore/go/go-petstore-withXml/docs/AdditionalPropertiesArray.md new file mode 100644 index 000000000000..0c37598aeb2c --- /dev/null +++ b/samples/client/petstore/go/go-petstore-withXml/docs/AdditionalPropertiesArray.md @@ -0,0 +1,11 @@ +# AdditionalPropertiesArray + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/AdditionalPropertiesBoolean.md b/samples/client/petstore/go/go-petstore-withXml/docs/AdditionalPropertiesBoolean.md new file mode 100644 index 000000000000..7190fe8429b8 --- /dev/null +++ b/samples/client/petstore/go/go-petstore-withXml/docs/AdditionalPropertiesBoolean.md @@ -0,0 +1,11 @@ +# AdditionalPropertiesBoolean + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/AdditionalPropertiesClass.md b/samples/client/petstore/go/go-petstore-withXml/docs/AdditionalPropertiesClass.md index 0c8ba7085b3f..877a5d45a316 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/AdditionalPropertiesClass.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/AdditionalPropertiesClass.md @@ -1,10 +1,20 @@ # AdditionalPropertiesClass ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**MapProperty** | **map[string]string** | | [optional] -**MapOfMapProperty** | [**map[string]map[string]string**](map.md) | | [optional] +**MapString** | **map[string]string** | | [optional] +**MapNumber** | **map[string]float32** | | [optional] +**MapInteger** | **map[string]int32** | | [optional] +**MapBoolean** | **map[string]bool** | | [optional] +**MapArrayInteger** | [**map[string][]int32**](array.md) | | [optional] +**MapArrayAnytype** | [**map[string][]map[string]interface{}**](array.md) | | [optional] +**MapMapString** | [**map[string]map[string]string**](map.md) | | [optional] +**MapMapAnytype** | [**map[string]map[string]map[string]interface{}**](map.md) | | [optional] +**Anytype1** | [**map[string]interface{}**](.md) | | [optional] +**Anytype2** | [**map[string]interface{}**](.md) | | [optional] +**Anytype3** | [**map[string]interface{}**](.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/AdditionalPropertiesInteger.md b/samples/client/petstore/go/go-petstore-withXml/docs/AdditionalPropertiesInteger.md new file mode 100644 index 000000000000..34e6fca8fb00 --- /dev/null +++ b/samples/client/petstore/go/go-petstore-withXml/docs/AdditionalPropertiesInteger.md @@ -0,0 +1,11 @@ +# AdditionalPropertiesInteger + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/AdditionalPropertiesNumber.md b/samples/client/petstore/go/go-petstore-withXml/docs/AdditionalPropertiesNumber.md new file mode 100644 index 000000000000..6d41fd2315c7 --- /dev/null +++ b/samples/client/petstore/go/go-petstore-withXml/docs/AdditionalPropertiesNumber.md @@ -0,0 +1,11 @@ +# AdditionalPropertiesNumber + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/AdditionalPropertiesObject.md b/samples/client/petstore/go/go-petstore-withXml/docs/AdditionalPropertiesObject.md new file mode 100644 index 000000000000..b856de693b16 --- /dev/null +++ b/samples/client/petstore/go/go-petstore-withXml/docs/AdditionalPropertiesObject.md @@ -0,0 +1,11 @@ +# AdditionalPropertiesObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/AdditionalPropertiesString.md b/samples/client/petstore/go/go-petstore-withXml/docs/AdditionalPropertiesString.md new file mode 100644 index 000000000000..69ad20656858 --- /dev/null +++ b/samples/client/petstore/go/go-petstore-withXml/docs/AdditionalPropertiesString.md @@ -0,0 +1,11 @@ +# AdditionalPropertiesString + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/Animal.md b/samples/client/petstore/go/go-petstore-withXml/docs/Animal.md index d7113331a609..02d23377da6d 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/Animal.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/Animal.md @@ -1,6 +1,7 @@ # Animal ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ClassName** | **string** | | diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/AnotherFakeApi.md b/samples/client/petstore/go/go-petstore-withXml/docs/AnotherFakeApi.md index 6d996803c958..0b9deb0c58a5 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/AnotherFakeApi.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/AnotherFakeApi.md @@ -7,7 +7,9 @@ Method | HTTP request | Description [**Call123TestSpecialTags**](AnotherFakeApi.md#Call123TestSpecialTags) | **Patch** /another-fake/dummy | To test special tags -# **Call123TestSpecialTags** + +## Call123TestSpecialTags + > Client Call123TestSpecialTags(ctx, body) To test special tags @@ -15,10 +17,11 @@ To test special tags and operation ID starting with number ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **body** | [**Client**](Client.md)| client model | +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**body** | [**Client**](Client.md)| client model | ### Return type @@ -30,8 +33,10 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json +- **Content-Type**: application/json +- **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/ApiResponse.md b/samples/client/petstore/go/go-petstore-withXml/docs/ApiResponse.md index f9b16338ecda..41d28fb578c1 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/ApiResponse.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/ApiResponse.md @@ -1,6 +1,7 @@ # ApiResponse ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Code** | **int32** | | [optional] diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/ArrayOfArrayOfNumberOnly.md b/samples/client/petstore/go/go-petstore-withXml/docs/ArrayOfArrayOfNumberOnly.md index a53147b62703..555213013b20 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/ArrayOfArrayOfNumberOnly.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/ArrayOfArrayOfNumberOnly.md @@ -1,6 +1,7 @@ # ArrayOfArrayOfNumberOnly ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ArrayArrayNumber** | [**[][]float32**](array.md) | | [optional] diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/ArrayOfNumberOnly.md b/samples/client/petstore/go/go-petstore-withXml/docs/ArrayOfNumberOnly.md index 19031e76d207..56618756dd77 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/ArrayOfNumberOnly.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/ArrayOfNumberOnly.md @@ -1,6 +1,7 @@ # ArrayOfNumberOnly ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ArrayNumber** | **[]float32** | | [optional] diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/ArrayTest.md b/samples/client/petstore/go/go-petstore-withXml/docs/ArrayTest.md index a46d1acf665a..0da0bc52d2d3 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/ArrayTest.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/ArrayTest.md @@ -1,6 +1,7 @@ # ArrayTest ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ArrayOfString** | **[]string** | | [optional] diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/Capitalization.md b/samples/client/petstore/go/go-petstore-withXml/docs/Capitalization.md index ac65ee37dba8..426b8eabd9bd 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/Capitalization.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/Capitalization.md @@ -1,6 +1,7 @@ # Capitalization ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **SmallCamel** | **string** | | [optional] diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/Cat.md b/samples/client/petstore/go/go-petstore-withXml/docs/Cat.md index b51d5fd2b95c..1ef1f095e947 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/Cat.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/Cat.md @@ -1,6 +1,7 @@ # Cat ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ClassName** | **string** | | diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/CatAllOf.md b/samples/client/petstore/go/go-petstore-withXml/docs/CatAllOf.md new file mode 100644 index 000000000000..c978cee0417f --- /dev/null +++ b/samples/client/petstore/go/go-petstore-withXml/docs/CatAllOf.md @@ -0,0 +1,11 @@ +# CatAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Declawed** | **bool** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/Category.md b/samples/client/petstore/go/go-petstore-withXml/docs/Category.md index 1440215d2250..01e8344bd06f 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/Category.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/Category.md @@ -1,6 +1,7 @@ # Category ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int64** | | [optional] diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/ClassModel.md b/samples/client/petstore/go/go-petstore-withXml/docs/ClassModel.md index 8d7a72843939..0b925cebb1f6 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/ClassModel.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/ClassModel.md @@ -1,6 +1,7 @@ # ClassModel ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Class** | **string** | | [optional] diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/Client.md b/samples/client/petstore/go/go-petstore-withXml/docs/Client.md index fdf5fd9a69d0..551da852eece 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/Client.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/Client.md @@ -1,6 +1,7 @@ # Client ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Client** | **string** | | [optional] diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/Dog.md b/samples/client/petstore/go/go-petstore-withXml/docs/Dog.md index 13c0aa28e6b1..ff35dd5cdca2 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/Dog.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/Dog.md @@ -1,6 +1,7 @@ # Dog ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ClassName** | **string** | | diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/DogAllOf.md b/samples/client/petstore/go/go-petstore-withXml/docs/DogAllOf.md new file mode 100644 index 000000000000..b87153e92652 --- /dev/null +++ b/samples/client/petstore/go/go-petstore-withXml/docs/DogAllOf.md @@ -0,0 +1,11 @@ +# DogAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Breed** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/EnumArrays.md b/samples/client/petstore/go/go-petstore-withXml/docs/EnumArrays.md index 9eca8b290325..3021f8818307 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/EnumArrays.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/EnumArrays.md @@ -1,6 +1,7 @@ # EnumArrays ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **JustSymbol** | **string** | | [optional] diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/EnumClass.md b/samples/client/petstore/go/go-petstore-withXml/docs/EnumClass.md index 67f017becd0c..c6932388c067 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/EnumClass.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/EnumClass.md @@ -1,6 +1,7 @@ # EnumClass ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/EnumTest.md b/samples/client/petstore/go/go-petstore-withXml/docs/EnumTest.md index 85eab0e1d402..eeec09b66b4f 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/EnumTest.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/EnumTest.md @@ -1,6 +1,7 @@ # EnumTest ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **EnumString** | **string** | | [optional] diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/FakeApi.md b/samples/client/petstore/go/go-petstore-withXml/docs/FakeApi.md index e6d0dec3fe1f..b7927f181e40 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/FakeApi.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/FakeApi.md @@ -19,7 +19,9 @@ Method | HTTP request | Description [**TestJsonFormData**](FakeApi.md#TestJsonFormData) | **Get** /fake/jsonFormData | test json serialization of form data -# **CreateXmlItem** + +## CreateXmlItem + > CreateXmlItem(ctx, xmlItem) creates an XmlItem @@ -27,10 +29,11 @@ this route creates an XmlItem ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **xmlItem** | [**XmlItem**](XmlItem.md)| XmlItem Body | +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**xmlItem** | [**XmlItem**](XmlItem.md)| XmlItem Body | ### Return type @@ -42,12 +45,16 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/xml, application/xml; charset=utf-8, application/xml; charset=utf-16, text/xml, text/xml; charset=utf-8, text/xml; charset=utf-16 - - **Accept**: Not defined +- **Content-Type**: application/xml, application/xml; charset=utf-8, application/xml; charset=utf-16, text/xml, text/xml; charset=utf-8, text/xml; charset=utf-16 +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **FakeOuterBooleanSerialize** +## FakeOuterBooleanSerialize + > bool FakeOuterBooleanSerialize(ctx, optional) @@ -55,14 +62,17 @@ Test serialization of outer boolean types ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **optional** | ***FakeOuterBooleanSerializeOpts** | optional parameters | nil if no parameters ### Optional Parameters + Optional parameters are passed through a pointer to a FakeOuterBooleanSerializeOpts struct + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | **optional.Bool**| Input boolean as post body | @@ -77,12 +87,16 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: */* +- **Content-Type**: Not defined +- **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **FakeOuterCompositeSerialize** +## FakeOuterCompositeSerialize + > OuterComposite FakeOuterCompositeSerialize(ctx, optional) @@ -90,14 +104,17 @@ Test serialization of object with outer number type ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **optional** | ***FakeOuterCompositeSerializeOpts** | optional parameters | nil if no parameters ### Optional Parameters + Optional parameters are passed through a pointer to a FakeOuterCompositeSerializeOpts struct + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | [**optional.Interface of OuterComposite**](OuterComposite.md)| Input composite as post body | @@ -112,12 +129,16 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: */* +- **Content-Type**: Not defined +- **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **FakeOuterNumberSerialize** +## FakeOuterNumberSerialize + > float32 FakeOuterNumberSerialize(ctx, optional) @@ -125,14 +146,17 @@ Test serialization of outer number types ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **optional** | ***FakeOuterNumberSerializeOpts** | optional parameters | nil if no parameters ### Optional Parameters + Optional parameters are passed through a pointer to a FakeOuterNumberSerializeOpts struct + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | **optional.Float32**| Input number as post body | @@ -147,12 +171,16 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: */* +- **Content-Type**: Not defined +- **Accept**: */* -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## FakeOuterStringSerialize -# **FakeOuterStringSerialize** > string FakeOuterStringSerialize(ctx, optional) @@ -160,14 +188,17 @@ Test serialization of outer string types ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **optional** | ***FakeOuterStringSerializeOpts** | optional parameters | nil if no parameters ### Optional Parameters + Optional parameters are passed through a pointer to a FakeOuterStringSerializeOpts struct + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | **optional.String**| Input string as post body | @@ -182,12 +213,16 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: */* +- **Content-Type**: Not defined +- **Accept**: */* + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **TestBodyWithFileSchema** +## TestBodyWithFileSchema + > TestBodyWithFileSchema(ctx, body) @@ -195,10 +230,11 @@ For this test, the body for this request much reference a schema named `File`. ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | ### Return type @@ -210,22 +246,27 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: Not defined +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **TestBodyWithQueryParams** +## TestBodyWithQueryParams + > TestBodyWithQueryParams(ctx, query, body) ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **query** | **string**| | - **body** | [**User**](User.md)| | +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**query** | **string**| | +**body** | [**User**](User.md)| | ### Return type @@ -237,12 +278,16 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: Not defined +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +## TestClientModel -# **TestClientModel** > Client TestClientModel(ctx, body) To test \"client\" model @@ -250,10 +295,11 @@ To test \"client\" model ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **body** | [**Client**](Client.md)| client model | +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**body** | [**Client**](Client.md)| client model | ### Return type @@ -265,12 +311,16 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +## TestEndpointParameters -# **TestEndpointParameters** > TestEndpointParameters(ctx, number, double, patternWithoutDelimiter, byte_, optional) Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -278,18 +328,21 @@ Fake endpoint for testing various parameters 假端點 偽のエンドポイン ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **number** | **float32**| None | - **double** | **float64**| None | - **patternWithoutDelimiter** | **string**| None | - **byte_** | **string**| None | +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**number** | **float32**| None | +**double** | **float64**| None | +**patternWithoutDelimiter** | **string**| None | +**byte_** | **string**| None | **optional** | ***TestEndpointParametersOpts** | optional parameters | nil if no parameters ### Optional Parameters + Optional parameters are passed through a pointer to a TestEndpointParametersOpts struct + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- @@ -317,12 +370,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: Not defined +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: Not defined -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## TestEnumParameters -# **TestEnumParameters** > TestEnumParameters(ctx, optional) To test enum parameters @@ -330,14 +387,17 @@ To test enum parameters ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **optional** | ***TestEnumParametersOpts** | optional parameters | nil if no parameters ### Optional Parameters + Optional parameters are passed through a pointer to a TestEnumParametersOpts struct + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **enumHeaderStringArray** | [**optional.Interface of []string**](string.md)| Header parameter enum test (string array) | @@ -359,12 +419,16 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: Not defined +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +## TestGroupParameters -# **TestGroupParameters** > TestGroupParameters(ctx, requiredStringGroup, requiredBooleanGroup, requiredInt64Group, optional) Fake endpoint to test group parameters (optional) @@ -372,17 +436,20 @@ Fake endpoint to test group parameters (optional) ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **requiredStringGroup** | **int32**| Required String in group parameters | - **requiredBooleanGroup** | **bool**| Required Boolean in group parameters | - **requiredInt64Group** | **int64**| Required Integer in group parameters | +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**requiredStringGroup** | **int32**| Required String in group parameters | +**requiredBooleanGroup** | **bool**| Required Boolean in group parameters | +**requiredInt64Group** | **int64**| Required Integer in group parameters | **optional** | ***TestGroupParametersOpts** | optional parameters | nil if no parameters ### Optional Parameters + Optional parameters are passed through a pointer to a TestGroupParametersOpts struct + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- @@ -402,21 +469,26 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: Not defined +- **Content-Type**: Not defined +- **Accept**: Not defined -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## TestInlineAdditionalProperties -# **TestInlineAdditionalProperties** > TestInlineAdditionalProperties(ctx, param) test inline additionalProperties ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **param** | [**map[string]string**](string.md)| request body | +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**param** | [**map[string]string**](string.md)| request body | ### Return type @@ -428,22 +500,27 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: Not defined +- **Content-Type**: application/json +- **Accept**: Not defined -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## TestJsonFormData -# **TestJsonFormData** > TestJsonFormData(ctx, param, param2) test json serialization of form data ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **param** | **string**| field1 | - **param2** | **string**| field2 | +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**param** | **string**| field1 | +**param2** | **string**| field2 | ### Return type @@ -455,8 +532,10 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: Not defined +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: Not defined -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/FakeClassnameTags123Api.md b/samples/client/petstore/go/go-petstore-withXml/docs/FakeClassnameTags123Api.md index d9311e369dbb..b3cbcc2c06e1 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/FakeClassnameTags123Api.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/FakeClassnameTags123Api.md @@ -7,7 +7,9 @@ Method | HTTP request | Description [**TestClassname**](FakeClassnameTags123Api.md#TestClassname) | **Patch** /fake_classname_test | To test class name in snake case -# **TestClassname** + +## TestClassname + > Client TestClassname(ctx, body) To test class name in snake case @@ -15,10 +17,11 @@ To test class name in snake case ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **body** | [**Client**](Client.md)| client model | +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**body** | [**Client**](Client.md)| client model | ### Return type @@ -30,8 +33,10 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json +- **Content-Type**: application/json +- **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/File.md b/samples/client/petstore/go/go-petstore-withXml/docs/File.md index e7f7d80e05de..a113b0312cdf 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/File.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/File.md @@ -1,6 +1,7 @@ # File ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **SourceURI** | **string** | Test capitalization | [optional] diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/FileSchemaTestClass.md b/samples/client/petstore/go/go-petstore-withXml/docs/FileSchemaTestClass.md index 69cbfa2c189f..ae51414dd6cc 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/FileSchemaTestClass.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/FileSchemaTestClass.md @@ -1,6 +1,7 @@ # FileSchemaTestClass ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **File** | [**File**](File.md) | | [optional] diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/FormatTest.md b/samples/client/petstore/go/go-petstore-withXml/docs/FormatTest.md index 5f70da85aa24..ee089a03cd79 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/FormatTest.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/FormatTest.md @@ -1,6 +1,7 @@ # FormatTest ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Integer** | **int32** | | [optional] diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/HasOnlyReadOnly.md b/samples/client/petstore/go/go-petstore-withXml/docs/HasOnlyReadOnly.md index c259e8b325a0..9e2f49573597 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/HasOnlyReadOnly.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/HasOnlyReadOnly.md @@ -1,6 +1,7 @@ # HasOnlyReadOnly ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Bar** | **string** | | [optional] diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/List.md b/samples/client/petstore/go/go-petstore-withXml/docs/List.md index 3255fa278685..bba2e5299066 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/List.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/List.md @@ -1,6 +1,7 @@ # List ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Var123List** | **string** | | [optional] diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/MapTest.md b/samples/client/petstore/go/go-petstore-withXml/docs/MapTest.md index 49381ec4b857..6645e044658d 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/MapTest.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/MapTest.md @@ -1,6 +1,7 @@ # MapTest ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **MapMapOfString** | [**map[string]map[string]string**](map.md) | | [optional] diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/client/petstore/go/go-petstore-withXml/docs/MixedPropertiesAndAdditionalPropertiesClass.md index 0e5f61f6273c..a2ce1068b279 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/MixedPropertiesAndAdditionalPropertiesClass.md @@ -1,6 +1,7 @@ # MixedPropertiesAndAdditionalPropertiesClass ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Uuid** | **string** | | [optional] diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/Model200Response.md b/samples/client/petstore/go/go-petstore-withXml/docs/Model200Response.md index c5abac20d866..27b93bd1549f 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/Model200Response.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/Model200Response.md @@ -1,6 +1,7 @@ # Model200Response ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **int32** | | [optional] diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/Name.md b/samples/client/petstore/go/go-petstore-withXml/docs/Name.md index fccddf638998..453e54d98516 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/Name.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/Name.md @@ -1,6 +1,7 @@ # Name ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **int32** | | diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/NumberOnly.md b/samples/client/petstore/go/go-petstore-withXml/docs/NumberOnly.md index 4d2ea1b04135..604cf37eeded 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/NumberOnly.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/NumberOnly.md @@ -1,6 +1,7 @@ # NumberOnly ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **JustNumber** | **float32** | | [optional] diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/Order.md b/samples/client/petstore/go/go-petstore-withXml/docs/Order.md index befa9151a18a..eeef0971005e 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/Order.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/Order.md @@ -1,6 +1,7 @@ # Order ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int64** | | [optional] diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/OuterComposite.md b/samples/client/petstore/go/go-petstore-withXml/docs/OuterComposite.md index 30732cf10bff..df9bce1bd904 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/OuterComposite.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/OuterComposite.md @@ -1,6 +1,7 @@ # OuterComposite ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **MyNumber** | **float32** | | [optional] diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/OuterEnum.md b/samples/client/petstore/go/go-petstore-withXml/docs/OuterEnum.md index 06d413b01680..c97466159c56 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/OuterEnum.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/OuterEnum.md @@ -1,6 +1,7 @@ # OuterEnum ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/Pet.md b/samples/client/petstore/go/go-petstore-withXml/docs/Pet.md index 049c82eb5a03..c48104c63971 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/Pet.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/Pet.md @@ -1,6 +1,7 @@ # Pet ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int64** | | [optional] diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/PetApi.md b/samples/client/petstore/go/go-petstore-withXml/docs/PetApi.md index e1fffc03512e..de48d4b6763c 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/PetApi.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/PetApi.md @@ -15,16 +15,19 @@ Method | HTTP request | Description [**UploadFileWithRequiredFile**](PetApi.md#UploadFileWithRequiredFile) | **Post** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required) -# **AddPet** + +## AddPet + > AddPet(ctx, body) Add a new pet to the store ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | ### Return type @@ -36,26 +39,33 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json, application/xml - - **Accept**: Not defined +- **Content-Type**: application/json, application/xml +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +## DeletePet -# **DeletePet** > DeletePet(ctx, petId, optional) Deletes a pet ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **petId** | **int64**| Pet id to delete | +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**petId** | **int64**| Pet id to delete | **optional** | ***DeletePetOpts** | optional parameters | nil if no parameters ### Optional Parameters + Optional parameters are passed through a pointer to a DeletePetOpts struct + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- @@ -71,12 +81,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: Not defined +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **FindPetsByStatus** +## FindPetsByStatus + > []Pet FindPetsByStatus(ctx, status) Finds Pets by status @@ -84,10 +98,11 @@ Multiple status values can be provided with comma separated strings ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **status** | [**[]string**](string.md)| Status values that need to be considered for filter | +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**status** | [**[]string**](string.md)| Status values that need to be considered for filter | ### Return type @@ -99,12 +114,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/xml, application/json +- **Content-Type**: Not defined +- **Accept**: application/xml, application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **FindPetsByTags** +## FindPetsByTags + > []Pet FindPetsByTags(ctx, tags) Finds Pets by tags @@ -112,10 +131,11 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **tags** | [**[]string**](string.md)| Tags to filter by | +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**tags** | [**[]string**](string.md)| Tags to filter by | ### Return type @@ -127,12 +147,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/xml, application/json +- **Content-Type**: Not defined +- **Accept**: application/xml, application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetPetById -# **GetPetById** > Pet GetPetById(ctx, petId) Find pet by ID @@ -140,10 +164,11 @@ Returns a single pet ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **petId** | **int64**| ID of pet to return | +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**petId** | **int64**| ID of pet to return | ### Return type @@ -155,21 +180,26 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/xml, application/json +- **Content-Type**: Not defined +- **Accept**: application/xml, application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **UpdatePet** +## UpdatePet + > UpdatePet(ctx, body) Update an existing pet ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | ### Return type @@ -181,26 +211,33 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json, application/xml - - **Accept**: Not defined +- **Content-Type**: application/json, application/xml +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **UpdatePetWithForm** +## UpdatePetWithForm + > UpdatePetWithForm(ctx, petId, optional) Updates a pet in the store with form data ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **petId** | **int64**| ID of pet that needs to be updated | +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**petId** | **int64**| ID of pet that needs to be updated | **optional** | ***UpdatePetWithFormOpts** | optional parameters | nil if no parameters ### Optional Parameters + Optional parameters are passed through a pointer to a UpdatePetWithFormOpts struct + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- @@ -217,26 +254,33 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: Not defined +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +## UploadFile -# **UploadFile** > ApiResponse UploadFile(ctx, petId, optional) uploads an image ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **petId** | **int64**| ID of pet to update | +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**petId** | **int64**| ID of pet to update | **optional** | ***UploadFileOpts** | optional parameters | nil if no parameters ### Optional Parameters + Optional parameters are passed through a pointer to a UploadFileOpts struct + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- @@ -253,27 +297,34 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: multipart/form-data - - **Accept**: application/json +- **Content-Type**: multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **UploadFileWithRequiredFile** +## UploadFileWithRequiredFile + > ApiResponse UploadFileWithRequiredFile(ctx, petId, requiredFile, optional) uploads an image (required) ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **petId** | **int64**| ID of pet to update | - **requiredFile** | ***os.File*****os.File**| file to upload | +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**petId** | **int64**| ID of pet to update | +**requiredFile** | ***os.File*****os.File**| file to upload | **optional** | ***UploadFileWithRequiredFileOpts** | optional parameters | nil if no parameters ### Optional Parameters + Optional parameters are passed through a pointer to a UploadFileWithRequiredFileOpts struct + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- @@ -290,8 +341,10 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: multipart/form-data - - **Accept**: application/json +- **Content-Type**: multipart/form-data +- **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/ReadOnlyFirst.md b/samples/client/petstore/go/go-petstore-withXml/docs/ReadOnlyFirst.md index b3546db3cc8f..3fee799f2951 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/ReadOnlyFirst.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/ReadOnlyFirst.md @@ -1,6 +1,7 @@ # ReadOnlyFirst ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Bar** | **string** | | [optional] diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/Return.md b/samples/client/petstore/go/go-petstore-withXml/docs/Return.md index bcf50e4e5cd1..11be0b27c503 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/Return.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/Return.md @@ -1,6 +1,7 @@ # Return ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Return** | **int32** | | [optional] diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/SpecialModelName.md b/samples/client/petstore/go/go-petstore-withXml/docs/SpecialModelName.md index 7b2dfb654c02..96d7a28a409a 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/SpecialModelName.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/SpecialModelName.md @@ -1,6 +1,7 @@ # SpecialModelName ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **SpecialPropertyName** | **int64** | | [optional] diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/StoreApi.md b/samples/client/petstore/go/go-petstore-withXml/docs/StoreApi.md index 88d762e03025..083ed777590f 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/StoreApi.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/StoreApi.md @@ -10,7 +10,9 @@ Method | HTTP request | Description [**PlaceOrder**](StoreApi.md#PlaceOrder) | **Post** /store/order | Place an order for a pet -# **DeleteOrder** + +## DeleteOrder + > DeleteOrder(ctx, orderId) Delete purchase order by ID @@ -18,10 +20,11 @@ For valid response try integer IDs with value < 1000. Anything above 1000 or non ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **orderId** | **string**| ID of the order that needs to be deleted | +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | **string**| ID of the order that needs to be deleted | ### Return type @@ -33,18 +36,23 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: Not defined +- **Content-Type**: Not defined +- **Accept**: Not defined -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetInventory -# **GetInventory** > map[string]int32 GetInventory(ctx, ) Returns pet inventories by status Returns a map of status codes to quantities ### Required Parameters + This endpoint does not need any parameter. ### Return type @@ -57,12 +65,16 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json +- **Content-Type**: Not defined +- **Accept**: application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetOrderById -# **GetOrderById** > Order GetOrderById(ctx, orderId) Find purchase order by ID @@ -70,10 +82,11 @@ For valid response try integer IDs with value <= 5 or > 10. Other values will ge ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **orderId** | **int64**| ID of pet that needs to be fetched | +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orderId** | **int64**| ID of pet that needs to be fetched | ### Return type @@ -85,21 +98,26 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/xml, application/json +- **Content-Type**: Not defined +- **Accept**: application/xml, application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## PlaceOrder -# **PlaceOrder** > Order PlaceOrder(ctx, body) Place an order for a pet ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **body** | [**Order**](Order.md)| order placed for purchasing the pet | +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**body** | [**Order**](Order.md)| order placed for purchasing the pet | ### Return type @@ -111,8 +129,10 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/xml, application/json +- **Content-Type**: Not defined +- **Accept**: application/xml, application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/Tag.md b/samples/client/petstore/go/go-petstore-withXml/docs/Tag.md index acacb4f54a7d..d6b3cc117b52 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/Tag.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/Tag.md @@ -1,6 +1,7 @@ # Tag ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int64** | | [optional] diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/TypeHolderDefault.md b/samples/client/petstore/go/go-petstore-withXml/docs/TypeHolderDefault.md index 080c12a02f43..1b9f077c303b 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/TypeHolderDefault.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/TypeHolderDefault.md @@ -1,6 +1,7 @@ # TypeHolderDefault ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **StringItem** | **string** | | [default to what] diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/TypeHolderExample.md b/samples/client/petstore/go/go-petstore-withXml/docs/TypeHolderExample.md index 231c2a18722f..abe85f9799d1 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/TypeHolderExample.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/TypeHolderExample.md @@ -1,6 +1,7 @@ # TypeHolderExample ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **StringItem** | **string** | | diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/User.md b/samples/client/petstore/go/go-petstore-withXml/docs/User.md index 87e1456c8a88..7675d7ff701b 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/User.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/User.md @@ -1,6 +1,7 @@ # User ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int64** | | [optional] diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/UserApi.md b/samples/client/petstore/go/go-petstore-withXml/docs/UserApi.md index e57a67b75471..ea19e0e716f1 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/UserApi.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/UserApi.md @@ -14,7 +14,9 @@ Method | HTTP request | Description [**UpdateUser**](UserApi.md#UpdateUser) | **Put** /user/{username} | Updated user -# **CreateUser** + +## CreateUser + > CreateUser(ctx, body) Create user @@ -22,10 +24,11 @@ This can only be done by the logged in user. ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **body** | [**User**](User.md)| Created user object | +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**body** | [**User**](User.md)| Created user object | ### Return type @@ -37,21 +40,26 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: Not defined +- **Content-Type**: Not defined +- **Accept**: Not defined -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateUsersWithArrayInput -# **CreateUsersWithArrayInput** > CreateUsersWithArrayInput(ctx, body) Creates list of users with given input array ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **body** | [**[]User**](array.md)| List of user object | +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**body** | [**[]User**](array.md)| List of user object | ### Return type @@ -63,21 +71,26 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: Not defined +- **Content-Type**: Not defined +- **Accept**: Not defined -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CreateUsersWithListInput -# **CreateUsersWithListInput** > CreateUsersWithListInput(ctx, body) Creates list of users with given input array ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **body** | [**[]User**](array.md)| List of user object | +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**body** | [**[]User**](array.md)| List of user object | ### Return type @@ -89,12 +102,16 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: Not defined +- **Content-Type**: Not defined +- **Accept**: Not defined -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteUser -# **DeleteUser** > DeleteUser(ctx, username) Delete user @@ -102,10 +119,11 @@ This can only be done by the logged in user. ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **username** | **string**| The name that needs to be deleted | +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**username** | **string**| The name that needs to be deleted | ### Return type @@ -117,21 +135,26 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: Not defined +- **Content-Type**: Not defined +- **Accept**: Not defined -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetUserByName -# **GetUserByName** > User GetUserByName(ctx, username) Get user by user name ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **username** | **string**| The name that needs to be fetched. Use user1 for testing. | +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**username** | **string**| The name that needs to be fetched. Use user1 for testing. | ### Return type @@ -143,22 +166,27 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/xml, application/json +- **Content-Type**: Not defined +- **Accept**: application/xml, application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## LoginUser -# **LoginUser** > string LoginUser(ctx, username, password) Logs user into the system ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **username** | **string**| The user name for login | - **password** | **string**| The password for login in clear text | +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**username** | **string**| The user name for login | +**password** | **string**| The password for login in clear text | ### Return type @@ -170,16 +198,21 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/xml, application/json +- **Content-Type**: Not defined +- **Accept**: application/xml, application/json -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## LogoutUser -# **LogoutUser** > LogoutUser(ctx, ) Logs out current logged in user session ### Required Parameters + This endpoint does not need any parameter. ### Return type @@ -192,12 +225,16 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: Not defined +- **Content-Type**: Not defined +- **Accept**: Not defined -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## UpdateUser -# **UpdateUser** > UpdateUser(ctx, username, body) Updated user @@ -205,11 +242,12 @@ This can only be done by the logged in user. ### Required Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. - **username** | **string**| name that need to be deleted | - **body** | [**User**](User.md)| Updated user object | +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**username** | **string**| name that need to be deleted | +**body** | [**User**](User.md)| Updated user object | ### Return type @@ -221,8 +259,10 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: Not defined +- **Content-Type**: Not defined +- **Accept**: Not defined -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/XmlItem.md b/samples/client/petstore/go/go-petstore-withXml/docs/XmlItem.md index 573fac8e2d5c..8a9c2dc0b504 100644 --- a/samples/client/petstore/go/go-petstore-withXml/docs/XmlItem.md +++ b/samples/client/petstore/go/go-petstore-withXml/docs/XmlItem.md @@ -1,6 +1,7 @@ # XmlItem ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AttributeString** | **string** | | [optional] diff --git a/samples/client/petstore/go/go-petstore-withXml/go.mod b/samples/client/petstore/go/go-petstore-withXml/go.mod new file mode 100644 index 000000000000..199809ed7066 --- /dev/null +++ b/samples/client/petstore/go/go-petstore-withXml/go.mod @@ -0,0 +1,6 @@ +module github.com/GIT_USER_ID/GIT_REPO_ID + +require ( + github.com/antihax/optional v0.0.0-20180406194304-ca021399b1a6 + golang.org/x/oauth2 v0.0.0-20190402181905-9f3314589c9a +) diff --git a/samples/client/petstore/go/go-petstore-withXml/go.sum b/samples/client/petstore/go/go-petstore-withXml/go.sum new file mode 100644 index 000000000000..e3c16fef3ac1 --- /dev/null +++ b/samples/client/petstore/go/go-petstore-withXml/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/antihax/optional v0.0.0-20180406194304-ca021399b1a6/go.mod h1:V8iCPQYkqmusNa815XgQio277wI47sdRh1dUOLdyC6Q= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/oauth2 v0.0.0-20190402181905-9f3314589c9a h1:tImsplftrFpALCYumobsd0K86vlAs/eXGFms2txfJfA= +golang.org/x/oauth2 v0.0.0-20190402181905-9f3314589c9a/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/samples/client/petstore/go/go-petstore-withXml/model_additional_properties_any_type.go b/samples/client/petstore/go/go-petstore-withXml/model_additional_properties_any_type.go new file mode 100644 index 000000000000..6977ea451be0 --- /dev/null +++ b/samples/client/petstore/go/go-petstore-withXml/model_additional_properties_any_type.go @@ -0,0 +1,15 @@ +/* + * OpenAPI Petstore + * + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * API version: 1.0.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package petstore + +type AdditionalPropertiesAnyType struct { + Name string `json:"name,omitempty" xml:"name"` +} diff --git a/samples/client/petstore/go/go-petstore-withXml/model_additional_properties_array.go b/samples/client/petstore/go/go-petstore-withXml/model_additional_properties_array.go new file mode 100644 index 000000000000..ef3055a02b38 --- /dev/null +++ b/samples/client/petstore/go/go-petstore-withXml/model_additional_properties_array.go @@ -0,0 +1,15 @@ +/* + * OpenAPI Petstore + * + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * API version: 1.0.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package petstore + +type AdditionalPropertiesArray struct { + Name string `json:"name,omitempty" xml:"name"` +} diff --git a/samples/client/petstore/go/go-petstore-withXml/model_additional_properties_boolean.go b/samples/client/petstore/go/go-petstore-withXml/model_additional_properties_boolean.go new file mode 100644 index 000000000000..6cd68b36627a --- /dev/null +++ b/samples/client/petstore/go/go-petstore-withXml/model_additional_properties_boolean.go @@ -0,0 +1,15 @@ +/* + * OpenAPI Petstore + * + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * API version: 1.0.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package petstore + +type AdditionalPropertiesBoolean struct { + Name string `json:"name,omitempty" xml:"name"` +} diff --git a/samples/client/petstore/go/go-petstore-withXml/model_additional_properties_class.go b/samples/client/petstore/go/go-petstore-withXml/model_additional_properties_class.go index afa3de3d9555..363a62f7a3e3 100644 --- a/samples/client/petstore/go/go-petstore-withXml/model_additional_properties_class.go +++ b/samples/client/petstore/go/go-petstore-withXml/model_additional_properties_class.go @@ -11,6 +11,15 @@ package petstore type AdditionalPropertiesClass struct { - MapProperty map[string]string `json:"map_property,omitempty" xml:"map_property"` - MapOfMapProperty map[string]map[string]string `json:"map_of_map_property,omitempty" xml:"map_of_map_property"` + MapString map[string]string `json:"map_string,omitempty" xml:"map_string"` + MapNumber map[string]float32 `json:"map_number,omitempty" xml:"map_number"` + MapInteger map[string]int32 `json:"map_integer,omitempty" xml:"map_integer"` + MapBoolean map[string]bool `json:"map_boolean,omitempty" xml:"map_boolean"` + MapArrayInteger map[string][]int32 `json:"map_array_integer,omitempty" xml:"map_array_integer"` + MapArrayAnytype map[string][]map[string]interface{} `json:"map_array_anytype,omitempty" xml:"map_array_anytype"` + MapMapString map[string]map[string]string `json:"map_map_string,omitempty" xml:"map_map_string"` + MapMapAnytype map[string]map[string]map[string]interface{} `json:"map_map_anytype,omitempty" xml:"map_map_anytype"` + Anytype1 map[string]interface{} `json:"anytype_1,omitempty" xml:"anytype_1"` + Anytype2 map[string]interface{} `json:"anytype_2,omitempty" xml:"anytype_2"` + Anytype3 map[string]interface{} `json:"anytype_3,omitempty" xml:"anytype_3"` } diff --git a/samples/client/petstore/go/go-petstore-withXml/model_additional_properties_integer.go b/samples/client/petstore/go/go-petstore-withXml/model_additional_properties_integer.go new file mode 100644 index 000000000000..7878ce4a0661 --- /dev/null +++ b/samples/client/petstore/go/go-petstore-withXml/model_additional_properties_integer.go @@ -0,0 +1,15 @@ +/* + * OpenAPI Petstore + * + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * API version: 1.0.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package petstore + +type AdditionalPropertiesInteger struct { + Name string `json:"name,omitempty" xml:"name"` +} diff --git a/samples/client/petstore/go/go-petstore-withXml/model_additional_properties_number.go b/samples/client/petstore/go/go-petstore-withXml/model_additional_properties_number.go new file mode 100644 index 000000000000..f95c1a6e3d64 --- /dev/null +++ b/samples/client/petstore/go/go-petstore-withXml/model_additional_properties_number.go @@ -0,0 +1,15 @@ +/* + * OpenAPI Petstore + * + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * API version: 1.0.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package petstore + +type AdditionalPropertiesNumber struct { + Name string `json:"name,omitempty" xml:"name"` +} diff --git a/samples/client/petstore/go/go-petstore-withXml/model_additional_properties_object.go b/samples/client/petstore/go/go-petstore-withXml/model_additional_properties_object.go new file mode 100644 index 000000000000..e69e51537480 --- /dev/null +++ b/samples/client/petstore/go/go-petstore-withXml/model_additional_properties_object.go @@ -0,0 +1,15 @@ +/* + * OpenAPI Petstore + * + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * API version: 1.0.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package petstore + +type AdditionalPropertiesObject struct { + Name string `json:"name,omitempty" xml:"name"` +} diff --git a/samples/client/petstore/go/go-petstore-withXml/model_additional_properties_string.go b/samples/client/petstore/go/go-petstore-withXml/model_additional_properties_string.go new file mode 100644 index 000000000000..7fb9acc4f2a1 --- /dev/null +++ b/samples/client/petstore/go/go-petstore-withXml/model_additional_properties_string.go @@ -0,0 +1,15 @@ +/* + * OpenAPI Petstore + * + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * API version: 1.0.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package petstore + +type AdditionalPropertiesString struct { + Name string `json:"name,omitempty" xml:"name"` +} diff --git a/samples/client/petstore/go/go-petstore-withXml/model_cat_all_of.go b/samples/client/petstore/go/go-petstore-withXml/model_cat_all_of.go new file mode 100644 index 000000000000..c01d44785e94 --- /dev/null +++ b/samples/client/petstore/go/go-petstore-withXml/model_cat_all_of.go @@ -0,0 +1,15 @@ +/* + * OpenAPI Petstore + * + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * API version: 1.0.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package petstore + +type CatAllOf struct { + Declawed bool `json:"declawed,omitempty" xml:"declawed"` +} diff --git a/samples/client/petstore/go/go-petstore-withXml/model_dog_all_of.go b/samples/client/petstore/go/go-petstore-withXml/model_dog_all_of.go new file mode 100644 index 000000000000..a679641f749b --- /dev/null +++ b/samples/client/petstore/go/go-petstore-withXml/model_dog_all_of.go @@ -0,0 +1,15 @@ +/* + * OpenAPI Petstore + * + * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ + * + * API version: 1.0.0 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package petstore + +type DogAllOf struct { + Breed string `json:"breed,omitempty" xml:"breed"` +} diff --git a/samples/client/petstore/go/go-petstore/api_another_fake.go b/samples/client/petstore/go/go-petstore/api_another_fake.go index eaf9bfd49afd..152bf5be285b 100644 --- a/samples/client/petstore/go/go-petstore/api_another_fake.go +++ b/samples/client/petstore/go/go-petstore/api_another_fake.go @@ -14,7 +14,6 @@ import ( "io/ioutil" "net/http" "net/url" - "strings" ) // Linger please @@ -33,7 +32,7 @@ To test special tags and operation ID starting with number */ func (a *AnotherFakeApiService) Call123TestSpecialTags(ctx context.Context, body Client) (Client, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Patch") + localVarHttpMethod = http.MethodPatch localVarPostBody interface{} localVarFormFileName string localVarFileName string diff --git a/samples/client/petstore/go/go-petstore/api_fake.go b/samples/client/petstore/go/go-petstore/api_fake.go index 90af0bcb03f7..27c3ae978ba8 100644 --- a/samples/client/petstore/go/go-petstore/api_fake.go +++ b/samples/client/petstore/go/go-petstore/api_fake.go @@ -14,7 +14,6 @@ import ( "io/ioutil" "net/http" "net/url" - "strings" "github.com/antihax/optional" "os" ) @@ -34,7 +33,7 @@ this route creates an XmlItem */ func (a *FakeApiService) CreateXmlItem(ctx context.Context, xmlItem XmlItem) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") + localVarHttpMethod = http.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -109,7 +108,7 @@ type FakeOuterBooleanSerializeOpts struct { func (a *FakeApiService) FakeOuterBooleanSerialize(ctx context.Context, localVarOptionals *FakeOuterBooleanSerializeOpts) (bool, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") + localVarHttpMethod = http.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -207,7 +206,7 @@ type FakeOuterCompositeSerializeOpts struct { func (a *FakeApiService) FakeOuterCompositeSerialize(ctx context.Context, localVarOptionals *FakeOuterCompositeSerializeOpts) (OuterComposite, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") + localVarHttpMethod = http.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -309,7 +308,7 @@ type FakeOuterNumberSerializeOpts struct { func (a *FakeApiService) FakeOuterNumberSerialize(ctx context.Context, localVarOptionals *FakeOuterNumberSerializeOpts) (float32, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") + localVarHttpMethod = http.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -407,7 +406,7 @@ type FakeOuterStringSerializeOpts struct { func (a *FakeApiService) FakeOuterStringSerialize(ctx context.Context, localVarOptionals *FakeOuterStringSerializeOpts) (string, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") + localVarHttpMethod = http.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -498,7 +497,7 @@ For this test, the body for this request much reference a schema named `Fil */ func (a *FakeApiService) TestBodyWithFileSchema(ctx context.Context, body FileSchemaTestClass) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Put") + localVarHttpMethod = http.MethodPut localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -566,7 +565,7 @@ FakeApiService */ func (a *FakeApiService) TestBodyWithQueryParams(ctx context.Context, query string, body User) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Put") + localVarHttpMethod = http.MethodPut localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -636,7 +635,7 @@ To test \"client\" model */ func (a *FakeApiService) TestClientModel(ctx context.Context, body Client) (Client, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Patch") + localVarHttpMethod = http.MethodPatch localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -752,7 +751,7 @@ type TestEndpointParametersOpts struct { func (a *FakeApiService) TestEndpointParameters(ctx context.Context, number float32, double float64, patternWithoutDelimiter string, byte_ string, localVarOptionals *TestEndpointParametersOpts) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") + localVarHttpMethod = http.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -896,7 +895,7 @@ type TestEnumParametersOpts struct { func (a *FakeApiService) TestEnumParameters(ctx context.Context, localVarOptionals *TestEnumParametersOpts) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") + localVarHttpMethod = http.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -999,7 +998,7 @@ type TestGroupParametersOpts struct { func (a *FakeApiService) TestGroupParameters(ctx context.Context, requiredStringGroup int32, requiredBooleanGroup bool, requiredInt64Group int64, localVarOptionals *TestGroupParametersOpts) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Delete") + localVarHttpMethod = http.MethodDelete localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -1076,7 +1075,7 @@ FakeApiService test inline additionalProperties */ func (a *FakeApiService) TestInlineAdditionalProperties(ctx context.Context, param map[string]string) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") + localVarHttpMethod = http.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -1144,7 +1143,7 @@ FakeApiService test json serialization of form data */ func (a *FakeApiService) TestJsonFormData(ctx context.Context, param string, param2 string) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") + localVarHttpMethod = http.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string diff --git a/samples/client/petstore/go/go-petstore/api_fake_classname_tags123.go b/samples/client/petstore/go/go-petstore/api_fake_classname_tags123.go index 784a54e5e7ca..6c04d55739a9 100644 --- a/samples/client/petstore/go/go-petstore/api_fake_classname_tags123.go +++ b/samples/client/petstore/go/go-petstore/api_fake_classname_tags123.go @@ -14,7 +14,6 @@ import ( "io/ioutil" "net/http" "net/url" - "strings" ) // Linger please @@ -33,7 +32,7 @@ To test class name in snake case */ func (a *FakeClassnameTags123ApiService) TestClassname(ctx context.Context, body Client) (Client, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Patch") + localVarHttpMethod = http.MethodPatch localVarPostBody interface{} localVarFormFileName string localVarFileName string diff --git a/samples/client/petstore/go/go-petstore/api_pet.go b/samples/client/petstore/go/go-petstore/api_pet.go index e3cbb84b5871..243d16197f03 100644 --- a/samples/client/petstore/go/go-petstore/api_pet.go +++ b/samples/client/petstore/go/go-petstore/api_pet.go @@ -14,8 +14,8 @@ import ( "io/ioutil" "net/http" "net/url" - "strings" "fmt" + "strings" "github.com/antihax/optional" "os" ) @@ -34,7 +34,7 @@ PetApiService Add a new pet to the store */ func (a *PetApiService) AddPet(ctx context.Context, body Pet) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") + localVarHttpMethod = http.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -108,7 +108,7 @@ type DeletePetOpts struct { func (a *PetApiService) DeletePet(ctx context.Context, petId int64, localVarOptionals *DeletePetOpts) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Delete") + localVarHttpMethod = http.MethodDelete localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -179,7 +179,7 @@ Multiple status values can be provided with comma separated strings */ func (a *PetApiService) FindPetsByStatus(ctx context.Context, status []string) ([]Pet, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") + localVarHttpMethod = http.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -267,7 +267,7 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 */ func (a *PetApiService) FindPetsByTags(ctx context.Context, tags []string) ([]Pet, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") + localVarHttpMethod = http.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -355,7 +355,7 @@ Returns a single pet */ func (a *PetApiService) GetPetById(ctx context.Context, petId int64) (Pet, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") + localVarHttpMethod = http.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -453,7 +453,7 @@ PetApiService Update an existing pet */ func (a *PetApiService) UpdatePet(ctx context.Context, body Pet) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Put") + localVarHttpMethod = http.MethodPut localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -529,7 +529,7 @@ type UpdatePetWithFormOpts struct { func (a *PetApiService) UpdatePetWithForm(ctx context.Context, petId int64, localVarOptionals *UpdatePetWithFormOpts) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") + localVarHttpMethod = http.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -611,7 +611,7 @@ type UploadFileOpts struct { func (a *PetApiService) UploadFile(ctx context.Context, petId int64, localVarOptionals *UploadFileOpts) (ApiResponse, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") + localVarHttpMethod = http.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -724,7 +724,7 @@ type UploadFileWithRequiredFileOpts struct { func (a *PetApiService) UploadFileWithRequiredFile(ctx context.Context, petId int64, requiredFile *os.File, localVarOptionals *UploadFileWithRequiredFileOpts) (ApiResponse, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") + localVarHttpMethod = http.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string diff --git a/samples/client/petstore/go/go-petstore/api_store.go b/samples/client/petstore/go/go-petstore/api_store.go index 2b195275dbca..3211860d49c3 100644 --- a/samples/client/petstore/go/go-petstore/api_store.go +++ b/samples/client/petstore/go/go-petstore/api_store.go @@ -14,8 +14,8 @@ import ( "io/ioutil" "net/http" "net/url" - "strings" "fmt" + "strings" ) // Linger please @@ -33,7 +33,7 @@ For valid response try integer IDs with value < 1000. Anything above 1000 or */ func (a *StoreApiService) DeleteOrder(ctx context.Context, orderId string) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Delete") + localVarHttpMethod = http.MethodDelete localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -100,7 +100,7 @@ Returns a map of status codes to quantities */ func (a *StoreApiService) GetInventory(ctx context.Context) (map[string]int32, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") + localVarHttpMethod = http.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -199,7 +199,7 @@ For valid response try integer IDs with value <= 5 or > 10. Other val */ func (a *StoreApiService) GetOrderById(ctx context.Context, orderId int64) (Order, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") + localVarHttpMethod = http.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -292,7 +292,7 @@ StoreApiService Place an order for a pet */ func (a *StoreApiService) PlaceOrder(ctx context.Context, body Order) (Order, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") + localVarHttpMethod = http.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string diff --git a/samples/client/petstore/go/go-petstore/api_user.go b/samples/client/petstore/go/go-petstore/api_user.go index 2e349b1d29d5..6a7d2b1195ae 100644 --- a/samples/client/petstore/go/go-petstore/api_user.go +++ b/samples/client/petstore/go/go-petstore/api_user.go @@ -14,8 +14,8 @@ import ( "io/ioutil" "net/http" "net/url" - "strings" "fmt" + "strings" ) // Linger please @@ -33,7 +33,7 @@ This can only be done by the logged in user. */ func (a *UserApiService) CreateUser(ctx context.Context, body User) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") + localVarHttpMethod = http.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -100,7 +100,7 @@ UserApiService Creates list of users with given input array */ func (a *UserApiService) CreateUsersWithArrayInput(ctx context.Context, body []User) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") + localVarHttpMethod = http.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -167,7 +167,7 @@ UserApiService Creates list of users with given input array */ func (a *UserApiService) CreateUsersWithListInput(ctx context.Context, body []User) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Post") + localVarHttpMethod = http.MethodPost localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -235,7 +235,7 @@ This can only be done by the logged in user. */ func (a *UserApiService) DeleteUser(ctx context.Context, username string) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Delete") + localVarHttpMethod = http.MethodDelete localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -302,7 +302,7 @@ UserApiService Get user by user name */ func (a *UserApiService) GetUserByName(ctx context.Context, username string) (User, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") + localVarHttpMethod = http.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -390,7 +390,7 @@ UserApiService Logs user into the system */ func (a *UserApiService) LoginUser(ctx context.Context, username string, password string) (string, *http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") + localVarHttpMethod = http.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -476,7 +476,7 @@ UserApiService Logs out current logged in user session */ func (a *UserApiService) LogoutUser(ctx context.Context) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Get") + localVarHttpMethod = http.MethodGet localVarPostBody interface{} localVarFormFileName string localVarFileName string @@ -543,7 +543,7 @@ This can only be done by the logged in user. */ func (a *UserApiService) UpdateUser(ctx context.Context, username string, body User) (*http.Response, error) { var ( - localVarHttpMethod = strings.ToUpper("Put") + localVarHttpMethod = http.MethodPut localVarPostBody interface{} localVarFormFileName string localVarFileName string