packagea

package
v0.0.0-...-00a6948 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package packagea provides primitives to interact with the openapi HTTP API.

Code generated by github.com/jKiler/oapi-codegen version v1.0.0-00010101000000-000000000000 DO NOT EDIT.

Index

Constants

View Source
const (
	Api_keyScopes       = "api_key.Scopes"
	Petstore_authScopes = "petstore_auth.Scopes"
)

Variables

This section is empty.

Functions

func GetSwagger

func GetSwagger() (swagger *openapi3.T, err error)

GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

Types

type AddPetFormdataRequestBody

type AddPetFormdataRequestBody = Pet

AddPetFormdataRequestBody defines body for AddPet for application/x-www-form-urlencoded ContentType.

type AddPetJSONRequestBody

type AddPetJSONRequestBody = Pet

AddPetJSONRequestBody defines body for AddPet for application/json ContentType.

type Address

type Address struct {
	City   *string `json:"city,omitempty"`
	State  *string `json:"state,omitempty"`
	Street *string `json:"street,omitempty"`
	Zip    *string `json:"zip,omitempty"`
}

Address defines model for Address.

type ApiResponse

type ApiResponse struct {
	Code    *int32  `json:"code,omitempty"`
	Message *string `json:"message,omitempty"`
	Type    *string `json:"type,omitempty"`
}

ApiResponse defines model for ApiResponse.

type Category

type Category struct {
	Id   *int64  `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
}

Category defines model for Category.

type CreateUserFormdataRequestBody

type CreateUserFormdataRequestBody = User

CreateUserFormdataRequestBody defines body for CreateUser for application/x-www-form-urlencoded ContentType.

type CreateUserJSONRequestBody

type CreateUserJSONRequestBody = User

CreateUserJSONRequestBody defines body for CreateUser for application/json ContentType.

type CreateUsersWithListInputJSONBody

type CreateUsersWithListInputJSONBody = []User

CreateUsersWithListInputJSONBody defines parameters for CreateUsersWithListInput.

type CreateUsersWithListInputJSONRequestBody

type CreateUsersWithListInputJSONRequestBody = CreateUsersWithListInputJSONBody

CreateUsersWithListInputJSONRequestBody defines body for CreateUsersWithListInput for application/json ContentType.

type Customer

type Customer struct {
	Address  *[]Address `json:"address,omitempty"`
	Id       *int64     `json:"id,omitempty"`
	Username *string    `json:"username,omitempty"`
}

Customer defines model for Customer.

type DeletePetParams

type DeletePetParams struct {
	ApiKey *string `json:"api_key,omitempty"`
}

DeletePetParams defines parameters for DeletePet.

type FindPetsByStatusParams

type FindPetsByStatusParams struct {
	// Status Status values that need to be considered for filter
	Status *FindPetsByStatusParamsStatus `form:"status,omitempty" json:"status,omitempty"`
}

FindPetsByStatusParams defines parameters for FindPetsByStatus.

type FindPetsByStatusParamsStatus

type FindPetsByStatusParamsStatus string

FindPetsByStatusParamsStatus defines parameters for FindPetsByStatus.

const (
	FindPetsByStatusParamsStatusAvailable FindPetsByStatusParamsStatus = "available"
	FindPetsByStatusParamsStatusPending   FindPetsByStatusParamsStatus = "pending"
	FindPetsByStatusParamsStatusSold      FindPetsByStatusParamsStatus = "sold"
)

Defines values for FindPetsByStatusParamsStatus.

type FindPetsByTagsParams

type FindPetsByTagsParams struct {
	// Tags Tags to filter by
	Tags *[]string `form:"tags,omitempty" json:"tags,omitempty"`
}

FindPetsByTagsParams defines parameters for FindPetsByTags.

type LoginUserParams

type LoginUserParams struct {
	// Username The user name for login
	Username *string `form:"username,omitempty" json:"username,omitempty"`

	// Password The password for login in clear text
	Password *string `form:"password,omitempty" json:"password,omitempty"`
}

LoginUserParams defines parameters for LoginUser.

type Order

type Order struct {
	Complete *bool      `json:"complete,omitempty"`
	Id       *int64     `json:"id,omitempty"`
	PetId    *int64     `json:"petId,omitempty"`
	Quantity *int32     `json:"quantity,omitempty"`
	ShipDate *time.Time `json:"shipDate,omitempty"`

	// Status Order Status
	Status *OrderStatus `json:"status,omitempty"`
}

Order defines model for Order.

type OrderStatus

type OrderStatus string

OrderStatus Order Status

const (
	Approved  OrderStatus = "approved"
	Delivered OrderStatus = "delivered"
	Placed    OrderStatus = "placed"
)

Defines values for OrderStatus.

type Pet

type Pet struct {
	Category  *Category `json:"category,omitempty"`
	Id        *int64    `json:"id,omitempty"`
	Name      string    `json:"name"`
	PhotoUrls []string  `json:"photoUrls"`

	// Status pet status in the store
	Status *PetStatus `json:"status,omitempty"`
	Tags   *[]Tag     `json:"tags,omitempty"`
}

Pet defines model for Pet.

type PetStatus

type PetStatus string

PetStatus pet status in the store

const (
	PetStatusAvailable PetStatus = "available"
	PetStatusPending   PetStatus = "pending"
	PetStatusSold      PetStatus = "sold"
)

Defines values for PetStatus.

type PlaceOrderFormdataRequestBody

type PlaceOrderFormdataRequestBody = Order

PlaceOrderFormdataRequestBody defines body for PlaceOrder for application/x-www-form-urlencoded ContentType.

type PlaceOrderJSONRequestBody

type PlaceOrderJSONRequestBody = Order

PlaceOrderJSONRequestBody defines body for PlaceOrder for application/json ContentType.

type Tag

type Tag struct {
	Id   *int64  `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
}

