All URIs are relative to http://petstore.swagger.io:80/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(ctx, user) Create user
This can only be done by the logged in user.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
user | User | Created user object |
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateUsersWithArrayInput(ctx, user) Creates list of users with given input array
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
user | []User | List of user object |
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreateUsersWithListInput(ctx, user) Creates list of users with given input array
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
user | []User | List of user object |
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteUser(ctx, username) Delete user
This can only be done by the logged in user.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
username | string | The name that needs to be deleted |
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
User GetUserByName(ctx, username) Get user by user name
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
username | string | The name that needs to be fetched. Use user1 for testing. |
No authorization required
- Content-Type: Not defined
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
string LoginUser(ctx, username, password) Logs user into the system
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
username | string | The user name for login | |
password | string | The password for login in clear text |
string
No authorization required
- Content-Type: Not defined
- Accept: application/xml, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LogoutUser(ctx, ) Logs out current logged in user session
This endpoint does not need any parameter.
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateUser(ctx, username, user) Updated user
This can only be done by the logged in user.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
username | string | name that need to be deleted | |
user | User | Updated user object |
(empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]