Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- addPet :: (Consumes AddPet contentType, MimeRender contentType Pet) => ContentType contentType -> Pet -> OpenAPIPetstoreRequest AddPet contentType NoContent MimeNoContent
- data AddPet
- deletePet :: PetId -> OpenAPIPetstoreRequest DeletePet MimeNoContent NoContent MimeNoContent
- data DeletePet
- findPetsByStatus :: Accept accept -> Status -> OpenAPIPetstoreRequest FindPetsByStatus MimeNoContent [Pet] accept
- data FindPetsByStatus
- findPetsByTags :: Accept accept -> Tags -> OpenAPIPetstoreRequest FindPetsByTags MimeNoContent [Pet] accept
- data FindPetsByTags
- getPetById :: Accept accept -> PetId -> OpenAPIPetstoreRequest GetPetById MimeNoContent Pet accept
- data GetPetById
- updatePet :: (Consumes UpdatePet contentType, MimeRender contentType Pet) => ContentType contentType -> Pet -> OpenAPIPetstoreRequest UpdatePet contentType NoContent MimeNoContent
- data UpdatePet
- updatePetWithForm :: Consumes UpdatePetWithForm MimeFormUrlEncoded => PetId -> OpenAPIPetstoreRequest UpdatePetWithForm MimeFormUrlEncoded NoContent MimeNoContent
- data UpdatePetWithForm
- uploadFile :: Consumes UploadFile MimeMultipartFormData => PetId -> OpenAPIPetstoreRequest UploadFile MimeMultipartFormData ApiResponse MimeJSON
- data UploadFile
- uploadFileWithRequiredFile :: Consumes UploadFileWithRequiredFile MimeMultipartFormData => RequiredFile -> PetId -> OpenAPIPetstoreRequest UploadFileWithRequiredFile MimeMultipartFormData ApiResponse MimeJSON
- data UploadFileWithRequiredFile
Operations
Pet
addPet
:: (Consumes AddPet contentType, MimeRender contentType Pet) | |
=> ContentType contentType | request content-type ( |
-> Pet | "body" - Pet object that needs to be added to the store |
-> OpenAPIPetstoreRequest AddPet contentType NoContent MimeNoContent |
Instances
Produces AddPet MimeNoContent Source # | |
Defined in OpenAPIPetstore.API.Pet | |
Consumes AddPet MimeXML Source # | application/xml |
Defined in OpenAPIPetstore.API.Pet | |
Consumes AddPet MimeJSON Source # | application/json |
Defined in OpenAPIPetstore.API.Pet | |
HasBodyParam AddPet Pet Source # | Body Param "body" - Pet object that needs to be added to the store |
Defined in OpenAPIPetstore.API.Pet setBodyParam :: (Consumes AddPet contentType, MimeRender contentType Pet) => OpenAPIPetstoreRequest AddPet contentType res accept -> Pet -> OpenAPIPetstoreRequest AddPet contentType res accept Source # |
deletePet
:: PetId | "petId" - Pet id to delete |
-> OpenAPIPetstoreRequest DeletePet MimeNoContent NoContent MimeNoContent |
Instances
Produces DeletePet MimeNoContent Source # | |
Defined in OpenAPIPetstore.API.Pet | |
HasOptionalParam DeletePet ApiKey Source # | |
Defined in OpenAPIPetstore.API.Pet applyOptionalParam :: OpenAPIPetstoreRequest DeletePet contentType res accept -> ApiKey -> OpenAPIPetstoreRequest DeletePet contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest DeletePet contentType res accept -> ApiKey -> OpenAPIPetstoreRequest DeletePet contentType res accept Source # |
findPetsByStatus
:: Accept accept | request accept ( |
-> Status | "status" - Status values that need to be considered for filter |
-> OpenAPIPetstoreRequest FindPetsByStatus MimeNoContent [Pet] accept |
GET /pet/findByStatus
Finds Pets by status
Multiple status values can be provided with comma separated strings
AuthMethod: AuthOAuthPetstoreAuth
data FindPetsByStatus Source #
Instances
Produces FindPetsByStatus MimeXML Source # | application/xml |
Defined in OpenAPIPetstore.API.Pet | |
Produces FindPetsByStatus MimeJSON Source # | application/json |
Defined in OpenAPIPetstore.API.Pet |
findPetsByTags
:: Accept accept | request accept ( |
-> Tags | "tags" - Tags to filter by |
-> OpenAPIPetstoreRequest FindPetsByTags MimeNoContent [Pet] accept |
Deprecated:
GET /pet/findByTags
Finds Pets by tags
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
AuthMethod: AuthOAuthPetstoreAuth
data FindPetsByTags Source #
Instances
Produces FindPetsByTags MimeXML Source # | application/xml |
Defined in OpenAPIPetstore.API.Pet | |
Produces FindPetsByTags MimeJSON Source # | application/json |
Defined in OpenAPIPetstore.API.Pet |
getPetById
:: Accept accept | request accept ( |
-> PetId | "petId" - ID of pet to return |
-> OpenAPIPetstoreRequest GetPetById MimeNoContent Pet accept |
data GetPetById Source #
Instances
Produces GetPetById MimeXML Source # | application/xml |
Defined in OpenAPIPetstore.API.Pet | |
Produces GetPetById MimeJSON Source # | application/json |
Defined in OpenAPIPetstore.API.Pet |
updatePet
:: (Consumes UpdatePet contentType, MimeRender contentType Pet) | |
=> ContentType contentType | request content-type ( |
-> Pet | "body" - Pet object that needs to be added to the store |
-> OpenAPIPetstoreRequest UpdatePet contentType NoContent MimeNoContent |
Instances
Produces UpdatePet MimeNoContent Source # | |
Defined in OpenAPIPetstore.API.Pet | |
Consumes UpdatePet MimeXML Source # | application/xml |
Defined in OpenAPIPetstore.API.Pet | |
Consumes UpdatePet MimeJSON Source # | application/json |
Defined in OpenAPIPetstore.API.Pet | |
HasBodyParam UpdatePet Pet Source # | Body Param "body" - Pet object that needs to be added to the store |
Defined in OpenAPIPetstore.API.Pet setBodyParam :: (Consumes UpdatePet contentType, MimeRender contentType Pet) => OpenAPIPetstoreRequest UpdatePet contentType res accept -> Pet -> OpenAPIPetstoreRequest UpdatePet contentType res accept Source # |
updatePetWithForm
:: Consumes UpdatePetWithForm MimeFormUrlEncoded | |
=> PetId | "petId" - ID of pet that needs to be updated |
-> OpenAPIPetstoreRequest UpdatePetWithForm MimeFormUrlEncoded NoContent MimeNoContent |
data UpdatePetWithForm Source #
Instances
uploadFile
:: Consumes UploadFile MimeMultipartFormData | |
=> PetId | "petId" - ID of pet to update |
-> OpenAPIPetstoreRequest UploadFile MimeMultipartFormData ApiResponse MimeJSON |
data UploadFile Source #
Instances
uploadFileWithRequiredFile
uploadFileWithRequiredFile Source #
:: Consumes UploadFileWithRequiredFile MimeMultipartFormData | |
=> RequiredFile | "requiredFile" - file to upload |
-> PetId | "petId" - ID of pet to update |
-> OpenAPIPetstoreRequest UploadFileWithRequiredFile MimeMultipartFormData ApiResponse MimeJSON |
POST /fake/{petId}/uploadImageWithRequiredFile
uploads an image (required)
AuthMethod: AuthOAuthPetstoreAuth
data UploadFileWithRequiredFile Source #
Instances
Produces UploadFileWithRequiredFile MimeJSON Source # | application/json |
Defined in OpenAPIPetstore.API.Pet | |
Consumes UploadFileWithRequiredFile MimeMultipartFormData Source # | multipart/form-data |
Defined in OpenAPIPetstore.API.Pet | |
HasOptionalParam UploadFileWithRequiredFile AdditionalMetadata Source # | Optional Param "additionalMetadata" - Additional data to pass to server |
Defined in OpenAPIPetstore.API.Pet applyOptionalParam :: OpenAPIPetstoreRequest UploadFileWithRequiredFile contentType res accept -> AdditionalMetadata -> OpenAPIPetstoreRequest UploadFileWithRequiredFile contentType res accept Source # (-&-) :: OpenAPIPetstoreRequest UploadFileWithRequiredFile contentType res accept -> AdditionalMetadata -> OpenAPIPetstoreRequest UploadFileWithRequiredFile contentType res accept Source # |