forked from loafle/openapi-generator-original
update samples
This commit is contained in:
parent
23727befa7
commit
672a7e9c60
@ -65,7 +65,7 @@ declare -a scripts=(
|
|||||||
"./bin/apex-petstore.sh"
|
"./bin/apex-petstore.sh"
|
||||||
"./bin/perl-petstore-all.sh"
|
"./bin/perl-petstore-all.sh"
|
||||||
"./bin/dart-jaguar-petstore.sh"
|
"./bin/dart-jaguar-petstore.sh"
|
||||||
"./bin/dart-dio-petstore.sh"
|
#"./bin/dart-dio-petstore.sh"
|
||||||
"./bin/dart-petstore.sh"
|
"./bin/dart-petstore.sh"
|
||||||
"./bin/dart2-petstore.sh"
|
"./bin/dart2-petstore.sh"
|
||||||
"./bin/java-play-framework-petstore-server-all.sh"
|
"./bin/java-play-framework-petstore-server-all.sh"
|
||||||
|
@ -6,7 +6,6 @@ title: Generators List
|
|||||||
The following generators are available:
|
The following generators are available:
|
||||||
|
|
||||||
## CLIENT generators
|
## CLIENT generators
|
||||||
|
|
||||||
* [ada](generators/ada)
|
* [ada](generators/ada)
|
||||||
* [android](generators/android)
|
* [android](generators/android)
|
||||||
* [apex](generators/apex)
|
* [apex](generators/apex)
|
||||||
@ -20,6 +19,7 @@ The following generators are available:
|
|||||||
* [csharp-dotnet2 (deprecated)](generators/csharp-dotnet2)
|
* [csharp-dotnet2 (deprecated)](generators/csharp-dotnet2)
|
||||||
* [csharp-netcore](generators/csharp-netcore)
|
* [csharp-netcore](generators/csharp-netcore)
|
||||||
* [dart](generators/dart)
|
* [dart](generators/dart)
|
||||||
|
* [dart-dio](generators/dart-dio)
|
||||||
* [dart-jaguar](generators/dart-jaguar)
|
* [dart-jaguar](generators/dart-jaguar)
|
||||||
* [eiffel](generators/eiffel)
|
* [eiffel](generators/eiffel)
|
||||||
* [elixir](generators/elixir)
|
* [elixir](generators/elixir)
|
||||||
|
@ -11,6 +11,7 @@ Method | HTTP request | Description
|
|||||||
## Call123TestSpecialTags
|
## Call123TestSpecialTags
|
||||||
|
|
||||||
> Client Call123TestSpecialTags(ctx, body)
|
> Client Call123TestSpecialTags(ctx, body)
|
||||||
|
|
||||||
To test special tags
|
To test special tags
|
||||||
|
|
||||||
To test special tags and operation ID starting with number
|
To test special tags and operation ID starting with number
|
||||||
|
@ -24,6 +24,7 @@ Method | HTTP request | Description
|
|||||||
## CreateXmlItem
|
## CreateXmlItem
|
||||||
|
|
||||||
> CreateXmlItem(ctx, xmlItem)
|
> CreateXmlItem(ctx, xmlItem)
|
||||||
|
|
||||||
creates an XmlItem
|
creates an XmlItem
|
||||||
|
|
||||||
this route creates an XmlItem
|
this route creates an XmlItem
|
||||||
@ -59,6 +60,7 @@ No authorization required
|
|||||||
> bool FakeOuterBooleanSerialize(ctx, optional)
|
> bool FakeOuterBooleanSerialize(ctx, optional)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Test serialization of outer boolean types
|
Test serialization of outer boolean types
|
||||||
|
|
||||||
### Required Parameters
|
### Required Parameters
|
||||||
@ -101,6 +103,7 @@ No authorization required
|
|||||||
> OuterComposite FakeOuterCompositeSerialize(ctx, optional)
|
> OuterComposite FakeOuterCompositeSerialize(ctx, optional)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Test serialization of object with outer number type
|
Test serialization of object with outer number type
|
||||||
|
|
||||||
### Required Parameters
|
### Required Parameters
|
||||||
@ -143,6 +146,7 @@ No authorization required
|
|||||||
> float32 FakeOuterNumberSerialize(ctx, optional)
|
> float32 FakeOuterNumberSerialize(ctx, optional)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Test serialization of outer number types
|
Test serialization of outer number types
|
||||||
|
|
||||||
### Required Parameters
|
### Required Parameters
|
||||||
@ -185,6 +189,7 @@ No authorization required
|
|||||||
> string FakeOuterStringSerialize(ctx, optional)
|
> string FakeOuterStringSerialize(ctx, optional)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Test serialization of outer string types
|
Test serialization of outer string types
|
||||||
|
|
||||||
### Required Parameters
|
### Required Parameters
|
||||||
@ -227,6 +232,7 @@ No authorization required
|
|||||||
> TestBodyWithFileSchema(ctx, body)
|
> TestBodyWithFileSchema(ctx, body)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
For this test, the body for this request much reference a schema named `File`.
|
For this test, the body for this request much reference a schema named `File`.
|
||||||
|
|
||||||
### Required Parameters
|
### Required Parameters
|
||||||
@ -260,6 +266,7 @@ No authorization required
|
|||||||
> TestBodyWithQueryParams(ctx, query, body)
|
> TestBodyWithQueryParams(ctx, query, body)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Required Parameters
|
### Required Parameters
|
||||||
|
|
||||||
|
|
||||||
@ -290,6 +297,7 @@ No authorization required
|
|||||||
## TestClientModel
|
## TestClientModel
|
||||||
|
|
||||||
> Client TestClientModel(ctx, body)
|
> Client TestClientModel(ctx, body)
|
||||||
|
|
||||||
To test \"client\" model
|
To test \"client\" model
|
||||||
|
|
||||||
To test \"client\" model
|
To test \"client\" model
|
||||||
@ -323,6 +331,7 @@ No authorization required
|
|||||||
## TestEndpointParameters
|
## TestEndpointParameters
|
||||||
|
|
||||||
> TestEndpointParameters(ctx, number, double, patternWithoutDelimiter, byte_, optional)
|
> TestEndpointParameters(ctx, number, double, patternWithoutDelimiter, byte_, optional)
|
||||||
|
|
||||||
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
|
|
||||||
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||||
@ -382,6 +391,7 @@ Name | Type | Description | Notes
|
|||||||
## TestEnumParameters
|
## TestEnumParameters
|
||||||
|
|
||||||
> TestEnumParameters(ctx, optional)
|
> TestEnumParameters(ctx, optional)
|
||||||
|
|
||||||
To test enum parameters
|
To test enum parameters
|
||||||
|
|
||||||
To test enum parameters
|
To test enum parameters
|
||||||
@ -431,6 +441,7 @@ No authorization required
|
|||||||
## TestGroupParameters
|
## TestGroupParameters
|
||||||
|
|
||||||
> TestGroupParameters(ctx, requiredStringGroup, requiredBooleanGroup, requiredInt64Group, optional)
|
> TestGroupParameters(ctx, requiredStringGroup, requiredBooleanGroup, requiredInt64Group, optional)
|
||||||
|
|
||||||
Fake endpoint to test group parameters (optional)
|
Fake endpoint to test group parameters (optional)
|
||||||
|
|
||||||
Fake endpoint to test group parameters (optional)
|
Fake endpoint to test group parameters (optional)
|
||||||
@ -481,6 +492,7 @@ No authorization required
|
|||||||
## TestInlineAdditionalProperties
|
## TestInlineAdditionalProperties
|
||||||
|
|
||||||
> TestInlineAdditionalProperties(ctx, param)
|
> TestInlineAdditionalProperties(ctx, param)
|
||||||
|
|
||||||
test inline additionalProperties
|
test inline additionalProperties
|
||||||
|
|
||||||
### Required Parameters
|
### Required Parameters
|
||||||
@ -512,6 +524,7 @@ No authorization required
|
|||||||
## TestJsonFormData
|
## TestJsonFormData
|
||||||
|
|
||||||
> TestJsonFormData(ctx, param, param2)
|
> TestJsonFormData(ctx, param, param2)
|
||||||
|
|
||||||
test json serialization of form data
|
test json serialization of form data
|
||||||
|
|
||||||
### Required Parameters
|
### Required Parameters
|
||||||
@ -546,6 +559,7 @@ No authorization required
|
|||||||
> TestQueryParameterCollectionFormat(ctx, pipe, ioutil, http, url, context)
|
> TestQueryParameterCollectionFormat(ctx, pipe, ioutil, http, url, context)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
To test the collection format in query parameters
|
To test the collection format in query parameters
|
||||||
|
|
||||||
### Required Parameters
|
### Required Parameters
|
||||||
|
@ -11,6 +11,7 @@ Method | HTTP request | Description
|
|||||||
## TestClassname
|
## TestClassname
|
||||||
|
|
||||||
> Client TestClassname(ctx, body)
|
> Client TestClassname(ctx, body)
|
||||||
|
|
||||||
To test class name in snake case
|
To test class name in snake case
|
||||||
|
|
||||||
To test class name in snake case
|
To test class name in snake case
|
||||||
|
@ -19,6 +19,7 @@ Method | HTTP request | Description
|
|||||||
## AddPet
|
## AddPet
|
||||||
|
|
||||||
> AddPet(ctx, body)
|
> AddPet(ctx, body)
|
||||||
|
|
||||||
Add a new pet to the store
|
Add a new pet to the store
|
||||||
|
|
||||||
### Required Parameters
|
### Required Parameters
|
||||||
@ -50,6 +51,7 @@ Name | Type | Description | Notes
|
|||||||
## DeletePet
|
## DeletePet
|
||||||
|
|
||||||
> DeletePet(ctx, petId, optional)
|
> DeletePet(ctx, petId, optional)
|
||||||
|
|
||||||
Deletes a pet
|
Deletes a pet
|
||||||
|
|
||||||
### Required Parameters
|
### Required Parameters
|
||||||
@ -92,6 +94,7 @@ Name | Type | Description | Notes
|
|||||||
## FindPetsByStatus
|
## FindPetsByStatus
|
||||||
|
|
||||||
> []Pet FindPetsByStatus(ctx, status)
|
> []Pet FindPetsByStatus(ctx, status)
|
||||||
|
|
||||||
Finds Pets by status
|
Finds Pets by status
|
||||||
|
|
||||||
Multiple status values can be provided with comma separated strings
|
Multiple status values can be provided with comma separated strings
|
||||||
@ -125,6 +128,7 @@ Name | Type | Description | Notes
|
|||||||
## FindPetsByTags
|
## FindPetsByTags
|
||||||
|
|
||||||
> []Pet FindPetsByTags(ctx, tags)
|
> []Pet FindPetsByTags(ctx, tags)
|
||||||
|
|
||||||
Finds Pets by tags
|
Finds Pets by tags
|
||||||
|
|
||||||
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
|
||||||
@ -158,6 +162,7 @@ Name | Type | Description | Notes
|
|||||||
## GetPetById
|
## GetPetById
|
||||||
|
|
||||||
> Pet GetPetById(ctx, petId)
|
> Pet GetPetById(ctx, petId)
|
||||||
|
|
||||||
Find pet by ID
|
Find pet by ID
|
||||||
|
|
||||||
Returns a single pet
|
Returns a single pet
|
||||||
@ -191,6 +196,7 @@ Name | Type | Description | Notes
|
|||||||
## UpdatePet
|
## UpdatePet
|
||||||
|
|
||||||
> UpdatePet(ctx, body)
|
> UpdatePet(ctx, body)
|
||||||
|
|
||||||
Update an existing pet
|
Update an existing pet
|
||||||
|
|
||||||
### Required Parameters
|
### Required Parameters
|
||||||
@ -222,6 +228,7 @@ Name | Type | Description | Notes
|
|||||||
## UpdatePetWithForm
|
## UpdatePetWithForm
|
||||||
|
|
||||||
> UpdatePetWithForm(ctx, petId, optional)
|
> UpdatePetWithForm(ctx, petId, optional)
|
||||||
|
|
||||||
Updates a pet in the store with form data
|
Updates a pet in the store with form data
|
||||||
|
|
||||||
### Required Parameters
|
### Required Parameters
|
||||||
@ -265,6 +272,7 @@ Name | Type | Description | Notes
|
|||||||
## UploadFile
|
## UploadFile
|
||||||
|
|
||||||
> ApiResponse UploadFile(ctx, petId, optional)
|
> ApiResponse UploadFile(ctx, petId, optional)
|
||||||
|
|
||||||
uploads an image
|
uploads an image
|
||||||
|
|
||||||
### Required Parameters
|
### Required Parameters
|
||||||
@ -308,6 +316,7 @@ Name | Type | Description | Notes
|
|||||||
## UploadFileWithRequiredFile
|
## UploadFileWithRequiredFile
|
||||||
|
|
||||||
> ApiResponse UploadFileWithRequiredFile(ctx, petId, requiredFile, optional)
|
> ApiResponse UploadFileWithRequiredFile(ctx, petId, requiredFile, optional)
|
||||||
|
|
||||||
uploads an image (required)
|
uploads an image (required)
|
||||||
|
|
||||||
### Required Parameters
|
### Required Parameters
|
||||||
|
@ -14,6 +14,7 @@ Method | HTTP request | Description
|
|||||||
## DeleteOrder
|
## DeleteOrder
|
||||||
|
|
||||||
> DeleteOrder(ctx, orderId)
|
> DeleteOrder(ctx, orderId)
|
||||||
|
|
||||||
Delete purchase order by ID
|
Delete purchase order by ID
|
||||||
|
|
||||||
For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
|
For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
|
||||||
@ -47,6 +48,7 @@ No authorization required
|
|||||||
## GetInventory
|
## GetInventory
|
||||||
|
|
||||||
> map[string]int32 GetInventory(ctx, )
|
> map[string]int32 GetInventory(ctx, )
|
||||||
|
|
||||||
Returns pet inventories by status
|
Returns pet inventories by status
|
||||||
|
|
||||||
Returns a map of status codes to quantities
|
Returns a map of status codes to quantities
|
||||||
@ -76,6 +78,7 @@ This endpoint does not need any parameter.
|
|||||||
## GetOrderById
|
## GetOrderById
|
||||||
|
|
||||||
> Order GetOrderById(ctx, orderId)
|
> Order GetOrderById(ctx, orderId)
|
||||||
|
|
||||||
Find purchase order by ID
|
Find purchase order by ID
|
||||||
|
|
||||||
For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
|
||||||
@ -109,6 +112,7 @@ No authorization required
|
|||||||
## PlaceOrder
|
## PlaceOrder
|
||||||
|
|
||||||
> Order PlaceOrder(ctx, body)
|
> Order PlaceOrder(ctx, body)
|
||||||
|
|
||||||
Place an order for a pet
|
Place an order for a pet
|
||||||
|
|
||||||
### Required Parameters
|
### Required Parameters
|
||||||
|
@ -18,6 +18,7 @@ Method | HTTP request | Description
|
|||||||
## CreateUser
|
## CreateUser
|
||||||
|
|
||||||
> CreateUser(ctx, body)
|
> CreateUser(ctx, body)
|
||||||
|
|
||||||
Create user
|
Create user
|
||||||
|
|
||||||
This can only be done by the logged in user.
|
This can only be done by the logged in user.
|
||||||
@ -51,6 +52,7 @@ No authorization required
|
|||||||
## CreateUsersWithArrayInput
|
## CreateUsersWithArrayInput
|
||||||
|
|
||||||
> CreateUsersWithArrayInput(ctx, body)
|
> CreateUsersWithArrayInput(ctx, body)
|
||||||
|
|
||||||
Creates list of users with given input array
|
Creates list of users with given input array
|
||||||
|
|
||||||
### Required Parameters
|
### Required Parameters
|
||||||
@ -82,6 +84,7 @@ No authorization required
|
|||||||
## CreateUsersWithListInput
|
## CreateUsersWithListInput
|
||||||
|
|
||||||
> CreateUsersWithListInput(ctx, body)
|
> CreateUsersWithListInput(ctx, body)
|
||||||
|
|
||||||
Creates list of users with given input array
|
Creates list of users with given input array
|
||||||
|
|
||||||
### Required Parameters
|
### Required Parameters
|
||||||
@ -113,6 +116,7 @@ No authorization required
|
|||||||
## DeleteUser
|
## DeleteUser
|
||||||
|
|
||||||
> DeleteUser(ctx, username)
|
> DeleteUser(ctx, username)
|
||||||
|
|
||||||
Delete user
|
Delete user
|
||||||
|
|
||||||
This can only be done by the logged in user.
|
This can only be done by the logged in user.
|
||||||
@ -146,6 +150,7 @@ No authorization required
|
|||||||
## GetUserByName
|
## GetUserByName
|
||||||
|
|
||||||
> User GetUserByName(ctx, username)
|
> User GetUserByName(ctx, username)
|
||||||
|
|
||||||
Get user by user name
|
Get user by user name
|
||||||
|
|
||||||
### Required Parameters
|
### Required Parameters
|
||||||
@ -177,6 +182,7 @@ No authorization required
|
|||||||
## LoginUser
|
## LoginUser
|
||||||
|
|
||||||
> string LoginUser(ctx, username, password)
|
> string LoginUser(ctx, username, password)
|
||||||
|
|
||||||
Logs user into the system
|
Logs user into the system
|
||||||
|
|
||||||
### Required Parameters
|
### Required Parameters
|
||||||
@ -209,6 +215,7 @@ No authorization required
|
|||||||
## LogoutUser
|
## LogoutUser
|
||||||
|
|
||||||
> LogoutUser(ctx, )
|
> LogoutUser(ctx, )
|
||||||
|
|
||||||
Logs out current logged in user session
|
Logs out current logged in user session
|
||||||
|
|
||||||
### Required Parameters
|
### Required Parameters
|
||||||
@ -236,6 +243,7 @@ No authorization required
|
|||||||
## UpdateUser
|
## UpdateUser
|
||||||
|
|
||||||
> UpdateUser(ctx, username, body)
|
> UpdateUser(ctx, username, body)
|
||||||
|
|
||||||
Updated user
|
Updated user
|
||||||
|
|
||||||
This can only be done by the logged in user.
|
This can only be done by the logged in user.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user