Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- createUser :: (Consumes CreateUser contentType, MimeRender contentType User) => ContentType contentType -> User -> OpenAPIPetstoreRequest CreateUser contentType NoContent MimeNoContent
- data CreateUser
- createUsersWithArrayInput :: (Consumes CreateUsersWithArrayInput contentType, MimeRender contentType Body) => ContentType contentType -> Body -> OpenAPIPetstoreRequest CreateUsersWithArrayInput contentType NoContent MimeNoContent
- data CreateUsersWithArrayInput
- createUsersWithListInput :: (Consumes CreateUsersWithListInput contentType, MimeRender contentType Body) => ContentType contentType -> Body -> OpenAPIPetstoreRequest CreateUsersWithListInput contentType NoContent MimeNoContent
- data CreateUsersWithListInput
- deleteUser :: Username -> OpenAPIPetstoreRequest DeleteUser MimeNoContent NoContent MimeNoContent
- data DeleteUser
- getUserByName :: Accept accept -> Username -> OpenAPIPetstoreRequest GetUserByName MimeNoContent User accept
- data GetUserByName
- loginUser :: Accept accept -> Username -> Password -> OpenAPIPetstoreRequest LoginUser MimeNoContent Text accept
- data LoginUser
- logoutUser :: OpenAPIPetstoreRequest LogoutUser MimeNoContent NoContent MimeNoContent
- data LogoutUser
- updateUser :: (Consumes UpdateUser contentType, MimeRender contentType User) => ContentType contentType -> User -> Username -> OpenAPIPetstoreRequest UpdateUser contentType NoContent MimeNoContent
- data UpdateUser
Operations
User
createUser
:: (Consumes CreateUser contentType, MimeRender contentType User) | |
=> ContentType contentType | request content-type ( |
-> User | "body" - Created user object |
-> OpenAPIPetstoreRequest CreateUser contentType NoContent MimeNoContent |
POST /user
Create user
This can only be done by the logged in user.
data CreateUser Source #
Instances
Produces CreateUser MimeNoContent Source # | |
Defined in OpenAPIPetstore.API.User | |
MimeType mtype => Consumes CreateUser mtype Source # | */* |
Defined in OpenAPIPetstore.API.User | |
HasBodyParam CreateUser User Source # | Body Param "body" - Created user object |
Defined in OpenAPIPetstore.API.User setBodyParam :: (Consumes CreateUser contentType, MimeRender contentType User) => OpenAPIPetstoreRequest CreateUser contentType res accept -> User -> OpenAPIPetstoreRequest CreateUser contentType res accept Source # |
createUsersWithArrayInput
createUsersWithArrayInput Source #
:: (Consumes CreateUsersWithArrayInput contentType, MimeRender contentType Body) | |
=> ContentType contentType | request content-type ( |
-> Body | "body" - List of user object |
-> OpenAPIPetstoreRequest CreateUsersWithArrayInput contentType NoContent MimeNoContent |
POST /user/createWithArray
Creates list of users with given input array
data CreateUsersWithArrayInput Source #
Instances
Produces CreateUsersWithArrayInput MimeNoContent Source # | |
Defined in OpenAPIPetstore.API.User | |
MimeType mtype => Consumes CreateUsersWithArrayInput mtype Source # | */* |
Defined in OpenAPIPetstore.API.User | |
HasBodyParam CreateUsersWithArrayInput Body Source # | Body Param "body" - List of user object |
Defined in OpenAPIPetstore.API.User setBodyParam :: (Consumes CreateUsersWithArrayInput contentType, MimeRender contentType Body) => OpenAPIPetstoreRequest CreateUsersWithArrayInput contentType res accept -> Body -> OpenAPIPetstoreRequest CreateUsersWithArrayInput contentType res accept Source # |
createUsersWithListInput
createUsersWithListInput Source #
:: (Consumes CreateUsersWithListInput contentType, MimeRender contentType Body) | |
=> ContentType contentType | request content-type ( |
-> Body | "body" - List of user object |
-> OpenAPIPetstoreRequest CreateUsersWithListInput contentType NoContent MimeNoContent |
POST /user/createWithList
Creates list of users with given input array
data CreateUsersWithListInput Source #
Instances
Produces CreateUsersWithListInput MimeNoContent Source # | |
Defined in OpenAPIPetstore.API.User | |
MimeType mtype => Consumes CreateUsersWithListInput mtype Source # | */* |
Defined in OpenAPIPetstore.API.User | |
HasBodyParam CreateUsersWithListInput Body Source # | Body Param "body" - List of user object |
Defined in OpenAPIPetstore.API.User setBodyParam :: (Consumes CreateUsersWithListInput contentType, MimeRender contentType Body) => OpenAPIPetstoreRequest CreateUsersWithListInput contentType res accept -> Body -> OpenAPIPetstoreRequest CreateUsersWithListInput contentType res accept Source # |
deleteUser
:: Username | "username" - The name that needs to be deleted |
-> OpenAPIPetstoreRequest DeleteUser MimeNoContent NoContent MimeNoContent |
DELETE /user/{username}
Delete user
This can only be done by the logged in user.
data DeleteUser Source #
Instances
Produces DeleteUser MimeNoContent Source # | |
Defined in OpenAPIPetstore.API.User |
getUserByName
:: Accept accept | request accept ( |
-> Username | "username" - The name that needs to be fetched. Use user1 for testing. |
-> OpenAPIPetstoreRequest GetUserByName MimeNoContent User accept |
GET /user/{username}
Get user by user name
data GetUserByName Source #
Instances
Produces GetUserByName MimeXML Source # | application/xml |
Defined in OpenAPIPetstore.API.User | |
Produces GetUserByName MimeJSON Source # | application/json |
Defined in OpenAPIPetstore.API.User |
loginUser
:: Accept accept | request accept ( |
-> Username | "username" - The user name for login |
-> Password | "password" - The password for login in clear text |
-> OpenAPIPetstoreRequest LoginUser MimeNoContent Text accept |
GET /user/login
Logs user into the system
logoutUser
logoutUser :: OpenAPIPetstoreRequest LogoutUser MimeNoContent NoContent MimeNoContent Source #
GET /user/logout
Logs out current logged in user session
data LogoutUser Source #
Instances
Produces LogoutUser MimeNoContent Source # | |
Defined in OpenAPIPetstore.API.User |
updateUser
:: (Consumes UpdateUser contentType, MimeRender contentType User) | |
=> ContentType contentType | request content-type ( |
-> User | "body" - Updated user object |
-> Username | "username" - name that need to be deleted |
-> OpenAPIPetstoreRequest UpdateUser contentType NoContent MimeNoContent |
PUT /user/{username}
Updated user
This can only be done by the logged in user.
data UpdateUser Source #
Instances
Produces UpdateUser MimeNoContent Source # | |
Defined in OpenAPIPetstore.API.User | |
MimeType mtype => Consumes UpdateUser mtype Source # | */* |
Defined in OpenAPIPetstore.API.User | |
HasBodyParam UpdateUser User Source # | Body Param "body" - Updated user object |
Defined in OpenAPIPetstore.API.User setBodyParam :: (Consumes UpdateUser contentType, MimeRender contentType User) => OpenAPIPetstoreRequest UpdateUser contentType res accept -> User -> OpenAPIPetstoreRequest UpdateUser contentType res accept Source # |