Thinkcode.RabbitMQ.OpenAPI.Api.UsersApi
May 13, 2019 ยท View on GitHub
All URIs are relative to http://mb1.bus.adaptive.me/rabbitmq/api
| Method | HTTP request | Description |
|---|---|---|
| CreateUser | PUT /users/{name} | Create User |
| DeleteUser | DELETE /users/{name} | Delete User |
| GetUser | GET /users/{name} | Get User |
| GetUserCurrent | GET /whoami | Get Current User |
| ListUserPermissions | GET /users/{user}/permissions | List User Permissions |
| ListUsers | GET /users | List Users |
| ListUsersWithoutPermissions | GET /users/without-permissions | List Users without Permissions |
CreateUser
void CreateUser (string name, UserRequest body = null)
Create User
Example
using System;
using System.Diagnostics;
using Thinkcode.RabbitMQ.OpenAPI.Api;
using Thinkcode.RabbitMQ.OpenAPI.Client;
using Thinkcode.RabbitMQ.OpenAPI.Model;
namespace Example
{
public class CreateUserExample
{
public void main()
{
// Configure HTTP basic authorization: basic_auth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new UsersApi();
var name = name_example; // string |
var body = new UserRequest(); // UserRequest | (optional)
try
{
// Create User
apiInstance.CreateUser(name, body);
}
catch (Exception e)
{
Debug.Print("Exception when calling UsersApi.CreateUser: " + e.Message );
}
}
}
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| name | string | ||
| body | UserRequest | [optional] |
Return type
void (empty response body)
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteUser
void DeleteUser (string name)
Delete User
Example
using System;
using System.Diagnostics;
using Thinkcode.RabbitMQ.OpenAPI.Api;
using Thinkcode.RabbitMQ.OpenAPI.Client;
using Thinkcode.RabbitMQ.OpenAPI.Model;
namespace Example
{
public class DeleteUserExample
{
public void main()
{
// Configure HTTP basic authorization: basic_auth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new UsersApi();
var name = name_example; // string |
try
{
// Delete User
apiInstance.DeleteUser(name);
}
catch (Exception e)
{
Debug.Print("Exception when calling UsersApi.DeleteUser: " + e.Message );
}
}
}
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| name | string |
Return type
void (empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetUser
User GetUser (string name)
Get User
Example
using System;
using System.Diagnostics;
using Thinkcode.RabbitMQ.OpenAPI.Api;
using Thinkcode.RabbitMQ.OpenAPI.Client;
using Thinkcode.RabbitMQ.OpenAPI.Model;
namespace Example
{
public class GetUserExample
{
public void main()
{
// Configure HTTP basic authorization: basic_auth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new UsersApi();
var name = name_example; // string |
try
{
// Get User
User result = apiInstance.GetUser(name);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling UsersApi.GetUser: " + e.Message );
}
}
}
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| name | string |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetUserCurrent
WhoAmI GetUserCurrent ()
Get Current User
Example
using System;
using System.Diagnostics;
using Thinkcode.RabbitMQ.OpenAPI.Api;
using Thinkcode.RabbitMQ.OpenAPI.Client;
using Thinkcode.RabbitMQ.OpenAPI.Model;
namespace Example
{
public class GetUserCurrentExample
{
public void main()
{
// Configure HTTP basic authorization: basic_auth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new UsersApi();
try
{
// Get Current User
WhoAmI result = apiInstance.GetUserCurrent();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling UsersApi.GetUserCurrent: " + e.Message );
}
}
}
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListUserPermissions
List
ListUserPermissions (string user)
List User Permissions
Example
using System;
using System.Diagnostics;
using Thinkcode.RabbitMQ.OpenAPI.Api;
using Thinkcode.RabbitMQ.OpenAPI.Client;
using Thinkcode.RabbitMQ.OpenAPI.Model;
namespace Example
{
public class ListUserPermissionsExample
{
public void main()
{
// Configure HTTP basic authorization: basic_auth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new UsersApi();
var user = user_example; // string |
try
{
// List User Permissions
List<PermissionUser> result = apiInstance.ListUserPermissions(user);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling UsersApi.ListUserPermissions: " + e.Message );
}
}
}
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| user | string |
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListUsers
List
ListUsers ()
List Users
Example
using System;
using System.Diagnostics;
using Thinkcode.RabbitMQ.OpenAPI.Api;
using Thinkcode.RabbitMQ.OpenAPI.Client;
using Thinkcode.RabbitMQ.OpenAPI.Model;
namespace Example
{
public class ListUsersExample
{
public void main()
{
// Configure HTTP basic authorization: basic_auth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new UsersApi();
try
{
// List Users
List<PermissionUser> result = apiInstance.ListUsers();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling UsersApi.ListUsers: " + e.Message );
}
}
}
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ListUsersWithoutPermissions
List
ListUsersWithoutPermissions ()
List Users without Permissions
Example
using System;
using System.Diagnostics;
using Thinkcode.RabbitMQ.OpenAPI.Api;
using Thinkcode.RabbitMQ.OpenAPI.Client;
using Thinkcode.RabbitMQ.OpenAPI.Model;
namespace Example
{
public class ListUsersWithoutPermissionsExample
{
public void main()
{
// Configure HTTP basic authorization: basic_auth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new UsersApi();
try
{
// List Users without Permissions
List<User> result = apiInstance.ListUsersWithoutPermissions();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling UsersApi.ListUsersWithoutPermissions: " + e.Message );
}
}
}
}
Parameters
This endpoint does not need any parameter.
Return type
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]