Represents a Category object for pets.
Tells the API how to respond when certain exceptions are thrown.
Thrown when the object given is invalid (i.e.
Thrown when the object given is invalid (i.e. A new User or Pet contains an ID)
An error message
Represents the current state of the Petstore and how many pets are currently of which Status.
Thrown when the given object is missing a unique ID.
Thrown when the given object is missing a unique ID.
An error message
Thrown when a given Pet does not exist in the database.
Thrown when a given Pet does not exist in the database.
An error message
Thrown when the User given does not exist in the database.
Thrown when the User given does not exist in the database.
An error message
Represents an order to the petstore.
Represents an order to the petstore.
The unique, autogenerated ID of the order. The user should never give an ID during Order creation.
The ID of the pet being ordered.
The number of pets being ordered.
The date the order will be shipped by.
The status of the order.
Whether the order has been fulfilled.
Thrown when the given Order does not exist in the database.
Thrown when the given Order does not exist in the database.
An error message
Represents the status of a particular order for pets.
Represents the status of a particular order for pets. Can be "placed," "approved," or "delivered."
Represents Pets in the Petstore.
Represents Pets in the Petstore. Each Pet has a unique ID that should not be known by the user at the time of its creation.
The pet's auto-generated, unique ID.
(Required) The pet's name.
(Required) A sequence of URLs that lead to uploaded photos of the pet.
The type of pet (cat, dragon, fish, etc.)
Tags that describe this pet.
(Available, Pending, or Adopted)
PetstoreApp runs the PetstoreAPI service.
PetstoreApp runs the PetstoreAPI service. It is the hub where all the endpoints that give users access to API methods are connected to the service itself, which is launched on port :8080.
Provides a great majority of the service methods that allow Users to interact with the Pets in the store and to get information about them.
The parent error from which most PetstoreAPI errors extend.
The parent error from which most PetstoreAPI errors extend. Thrown whenever something in the api goes wrong.
Thrown when a new User has the same username as an existing User.
Thrown when a new User has the same username as an existing User. (Usernames must be unique.)
An error message
Represents the general status of a Pet.
Represents a Tag for pets.
Represents a Tag for pets. Tags cannot be passed with user-made, IDs.
The unique, autogenerated ID of this Tag.
The name of this Tag.
Represents a User in the system, who can interact with the petstore and purchase available Pet objects.
Represents a User in the system, who can interact with the petstore and purchase available Pet objects.
Unique, autogenerated ID of the User
(Required)
(Required)
The status of a Pet when it has been adopted.
The status of an order after it has been approved by the store.
The status of a Pet when it is available for adoption.
Provides encoding and decoding methods for Category objects.
The status of an order after it has been delivered and completed.
Provides a codec for encoding and decoding Inventory objects.
Provides a codec for encoding and decoding Order objects.
Provides encode and decode methods for OrderStatus objects.
Provides encode and decode methods for OrderStatus objects. If asked to decode a string other than "placed," "approved," or "delivered" the system will fail.
The status of a Pet when it is pending for adoption, and currently unavailable for purchase.
Provides a codec for decoding and encoding Pet objects.
Launches the PetstoreAPI service when the system is ready.
The status of an order after it has been placed.
Provides encoding and decoding methods for Status objects.
Provides encoding and decoding methods for Status objects. When given a string other than "available," "pending," or "adopted," it fails to decode the string to a Status object.
Represents a Tag object for pets.
Companion object to the User class.
Provides the paths and endpoints for all the API's public service methods.
Represents a reader object that helps extract parameters from query params and bodies.
Represents a Category object for pets. This is the type of animal a pet is.
The unique, autogenerated ID of this Category.
The name of this Category.