Skip to content

Latest commit

 

History

History
196 lines (148 loc) · 5.42 KB

PermissionsApi.md

File metadata and controls

196 lines (148 loc) · 5.42 KB

Thinkcode.RabbitMQ.OpenAPI.Api.PermissionsApi

All URIs are relative to http://mb1.bus.adaptive.me/rabbitmq/api

Method HTTP request Description
ListUserPermissions GET /users/{user}/permissions List User Permissions
ListUsersTopicPermissions GET /users/{user}/topic-permissions List Users Topic Permissions
ListUsersWithoutPermissions GET /users/without-permissions List Users without Permissions

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 PermissionsApi();
            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 PermissionsApi.ListUserPermissions: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
user string

Return type

List

Authorization

basic_auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListUsersTopicPermissions

List ListUsersTopicPermissions (string user)

List Users Topic 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 ListUsersTopicPermissionsExample
    {
        public void main()
        {
            // Configure HTTP basic authorization: basic_auth
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";

            var apiInstance = new PermissionsApi();
            var user = user_example;  // string | 

            try
            {
                // List Users Topic Permissions
                List<PermissionTopic> result = apiInstance.ListUsersTopicPermissions(user);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PermissionsApi.ListUsersTopicPermissions: " + e.Message );
            }
        }
    }
}

Parameters

Name Type Description Notes
user string

Return type

List

Authorization

basic_auth

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 PermissionsApi();

            try
            {
                // List Users without Permissions
                List<User> result = apiInstance.ListUsersWithoutPermissions();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling PermissionsApi.ListUsersWithoutPermissions: " + e.Message );
            }
        }
    }
}

Parameters

This endpoint does not need any parameter.

Return type

List

Authorization

basic_auth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]