Documentation ¶
Index ¶
- func AddPet(w http.ResponseWriter, r *http.Request)
- func Call123TestSpecialTags(w http.ResponseWriter, r *http.Request)
- func CreateUser(w http.ResponseWriter, r *http.Request)
- func CreateUsersWithArrayInput(w http.ResponseWriter, r *http.Request)
- func CreateUsersWithListInput(w http.ResponseWriter, r *http.Request)
- func DeleteOrder(w http.ResponseWriter, r *http.Request)
- func DeletePet(w http.ResponseWriter, r *http.Request)
- func DeleteUser(w http.ResponseWriter, r *http.Request)
- func FakeHealthGet(w http.ResponseWriter, r *http.Request)
- func FakeOuterBooleanSerialize(w http.ResponseWriter, r *http.Request)
- func FakeOuterCompositeSerialize(w http.ResponseWriter, r *http.Request)
- func FakeOuterNumberSerialize(w http.ResponseWriter, r *http.Request)
- func FakeOuterStringSerialize(w http.ResponseWriter, r *http.Request)
- func FindPetsByStatus(w http.ResponseWriter, r *http.Request)
- func FindPetsByTags(w http.ResponseWriter, r *http.Request)
- func FooGet(w http.ResponseWriter, r *http.Request)
- func GetInventory(w http.ResponseWriter, r *http.Request)
- func GetOrderById(w http.ResponseWriter, r *http.Request)
- func GetPetById(w http.ResponseWriter, r *http.Request)
- func GetUserByName(w http.ResponseWriter, r *http.Request)
- func Index(w http.ResponseWriter, r *http.Request)
- func Logger(inner http.Handler, name string) http.Handler
- func LoginUser(w http.ResponseWriter, r *http.Request)
- func LogoutUser(w http.ResponseWriter, r *http.Request)
- func NewRouter() *mux.Router
- func PlaceOrder(w http.ResponseWriter, r *http.Request)
- func TestBodyWithFileSchema(w http.ResponseWriter, r *http.Request)
- func TestBodyWithQueryParams(w http.ResponseWriter, r *http.Request)
- func TestClassname(w http.ResponseWriter, r *http.Request)
- func TestClientModel(w http.ResponseWriter, r *http.Request)
- func TestEndpointParameters(w http.ResponseWriter, r *http.Request)
- func TestEnumParameters(w http.ResponseWriter, r *http.Request)
- func TestGroupParameters(w http.ResponseWriter, r *http.Request)
- func TestInlineAdditionalProperties(w http.ResponseWriter, r *http.Request)
- func TestJsonFormData(w http.ResponseWriter, r *http.Request)
- func UpdatePet(w http.ResponseWriter, r *http.Request)
- func UpdatePetWithForm(w http.ResponseWriter, r *http.Request)
- func UpdateUser(w http.ResponseWriter, r *http.Request)
- func UploadFile(w http.ResponseWriter, r *http.Request)
- func UploadFileWithRequiredFile(w http.ResponseWriter, r *http.Request)
- type AdditionalPropertiesClass
- type Animal
- type ApiResponse
- type ArrayOfArrayOfNumberOnly
- type ArrayOfNumberOnly
- type ArrayTest
- type Capitalization
- type Cat
- type Category
- type ClassModel
- type Client
- type Dog
- type EnumArrays
- type EnumClass
- type EnumTest
- type File
- type FileSchemaTestClass
- type Foo
- type FormatTest
- type HasOnlyReadOnly
- type HealthCheckResult
- type InlineObject
- type InlineObject1
- type InlineObject2
- type InlineObject3
- type InlineObject4
- type InlineObject5
- type InlineResponseDefault
- type List
- type MapTest
- type MixedPropertiesAndAdditionalPropertiesClass
- type Model200Response
- type Name
- type NumberOnly
- type Order
- type OuterComposite
- type OuterEnum
- type OuterEnumDefaultValue
- type OuterEnumInteger
- type OuterEnumIntegerDefaultValue
- type Pet
- type ReadOnlyFirst
- type Return
- type Route
- type Routes
- type SpecialModelName
- type Tag
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddPet ¶
func AddPet(w http.ResponseWriter, r *http.Request)
AddPet - Add a new pet to the store
func Call123TestSpecialTags ¶
func Call123TestSpecialTags(w http.ResponseWriter, r *http.Request)
Call123TestSpecialTags - To test special tags
func CreateUsersWithArrayInput ¶
func CreateUsersWithArrayInput(w http.ResponseWriter, r *http.Request)
CreateUsersWithArrayInput - Creates list of users with given input array
func CreateUsersWithListInput ¶
func CreateUsersWithListInput(w http.ResponseWriter, r *http.Request)
CreateUsersWithListInput - Creates list of users with given input array
func DeleteOrder ¶
func DeleteOrder(w http.ResponseWriter, r *http.Request)
DeleteOrder - Delete purchase order by ID
func FakeHealthGet ¶
func FakeHealthGet(w http.ResponseWriter, r *http.Request)
FakeHealthGet - Health check endpoint
func FakeOuterBooleanSerialize ¶
func FakeOuterBooleanSerialize(w http.ResponseWriter, r *http.Request)
FakeOuterBooleanSerialize -
func FakeOuterCompositeSerialize ¶
func FakeOuterCompositeSerialize(w http.ResponseWriter, r *http.Request)
FakeOuterCompositeSerialize -
func FakeOuterNumberSerialize ¶
func FakeOuterNumberSerialize(w http.ResponseWriter, r *http.Request)
FakeOuterNumberSerialize -
func FakeOuterStringSerialize ¶
func FakeOuterStringSerialize(w http.ResponseWriter, r *http.Request)
FakeOuterStringSerialize -
func FindPetsByStatus ¶
func FindPetsByStatus(w http.ResponseWriter, r *http.Request)
FindPetsByStatus - Finds Pets by status
func FindPetsByTags ¶
func FindPetsByTags(w http.ResponseWriter, r *http.Request)
FindPetsByTags - Finds Pets by tags
func GetInventory ¶
func GetInventory(w http.ResponseWriter, r *http.Request)
GetInventory - Returns pet inventories by status
func GetOrderById ¶
func GetOrderById(w http.ResponseWriter, r *http.Request)
GetOrderById - Find purchase order by ID
func GetPetById ¶
func GetPetById(w http.ResponseWriter, r *http.Request)
GetPetById - Find pet by ID
func GetUserByName ¶
func GetUserByName(w http.ResponseWriter, r *http.Request)
GetUserByName - Get user by user name
func LoginUser ¶
func LoginUser(w http.ResponseWriter, r *http.Request)
LoginUser - Logs user into the system
func LogoutUser ¶
func LogoutUser(w http.ResponseWriter, r *http.Request)
LogoutUser - Logs out current logged in user session
func PlaceOrder ¶
func PlaceOrder(w http.ResponseWriter, r *http.Request)
PlaceOrder - Place an order for a pet
func TestBodyWithFileSchema ¶
func TestBodyWithFileSchema(w http.ResponseWriter, r *http.Request)
TestBodyWithFileSchema -
func TestBodyWithQueryParams ¶
func TestBodyWithQueryParams(w http.ResponseWriter, r *http.Request)
TestBodyWithQueryParams -
func TestClassname ¶
func TestClassname(w http.ResponseWriter, r *http.Request)
TestClassname - To test class name in snake case
func TestClientModel ¶
func TestClientModel(w http.ResponseWriter, r *http.Request)
TestClientModel - To test \"client\" model
func TestEndpointParameters ¶
func TestEndpointParameters(w http.ResponseWriter, r *http.Request)
TestEndpointParameters - Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
func TestEnumParameters ¶
func TestEnumParameters(w http.ResponseWriter, r *http.Request)
TestEnumParameters - To test enum parameters
func TestGroupParameters ¶
func TestGroupParameters(w http.ResponseWriter, r *http.Request)
TestGroupParameters - Fake endpoint to test group parameters (optional)
func TestInlineAdditionalProperties ¶
func TestInlineAdditionalProperties(w http.ResponseWriter, r *http.Request)
TestInlineAdditionalProperties - test inline additionalProperties
func TestJsonFormData ¶
func TestJsonFormData(w http.ResponseWriter, r *http.Request)
TestJsonFormData - test json serialization of form data
func UpdatePet ¶
func UpdatePet(w http.ResponseWriter, r *http.Request)
UpdatePet - Update an existing pet
func UpdatePetWithForm ¶
func UpdatePetWithForm(w http.ResponseWriter, r *http.Request)
UpdatePetWithForm - Updates a pet in the store with form data
func UploadFile ¶
func UploadFile(w http.ResponseWriter, r *http.Request)
UploadFile - uploads an image
func UploadFileWithRequiredFile ¶
func UploadFileWithRequiredFile(w http.ResponseWriter, r *http.Request)
UploadFileWithRequiredFile - uploads an image (required)
Types ¶
type ApiResponse ¶
type ArrayOfArrayOfNumberOnly ¶
type ArrayOfArrayOfNumberOnly struct {
ArrayArrayNumber [][]float32 `json:"ArrayArrayNumber,omitempty"`
}
type ArrayOfNumberOnly ¶
type ArrayOfNumberOnly struct {
ArrayNumber []float32 `json:"ArrayNumber,omitempty"`
}
type ArrayTest ¶
type ArrayTest struct { ArrayOfString []string `json:"array_of_string,omitempty"` ArrayArrayOfInteger [][]int64 `json:"array_array_of_integer,omitempty"` ArrayArrayOfModel [][]ReadOnlyFirst `json:"array_array_of_model,omitempty"` }
type Capitalization ¶
type Capitalization struct { SmallCamel string `json:"smallCamel,omitempty"` CapitalCamel string `json:"CapitalCamel,omitempty"` SmallSnake string `json:"small_Snake,omitempty"` CapitalSnake string `json:"Capital_Snake,omitempty"` SCAETHFlowPoints string `json:"SCA_ETH_Flow_Points,omitempty"` // Name of the pet ATT_NAME string `json:"ATT_NAME,omitempty"` }
type ClassModel ¶
type ClassModel struct {
Class string `json:"_class,omitempty"`
}
ClassModel - Model for testing model with \"_class\" property
type EnumArrays ¶
type EnumTest ¶
type EnumTest struct { EnumString string `json:"enum_string,omitempty"` EnumStringRequired string `json:"enum_string_required"` EnumInteger int32 `json:"enum_integer,omitempty"` EnumNumber float64 `json:"enum_number,omitempty"` OuterEnum OuterEnum `json:"outerEnum,omitempty"` OuterEnumInteger OuterEnumInteger `json:"outerEnumInteger,omitempty"` OuterEnumDefaultValue OuterEnumDefaultValue `json:"outerEnumDefaultValue,omitempty"` OuterEnumIntegerDefaultValue OuterEnumIntegerDefaultValue `json:"outerEnumIntegerDefaultValue,omitempty"` }
type File ¶
type File struct { // Test capitalization SourceURI string `json:"sourceURI,omitempty"` }
File - Must be named `File` for test.
type FileSchemaTestClass ¶
type FormatTest ¶
type FormatTest struct { Integer int32 `json:"integer,omitempty"` Int32 int32 `json:"int32,omitempty"` Int64 int64 `json:"int64,omitempty"` Number float32 `json:"number"` Float float32 `json:"float,omitempty"` Double float64 `json:"double,omitempty"` String string `json:"string,omitempty"` Byte string `json:"byte"` Binary *os.File `json:"binary,omitempty"` Date string `json:"date"` DateTime time.Time `json:"dateTime,omitempty"` Uuid string `json:"uuid,omitempty"` Password string `json:"password"` // A string that is a 10 digit number. Can have leading zeros. PatternWithDigits string `json:"pattern_with_digits,omitempty"` // A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. PatternWithDigitsAndDelimiter string `json:"pattern_with_digits_and_delimiter,omitempty"` }
type HasOnlyReadOnly ¶
type HealthCheckResult ¶
type HealthCheckResult struct {
NullableMessage *string `json:"NullableMessage,omitempty"`
}
HealthCheckResult - Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model.
type InlineObject ¶
type InlineObject1 ¶
type InlineObject2 ¶
type InlineObject3 ¶
type InlineObject3 struct { // None Integer int32 `json:"integer,omitempty"` // None Int32 int32 `json:"int32,omitempty"` // None Int64 int64 `json:"int64,omitempty"` // None Number float32 `json:"number"` // None Float float32 `json:"float,omitempty"` // None Double float64 `json:"double"` // None String string `json:"string,omitempty"` // None PatternWithoutDelimiter string `json:"pattern_without_delimiter"` // None Byte string `json:"byte"` // None Binary *os.File `json:"binary,omitempty"` // None Date string `json:"date,omitempty"` // None DateTime time.Time `json:"dateTime,omitempty"` // None Password string `json:"password,omitempty"` // None Callback string `json:"callback,omitempty"` }
type InlineObject4 ¶
type InlineObject5 ¶
type InlineResponseDefault ¶
type InlineResponseDefault struct {
String Foo `json:"string,omitempty"`
}
type Model200Response ¶
type Model200Response struct { Name int32 `json:"name,omitempty"` Class string `json:"class,omitempty"` }
Model200Response - Model for testing model name starting with number
type Name ¶
type Name struct { Name int32 `json:"name"` SnakeCase int32 `json:"snake_case,omitempty"` Property string `json:"property,omitempty"` Var123Number int32 `json:"123Number,omitempty"` }
Name - Model for testing model name same as property name
type NumberOnly ¶
type NumberOnly struct {
JustNumber float32 `json:"JustNumber,omitempty"`
}
type OuterComposite ¶
type OuterEnumDefaultValue ¶
type OuterEnumDefaultValue string
const ( PLACED OuterEnumDefaultValue = "placed" APPROVED OuterEnumDefaultValue = "approved" DELIVERED OuterEnumDefaultValue = "delivered" )
List of OuterEnumDefaultValue
type OuterEnumInteger ¶
type OuterEnumInteger int32
type OuterEnumIntegerDefaultValue ¶
type OuterEnumIntegerDefaultValue int32
type ReadOnlyFirst ¶
type Return ¶
type Return struct {
Return int32 `json:"return,omitempty"`
}
Return - Model for testing reserved words
type Route ¶
type Route struct { Name string Method string Pattern string HandlerFunc http.HandlerFunc }
type SpecialModelName ¶
type SpecialModelName struct {
SpecialPropertyName int64 `json:"$special[property.name],omitempty"`
}
type User ¶
type User struct { Id int64 `json:"id,omitempty"` Username string `json:"username,omitempty"` FirstName string `json:"firstName,omitempty"` LastName string `json:"lastName,omitempty"` Email string `json:"email,omitempty"` Password string `json:"password,omitempty"` Phone string `json:"phone,omitempty"` // User Status UserStatus int32 `json:"userStatus,omitempty"` }
Source Files ¶
- api_another_fake.go
- api_default.go
- api_fake.go
- api_fake_classname_tags123.go
- api_pet.go
- api_store.go
- api_user.go
- logger.go
- model_200_response.go
- model__special_model_name_.go
- model_additional_properties_class.go
- model_animal.go
- model_api_response.go
- model_array_of_array_of_number_only.go
- model_array_of_number_only.go
- model_array_test_.go
- model_capitalization.go
- model_cat.go
- model_category.go
- model_class_model.go
- model_client.go
- model_dog.go
- model_enum_arrays.go
- model_enum_class.go
- model_enum_test_.go
- model_file.go
- model_file_schema_test_class.go
- model_foo.go
- model_format_test_.go
- model_has_only_read_only.go
- model_health_check_result.go
- model_inline_object.go
- model_inline_object_1.go
- model_inline_object_2.go
- model_inline_object_3.go
- model_inline_object_4.go
- model_inline_object_5.go
- model_inline_response_default.go
- model_list.go
- model_map_test_.go
- model_mixed_properties_and_additional_properties_class.go
- model_name.go
- model_number_only.go
- model_order.go
- model_outer_composite.go
- model_outer_enum.go
- model_outer_enum_default_value.go
- model_outer_enum_integer.go
- model_outer_enum_integer_default_value.go
- model_pet.go
- model_read_only_first.go
- model_return.go
- model_tag.go
- model_user.go
- routers.go