Tag defines model for Tag.

type UpdatePetFormdataRequestBody

type UpdatePetFormdataRequestBody = Pet

UpdatePetFormdataRequestBody defines body for UpdatePet for application/x-www-form-urlencoded ContentType.

type UpdatePetJSONRequestBody

type UpdatePetJSONRequestBody = Pet

UpdatePetJSONRequestBody defines body for UpdatePet for application/json ContentType.

type UpdatePetWithFormParams

type UpdatePetWithFormParams struct {
	// Name Name of pet that needs to be updated
	Name *string `form:"name,omitempty" json:"name,omitempty"`

	// Status Status of pet that needs to be updated
	Status *string `form:"status,omitempty" json:"status,omitempty"`
}

UpdatePetWithFormParams defines parameters for UpdatePetWithForm.

type UpdateUserFormdataRequestBody

type UpdateUserFormdataRequestBody = User

UpdateUserFormdataRequestBody defines body for UpdateUser for application/x-www-form-urlencoded ContentType.

type UpdateUserJSONRequestBody

type UpdateUserJSONRequestBody = User

UpdateUserJSONRequestBody defines body for UpdateUser for application/json ContentType.

type UploadFileParams

type UploadFileParams struct {
	// AdditionalMetadata Additional Metadata
	AdditionalMetadata *string `form:"additionalMetadata,omitempty" json:"additionalMetadata,omitempty"`
}

UploadFileParams defines parameters for UploadFile.

type User

type User struct {
	Email     *string `json:"email,omitempty"`
	FirstName *string `json:"firstName,omitempty"`
	Id        *int64  `json:"id,omitempty"`
	LastName  *string `json:"lastName,omitempty"`
	Password  *string `json:"password,omitempty"`
	Phone     *string `json:"phone,omitempty"`

	// UserStatus User Status
	UserStatus *int32  `json:"userStatus,omitempty"`
	Username   *string `json:"username,omitempty"`
}

User defines model for User.

type UserArray

type UserArray = []User

UserArray defines model for UserArray.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL