Skip to content

api_client.api.BasePermissionApi

Load the API package

import 'package:api_client/api.dart';

All URIs are relative to https://localhost

Method HTTP request Description
deletePermission POST /deletePermission
getPermission GET /getPermission
getPermissions POST /getPermissions
savePermission POST /savePermission

deletePermission

deletePermission(id)

Example

import 'package:api_client/api.dart';

var api_instance = new BasePermissionApi();
var id = id_example; // String | 

try { 
    api_instance.deletePermission(id);
} catch (e) {
    print("Exception when calling BasePermissionApi->deletePermission: $e\n");
}

Parameters

Name Type Description Notes
id String [optional]

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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

getPermission

PermissionServiceModel getPermission(id)

Example

import 'package:api_client/api.dart';

var api_instance = new BasePermissionApi();
var id = id_example; // String | 

try { 
    var result = api_instance.getPermission(id);
    print(result);
} catch (e) {
    print("Exception when calling BasePermissionApi->getPermission: $e\n");
}

Parameters

Name Type Description Notes
id String [optional]

Return type

PermissionServiceModel

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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

getPermissions

QueryResultPermissionServiceModel getPermissions(request)

Example

import 'package:api_client/api.dart';

var api_instance = new BasePermissionApi();
var request = new PermissionQueryRequest(); // PermissionQueryRequest | 

try { 
    var result = api_instance.getPermissions(request);
    print(result);
} catch (e) {
    print("Exception when calling BasePermissionApi->getPermissions: $e\n");
}

Parameters

Name Type Description Notes
request PermissionQueryRequest [optional]

Return type

QueryResultPermissionServiceModel

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json-patch+json, application/json, text/json, application/_*+json
  • Accept: Not defined

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

savePermission

PermissionServiceModel savePermission(model)

Example

import 'package:api_client/api.dart';

var api_instance = new BasePermissionApi();
var model = new PermissionServiceModel(); // PermissionServiceModel | 

try { 
    var result = api_instance.savePermission(model);
    print(result);
} catch (e) {
    print("Exception when calling BasePermissionApi->savePermission: $e\n");
}

Parameters

Name Type Description Notes
model PermissionServiceModel [optional]

Return type

PermissionServiceModel

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json-patch+json, application/json, text/json, application/_*+json
  • Accept: Not defined

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


Last update: July 4, 2020