mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 03:18:53 +00:00
90512e6326
* remove php apache license * remove apache license from C# * remove apache license in objc code * remove license from swift 3 code * remove apache license from perl code * remove license from scala code * remove license from ts, go, android, cpp, scala * remove license from java api client * restore clojure petstore files * remove license from travis file * clean up apache-related terms in php, ruby, python mustache tempaltes * remove license from JS API cilent |
||
---|---|---|
.. | ||
docs | ||
.gitignore | ||
.swagger-codegen-ignore | ||
.travis.yml | ||
additional_properties_class.go | ||
animal_farm.go | ||
animal.go | ||
api_client.go | ||
api_response.go | ||
array_of_array_of_number_only.go | ||
array_of_number_only.go | ||
array_test.go | ||
cat.go | ||
category.go | ||
client.go | ||
configuration.go | ||
dog.go | ||
enum_arrays.go | ||
enum_class.go | ||
enum_test.go | ||
fake_api.go | ||
format_test.go | ||
git_push.sh | ||
has_only_read_only.go | ||
list.go | ||
map_test.go | ||
mixed_properties_and_additional_properties_class.go | ||
model_200_response.go | ||
model_api_response.go | ||
model_return.go | ||
name.go | ||
number_only.go | ||
order.go | ||
pet_api.go | ||
pet.go | ||
pom.xml | ||
read_only_first.go | ||
README.md | ||
special_model_name.go | ||
store_api.go | ||
tag.go | ||
user_api.go | ||
user.go |
Go API client for 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: " \
Overview
This API client was generated by the swagger-codegen project. By using the swagger-spec from a remote server, you can easily generate an API client.
- API version: 1.0.0
- Package version: 1.0.0
- Build package: class io.swagger.codegen.languages.GoClientCodegen
Installation
Put the package under your project folder and add the following in import:
"./petstore"
Documentation for API Endpoints
All URIs are relative to http://petstore.swagger.io/v2
Class | Method | HTTP request | Description |
---|---|---|---|
FakeApi | TestClientModel | Patch /fake | To test "client" model |
FakeApi | TestEndpointParameters | Post /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 |
FakeApi | TestEnumParameters | Get /fake | To test enum parameters |
PetApi | AddPet | Post /pet | Add a new pet to the store |
PetApi | DeletePet | Delete /pet/{petId} | Deletes a pet |
PetApi | FindPetsByStatus | Get /pet/findByStatus | Finds Pets by status |
PetApi | FindPetsByTags | Get /pet/findByTags | Finds Pets by tags |
PetApi | GetPetById | Get /pet/{petId} | Find pet by ID |
PetApi | UpdatePet | Put /pet | Update an existing pet |
PetApi | UpdatePetWithForm | Post /pet/{petId} | Updates a pet in the store with form data |
PetApi | UploadFile | Post /pet/{petId}/uploadImage | uploads an image |
StoreApi | DeleteOrder | Delete /store/order/{orderId} | Delete purchase order by ID |
StoreApi | GetInventory | Get /store/inventory | Returns pet inventories by status |
StoreApi | GetOrderById | Get /store/order/{orderId} | Find purchase order by ID |
StoreApi | PlaceOrder | Post /store/order | Place an order for a pet |
UserApi | CreateUser | Post /user | Create user |
UserApi | CreateUsersWithArrayInput | Post /user/createWithArray | Creates list of users with given input array |
UserApi | CreateUsersWithListInput | Post /user/createWithList | Creates list of users with given input array |
UserApi | DeleteUser | Delete /user/{username} | Delete user |
UserApi | GetUserByName | Get /user/{username} | Get user by user name |
UserApi | LoginUser | Get /user/login | Logs user into the system |
UserApi | LogoutUser | Get /user/logout | Logs out current logged in user session |
UserApi | UpdateUser | Put /user/{username} | Updated user |
Documentation For Models
- AdditionalPropertiesClass
- Animal
- AnimalFarm
- ArrayOfArrayOfNumberOnly
- ArrayOfNumberOnly
- ArrayTest
- Cat
- Category
- Client
- Dog
- EnumArrays
- EnumClass
- EnumTest
- FormatTest
- HasOnlyReadOnly
- List
- MapTest
- MixedPropertiesAndAdditionalPropertiesClass
- Model200Response
- ModelApiResponse
- ModelReturn
- Name
- NumberOnly
- Order
- Pet
- ReadOnlyFirst
- SpecialModelName
- Tag
- User
Documentation For Authorization
api_key
- Type: API key
- API key parameter name: api_key
- Location: HTTP header
http_basic_test
- Type: HTTP basic authentication
petstore_auth
- Type: OAuth
- Flow: implicit
- Authorizatoin URL: http://petstore.swagger.io/api/oauth/dialog
- Scopes:
- write:pets: modify pets in your account
- read:pets: read your pets