6.1 KiB
\UserApi
All URIs are relative to http://petstore.swagger.io/v2
Method | HTTP request | Description |
---|---|---|
CreateUser | Post /user | Create user |
CreateUsersWithArrayInput | Post /user/createWithArray | Creates list of users with given input array |
CreateUsersWithListInput | Post /user/createWithList | Creates list of users with given input array |
DeleteUser | Delete /user/{username} | Delete user |
GetUserByName | Get /user/{username} | Get user by user name |
LoginUser | Get /user/login | Logs user into the system |
LogoutUser | Get /user/logout | Logs out current logged in user session |
UpdateUser | Put /user/{username} | Updated user |
CreateUser
CreateUser($body)
Create user
This can only be done by the logged in user.
Parameters
Name | Type | Description | Notes |
---|---|---|---|
body | User | Created user object |
Return type
void (empty response body)
Authorization
No authorization required
HTTP reuqest headers
- Content-Type: Not defined
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateUsersWithArrayInput
CreateUsersWithArrayInput($body)
Creates list of users with given input array
Parameters
Name | Type | Description | Notes |
---|---|---|---|
body | []User | List of user object |
Return type
void (empty response body)
Authorization
No authorization required
HTTP reuqest headers
- Content-Type: Not defined
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateUsersWithListInput
CreateUsersWithListInput($body)
Creates list of users with given input array
Parameters
Name | Type | Description | Notes |
---|---|---|---|
body | []User | List of user object |
Return type
void (empty response body)
Authorization
No authorization required
HTTP reuqest headers
- Content-Type: Not defined
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteUser
DeleteUser($username)
Delete user
This can only be done by the logged in user.
Parameters
Name | Type | Description | Notes |
---|---|---|---|
username | string | The name that needs to be deleted |
Return type
void (empty response body)
Authorization
No authorization required
HTTP reuqest headers
- Content-Type: Not defined
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetUserByName
User GetUserByName($username)
Get user by user name
Parameters
Name | Type | Description | Notes |
---|---|---|---|
username | string | The name that needs to be fetched. Use user1 for testing. |
Return type
Authorization
No authorization required
HTTP reuqest headers
- Content-Type: Not defined
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LoginUser
string LoginUser($username, $password)
Logs user into the system
Parameters
Name | Type | Description | Notes |
---|---|---|---|
username | string | The user name for login | |
password | string | The password for login in clear text |
Return type
string
Authorization
No authorization required
HTTP reuqest headers
- Content-Type: Not defined
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LogoutUser
LogoutUser()
Logs out current logged in user session
Parameters
This endpoint does not need any parameter.
Return type
void (empty response body)
Authorization
No authorization required
HTTP reuqest headers
- Content-Type: Not defined
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateUser
UpdateUser($username, $body)
Updated user
This can only be done by the logged in user.
Parameters
Name | Type | Description | Notes |
---|---|---|---|
username | string | name that need to be deleted | |
body | User | Updated user object |
Return type
void (empty response body)
Authorization
No authorization required
HTTP reuqest headers
- Content-Type: Not defined
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]