# petstore-client
HTTP-facing petstore service for smithplates FastAPI codegen and Smithy OpenAPI export.

The `petstore_client` package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 2024-01-01
- Package version: 1.0.0
- Generator version: 7.12.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

## Requirements.

Python 3.8+

## Installation & Usage

This python library package is generated without supporting files like setup.py or requirements files

To be able to use it, you will need these dependencies in your own package that uses this library:

* urllib3 >= 1.25.3, < 3.0.0
* python-dateutil >= 2.8.2
* aiohttp >= 3.8.4
* aiohttp-retry >= 2.8.3
* pydantic >= 2
* typing-extensions >= 4.7.1

## Getting Started

In your own code, to use this library to connect and interact with petstore-client,
you can run the following:

```python

import petstore_client
from petstore_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = petstore_client.Configuration(
    host = "http://localhost"
)



# Enter a context with an instance of the API client
async with petstore_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = petstore_client.DefaultApi(api_client)
    create_pet_request_content = petstore_client.CreatePetRequestContent() # CreatePetRequestContent | 

    try:
        api_response = await api_instance.create_pet(create_pet_request_content)
        print("The response of DefaultApi->create_pet:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DefaultApi->create_pet: %s\n" % e)

```

## Documentation for API Endpoints

All URIs are relative to *http://localhost*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*DefaultApi* | [**create_pet**](petstore_client/docs/DefaultApi.md#create_pet) | **POST** /pets | 
*DefaultApi* | [**delete_pet**](petstore_client/docs/DefaultApi.md#delete_pet) | **DELETE** /pets/{petId} | 
*DefaultApi* | [**get_category**](petstore_client/docs/DefaultApi.md#get_category) | **GET** /categories/{categoryId} | 
*DefaultApi* | [**get_order**](petstore_client/docs/DefaultApi.md#get_order) | **GET** /orders/{orderId} | 
*DefaultApi* | [**get_pet**](petstore_client/docs/DefaultApi.md#get_pet) | **GET** /pets/{petId} | 
*DefaultApi* | [**health_check**](petstore_client/docs/DefaultApi.md#health_check) | **GET** /health | 
*DefaultApi* | [**pet_events**](petstore_client/docs/DefaultApi.md#pet_events) | **GET** /pets/events | 
*DefaultApi* | [**place_order**](petstore_client/docs/DefaultApi.md#place_order) | **POST** /orders | 
*DefaultApi* | [**resolve_pet_location**](petstore_client/docs/DefaultApi.md#resolve_pet_location) | **GET** /pets/{petId}/location | 
*DefaultApi* | [**update_pet**](petstore_client/docs/DefaultApi.md#update_pet) | **PUT** /pets/{petId} | 


## Documentation For Models

 - [CategoryDetail](petstore_client/docs/CategoryDetail.md)
 - [CategoryNotFoundResponseContent](petstore_client/docs/CategoryNotFoundResponseContent.md)
 - [CategorySummary](petstore_client/docs/CategorySummary.md)
 - [Color](petstore_client/docs/Color.md)
 - [CreatePetRequestContent](petstore_client/docs/CreatePetRequestContent.md)
 - [CreatePetResponseContent](petstore_client/docs/CreatePetResponseContent.md)
 - [Delivered](petstore_client/docs/Delivered.md)
 - [FulfillmentState](petstore_client/docs/FulfillmentState.md)
 - [GetCategoryResponseContent](petstore_client/docs/GetCategoryResponseContent.md)
 - [GetOrderResponseContent](petstore_client/docs/GetOrderResponseContent.md)
 - [GetPetResponseContent](petstore_client/docs/GetPetResponseContent.md)
 - [HealthCheckResponseContent](petstore_client/docs/HealthCheckResponseContent.md)
 - [OrderDetail](petstore_client/docs/OrderDetail.md)
 - [OrderLineDetail](petstore_client/docs/OrderLineDetail.md)
 - [OrderNotFoundResponseContent](petstore_client/docs/OrderNotFoundResponseContent.md)
 - [OrderPriority](petstore_client/docs/OrderPriority.md)
 - [OrderStatus](petstore_client/docs/OrderStatus.md)
 - [OwnerSummary](petstore_client/docs/OwnerSummary.md)
 - [Pending](petstore_client/docs/Pending.md)
 - [PetAttribute](petstore_client/docs/PetAttribute.md)
 - [PetAttributeValue](petstore_client/docs/PetAttributeValue.md)
 - [PetDetail](petstore_client/docs/PetDetail.md)
 - [PetEventsRequestContent](petstore_client/docs/PetEventsRequestContent.md)
 - [PetEventsResponseContent](petstore_client/docs/PetEventsResponseContent.md)
 - [PetNotFoundResponseContent](petstore_client/docs/PetNotFoundResponseContent.md)
 - [PetPing](petstore_client/docs/PetPing.md)
 - [PetPong](petstore_client/docs/PetPong.md)
 - [PetProfileSummary](petstore_client/docs/PetProfileSummary.md)
 - [PetSpecies](petstore_client/docs/PetSpecies.md)
 - [PetStatus](petstore_client/docs/PetStatus.md)
 - [PetStatusChanged](petstore_client/docs/PetStatusChanged.md)
 - [PetSubscription](petstore_client/docs/PetSubscription.md)
 - [PetWelcome](petstore_client/docs/PetWelcome.md)
 - [PlaceOrderRequestContent](petstore_client/docs/PlaceOrderRequestContent.md)
 - [PlaceOrderResponseContent](petstore_client/docs/PlaceOrderResponseContent.md)
 - [PostalAddress](petstore_client/docs/PostalAddress.md)
 - [Shipped](petstore_client/docs/Shipped.md)
 - [StoreSummary](petstore_client/docs/StoreSummary.md)
 - [UpdatePetBody](petstore_client/docs/UpdatePetBody.md)
 - [UpdatePetResponseContent](petstore_client/docs/UpdatePetResponseContent.md)
 - [Vaccinated](petstore_client/docs/Vaccinated.md)
 - [ValidationErrorResponseContent](petstore_client/docs/ValidationErrorResponseContent.md)
 - [WeightKg](petstore_client/docs/WeightKg.md)


<a id="documentation-for-authorization"></a>
## Documentation For Authorization

Endpoints do not require authorization.


## Author




