import 'package:swagger/api.dart';
All URIs are relative to https://localhost
Method | HTTP request | Description |
---|---|---|
createGroup | POST /security/groups | Add a group |
createProfile | POST /security/profiles | Add a profile |
createUser | POST /security/users | Add an user |
deleteGroup | DELETE /security/groups/{uri} | Delete a group |
deleteProfile | DELETE /security/profiles/{uri} | Delete a profile |
deleteUser | DELETE /security/users/{uri} | Delete an user |
getAllProfiles | GET /security/profiles/all | Get all profiles |
getGroup | GET /security/groups/{uri} | Get a group |
getGroupsByURI | GET /security/groups/by_uris | Get groups by their URIs |
getProfile | GET /security/profiles/{uri} | Get a profile |
getUser | GET /security/users/{uri} | Get an user |
getUserGroups | GET /security/users/{uri}/groups | Get groups of an user |
getUsersByURI | GET /security/users/by_uris | Get users by their URIs |
searchGroups | GET /security/groups | Search groups |
searchProfiles | GET /security/profiles | Search profiles |
searchUsers | GET /security/users | Search users |
updateGroup | PUT /security/groups | Update a group |
updateProfile | PUT /security/profiles | Update a profile |
updateUser | PUT /security/users | Update an user |
createGroup(authorization, body, acceptLanguage)
Add a group
import 'package:swagger/api.dart';
var api_instance = new SecurityApi();
var authorization = authorization_example; // String | Authentication token
var body = new GroupCreationDTO(); // GroupCreationDTO | Group description
var acceptLanguage = "en"; // String | Request accepted language
try {
api_instance.createGroup(authorization, body, acceptLanguage);
} catch (e) {
print("Exception when calling SecurityApi->createGroup: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | Authentication token | |
body | GroupCreationDTO | Group description | [optional] |
acceptLanguage | String | Request accepted language | [optional] |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
createProfile(authorization, body, acceptLanguage)
Add a profile
import 'package:swagger/api.dart';
var api_instance = new SecurityApi();
var authorization = authorization_example; // String | Authentication token
var body = new ProfileCreationDTO(); // ProfileCreationDTO | Profile description
var acceptLanguage = "en"; // String | Request accepted language
try {
api_instance.createProfile(authorization, body, acceptLanguage);
} catch (e) {
print("Exception when calling SecurityApi->createProfile: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | Authentication token | |
body | ProfileCreationDTO | Profile description | [optional] |
acceptLanguage | String | Request accepted language | [optional] |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
createUser(authorization, body, acceptLanguage)
Add an user
import 'package:swagger/api.dart';
var api_instance = new SecurityApi();
var authorization = authorization_example; // String | Authentication token
var body = new UserCreationDTO(); // UserCreationDTO | User description
var acceptLanguage = "en"; // String | Request accepted language
try {
api_instance.createUser(authorization, body, acceptLanguage);
} catch (e) {
print("Exception when calling SecurityApi->createUser: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | Authentication token | |
body | UserCreationDTO | User description | [optional] |
acceptLanguage | String | Request accepted language | [optional] |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteGroup(uri, authorization, acceptLanguage)
Delete a group
import 'package:swagger/api.dart';
var api_instance = new SecurityApi();
var uri = "http://example.com/"; // String | Group URI
var authorization = authorization_example; // String | Authentication token
var acceptLanguage = "en"; // String | Request accepted language
try {
api_instance.deleteGroup(uri, authorization, acceptLanguage);
} catch (e) {
print("Exception when calling SecurityApi->deleteGroup: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
uri | String | Group URI | |
authorization | String | Authentication token | |
acceptLanguage | String | Request accepted language | [optional] |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteProfile(uri, authorization, acceptLanguage)
Delete a profile
import 'package:swagger/api.dart';
var api_instance = new SecurityApi();
var uri = "http://example.com/"; // String | Profile URI
var authorization = authorization_example; // String | Authentication token
var acceptLanguage = "en"; // String | Request accepted language
try {
api_instance.deleteProfile(uri, authorization, acceptLanguage);
} catch (e) {
print("Exception when calling SecurityApi->deleteProfile: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
uri | String | Profile URI | |
authorization | String | Authentication token | |
acceptLanguage | String | Request accepted language | [optional] |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteUser(uri, authorization, acceptLanguage)
Delete an user
import 'package:swagger/api.dart';
var api_instance = new SecurityApi();
var uri = "http://example.com/"; // String | User URI
var authorization = authorization_example; // String | Authentication token
var acceptLanguage = "en"; // String | Request accepted language
try {
api_instance.deleteUser(uri, authorization, acceptLanguage);
} catch (e) {
print("Exception when calling SecurityApi->deleteUser: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
uri | String | User URI | |
authorization | String | Authentication token | |
acceptLanguage | String | Request accepted language | [optional] |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List getAllProfiles(authorization, orderBy, acceptLanguage)
Get all profiles
import 'package:swagger/api.dart';
var api_instance = new SecurityApi();
var authorization = authorization_example; // String | Authentication token
var orderBy = ["email=asc"]; // List<String> | List of fields to sort as an array of fieldName=asc|desc
var acceptLanguage = "en"; // String | Request accepted language
try {
var result = api_instance.getAllProfiles(authorization, orderBy, acceptLanguage);
print(result);
} catch (e) {
print("Exception when calling SecurityApi->getAllProfiles: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | Authentication token | |
orderBy | List<String> | List of fields to sort as an array of fieldName=asc | desc |
acceptLanguage | String | Request accepted language | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GroupDTO getGroup(uri, authorization, acceptLanguage)
Get a group
import 'package:swagger/api.dart';
var api_instance = new SecurityApi();
var uri = "dev-groups:admin_group"; // String | Group URI
var authorization = authorization_example; // String | Authentication token
var acceptLanguage = "en"; // String | Request accepted language
try {
var result = api_instance.getGroup(uri, authorization, acceptLanguage);
print(result);
} catch (e) {
print("Exception when calling SecurityApi->getGroup: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
uri | String | Group URI | |
authorization | String | Authentication token | |
acceptLanguage | String | Request accepted language | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List getGroupsByURI(uris, authorization, acceptLanguage)
Get groups by their URIs
import 'package:swagger/api.dart';
var api_instance = new SecurityApi();
var uris = []; // List<String> | Groups URIs
var authorization = authorization_example; // String | Authentication token
var acceptLanguage = "en"; // String | Request accepted language
try {
var result = api_instance.getGroupsByURI(uris, authorization, acceptLanguage);
print(result);
} catch (e) {
print("Exception when calling SecurityApi->getGroupsByURI: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
uris | List<String> | Groups URIs | |
authorization | String | Authentication token | |
acceptLanguage | String | Request accepted language | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ProfileGetDTO getProfile(uri, authorization, acceptLanguage)
Get a profile
import 'package:swagger/api.dart';
var api_instance = new SecurityApi();
var uri = "dev-users:Admin_OpenSilex"; // String | Profile URI
var authorization = authorization_example; // String | Authentication token
var acceptLanguage = "en"; // String | Request accepted language
try {
var result = api_instance.getProfile(uri, authorization, acceptLanguage);
print(result);
} catch (e) {
print("Exception when calling SecurityApi->getProfile: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
uri | String | Profile URI | |
authorization | String | Authentication token | |
acceptLanguage | String | Request accepted language | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UserGetDTO getUser(uri, authorization, acceptLanguage)
Get an user
import 'package:swagger/api.dart';
var api_instance = new SecurityApi();
var uri = "dev-users:Admin_OpenSilex"; // String | User URI
var authorization = authorization_example; // String | Authentication token
var acceptLanguage = "en"; // String | Request accepted language
try {
var result = api_instance.getUser(uri, authorization, acceptLanguage);
print(result);
} catch (e) {
print("Exception when calling SecurityApi->getUser: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
uri | String | User URI | |
authorization | String | Authentication token | |
acceptLanguage | String | Request accepted language | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List getUserGroups(uri, authorization, acceptLanguage)
Get groups of an user
import 'package:swagger/api.dart';
var api_instance = new SecurityApi();
var uri = "http://example.com/"; // String | User URI
var authorization = authorization_example; // String | Authentication token
var acceptLanguage = "en"; // String | Request accepted language
try {
var result = api_instance.getUserGroups(uri, authorization, acceptLanguage);
print(result);
} catch (e) {
print("Exception when calling SecurityApi->getUserGroups: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
uri | String | User URI | |
authorization | String | Authentication token | |
acceptLanguage | String | Request accepted language | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List getUsersByURI(uris, authorization, acceptLanguage)
Get users by their URIs
import 'package:swagger/api.dart';
var api_instance = new SecurityApi();
var uris = []; // List<String> | Users URIs
var authorization = authorization_example; // String | Authentication token
var acceptLanguage = "en"; // String | Request accepted language
try {
var result = api_instance.getUsersByURI(uris, authorization, acceptLanguage);
print(result);
} catch (e) {
print("Exception when calling SecurityApi->getUsersByURI: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
uris | List<String> | Users URIs | |
authorization | String | Authentication token | |
acceptLanguage | String | Request accepted language | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List searchGroups(authorization, name, orderBy, page, pageSize, acceptLanguage)
Search groups
import 'package:swagger/api.dart';
var api_instance = new SecurityApi();
var authorization = authorization_example; // String | Authentication token
var name = ".*"; // String | Regex pattern for filtering list by name
var orderBy = ["email=asc"]; // List<String> | List of fields to sort as an array of fieldName=asc|desc
var page = 0; // int | Page number
var pageSize = 20; // int | Page size
var acceptLanguage = "en"; // String | Request accepted language
try {
var result = api_instance.searchGroups(authorization, name, orderBy, page, pageSize, acceptLanguage);
print(result);
} catch (e) {
print("Exception when calling SecurityApi->searchGroups: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | Authentication token | |
name | String | Regex pattern for filtering list by name | [optional] [default to .*] |
orderBy | List<String> | List of fields to sort as an array of fieldName=asc | desc |
page | int | Page number | [optional] [default to 0] |
pageSize | int | Page size | [optional] [default to 20] |
acceptLanguage | String | Request accepted language | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List searchProfiles(authorization, name, orderBy, page, pageSize, acceptLanguage)
Search profiles
import 'package:swagger/api.dart';
var api_instance = new SecurityApi();
var authorization = authorization_example; // String | Authentication token
var name = ".*"; // String | Regex pattern for filtering list by name
var orderBy = ["email=asc"]; // List<String> | List of fields to sort as an array of fieldName=asc|desc
var page = 0; // int | Page number
var pageSize = 20; // int | Page size
var acceptLanguage = "en"; // String | Request accepted language
try {
var result = api_instance.searchProfiles(authorization, name, orderBy, page, pageSize, acceptLanguage);
print(result);
} catch (e) {
print("Exception when calling SecurityApi->searchProfiles: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | Authentication token | |
name | String | Regex pattern for filtering list by name | [optional] [default to .*] |
orderBy | List<String> | List of fields to sort as an array of fieldName=asc | desc |
page | int | Page number | [optional] [default to 0] |
pageSize | int | Page size | [optional] [default to 20] |
acceptLanguage | String | Request accepted language | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List searchUsers(authorization, name, orderBy, page, pageSize, acceptLanguage)
Search users
import 'package:swagger/api.dart';
var api_instance = new SecurityApi();
var authorization = authorization_example; // String | Authentication token
var name = ".*"; // String | Regex pattern for filtering list by name or email
var orderBy = ["email=asc"]; // List<String> | List of fields to sort as an array of fieldName=asc|desc
var page = 0; // int | Page number
var pageSize = 20; // int | Page size
var acceptLanguage = "en"; // String | Request accepted language
try {
var result = api_instance.searchUsers(authorization, name, orderBy, page, pageSize, acceptLanguage);
print(result);
} catch (e) {
print("Exception when calling SecurityApi->searchUsers: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | Authentication token | |
name | String | Regex pattern for filtering list by name or email | [optional] [default to .*] |
orderBy | List<String> | List of fields to sort as an array of fieldName=asc | desc |
page | int | Page number | [optional] [default to 0] |
pageSize | int | Page size | [optional] [default to 20] |
acceptLanguage | String | Request accepted language | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
String updateGroup(authorization, body, acceptLanguage)
Update a group
import 'package:swagger/api.dart';
var api_instance = new SecurityApi();
var authorization = authorization_example; // String | Authentication token
var body = new GroupUpdateDTO(); // GroupUpdateDTO | Group description
var acceptLanguage = "en"; // String | Request accepted language
try {
var result = api_instance.updateGroup(authorization, body, acceptLanguage);
print(result);
} catch (e) {
print("Exception when calling SecurityApi->updateGroup: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | Authentication token | |
body | GroupUpdateDTO | Group description | [optional] |
acceptLanguage | String | Request accepted language | [optional] |
String
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
String updateProfile(authorization, body, acceptLanguage)
Update a profile
import 'package:swagger/api.dart';
var api_instance = new SecurityApi();
var authorization = authorization_example; // String | Authentication token
var body = new ProfileUpdateDTO(); // ProfileUpdateDTO | Profile description
var acceptLanguage = "en"; // String | Request accepted language
try {
var result = api_instance.updateProfile(authorization, body, acceptLanguage);
print(result);
} catch (e) {
print("Exception when calling SecurityApi->updateProfile: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | Authentication token | |
body | ProfileUpdateDTO | Profile description | [optional] |
acceptLanguage | String | Request accepted language | [optional] |
String
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
String updateUser(authorization, body, acceptLanguage)
Update an user
import 'package:swagger/api.dart';
var api_instance = new SecurityApi();
var authorization = authorization_example; // String | Authentication token
var body = new UserUpdateDTO(); // UserUpdateDTO | User description
var acceptLanguage = "en"; // String | Request accepted language
try {
var result = api_instance.updateUser(authorization, body, acceptLanguage);
print(result);
} catch (e) {
print("Exception when calling SecurityApi->updateUser: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
authorization | String | Authentication token | |
body | UserUpdateDTO | User description | [optional] |
acceptLanguage | String | Request accepted language | [optional] |
String
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]