* Create shared link modal for individual asset * Added API to create asset shared link * Added viewer for individual shared link * Added multiselection app bar * Refactor gallery viewer to its own component * Refactor * Refactor * Add and remove asset from shared link * Fixed test * Fixed notification card doesn't wrap * Add check asset access when created asset shared link * pr feedback
12 KiB
Generated
openapi.api.UserApi
Load the API package
import 'package:openapi/api.dart';
All URIs are relative to /api
Method | HTTP request | Description |
---|---|---|
createProfileImage | POST /user/profile-image | |
createUser | POST /user | |
deleteUser | DELETE /user/{userId} | |
getAllUsers | GET /user | |
getMyUserInfo | GET /user/me | |
getProfileImage | GET /user/profile-image/{userId} | |
getUserById | GET /user/info/{userId} | |
getUserCount | GET /user/count | |
restoreUser | POST /user/{userId}/restore | |
updateUser | PUT /user |
createProfileImage
CreateProfileImageResponseDto createProfileImage(file)
Example
import 'package:openapi/api.dart';
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = UserApi();
final file = BINARY_DATA_HERE; // MultipartFile |
try {
final result = api_instance.createProfileImage(file);
print(result);
} catch (e) {
print('Exception when calling UserApi->createProfileImage: $e\n');
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
file | MultipartFile |
Return type
Authorization
HTTP request headers
- Content-Type: multipart/form-data
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
createUser
UserResponseDto createUser(createUserDto)
Example
import 'package:openapi/api.dart';
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = UserApi();
final createUserDto = CreateUserDto(); // CreateUserDto |
try {
final result = api_instance.createUser(createUserDto);
print(result);
} catch (e) {
print('Exception when calling UserApi->createUser: $e\n');
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
createUserDto | CreateUserDto |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteUser
UserResponseDto deleteUser(userId)
Example
import 'package:openapi/api.dart';
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = UserApi();
final userId = userId_example; // String |
try {
final result = api_instance.deleteUser(userId);
print(result);
} catch (e) {
print('Exception when calling UserApi->deleteUser: $e\n');
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
userId | 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]
getAllUsers
List getAllUsers(isAll)
Example
import 'package:openapi/api.dart';
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = UserApi();
final isAll = true; // bool |
try {
final result = api_instance.getAllUsers(isAll);
print(result);
} catch (e) {
print('Exception when calling UserApi->getAllUsers: $e\n');
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
isAll | bool |
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]
getMyUserInfo
UserResponseDto getMyUserInfo()
Example
import 'package:openapi/api.dart';
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = UserApi();
try {
final result = api_instance.getMyUserInfo();
print(result);
} catch (e) {
print('Exception when calling UserApi->getMyUserInfo: $e\n');
}
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]
getProfileImage
Object getProfileImage(userId)
Example
import 'package:openapi/api.dart';
final api_instance = UserApi();
final userId = userId_example; // String |
try {
final result = api_instance.getProfileImage(userId);
print(result);
} catch (e) {
print('Exception when calling UserApi->getProfileImage: $e\n');
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
userId | String |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getUserById
UserResponseDto getUserById(userId)
Example
import 'package:openapi/api.dart';
final api_instance = UserApi();
final userId = userId_example; // String |
try {
final result = api_instance.getUserById(userId);
print(result);
} catch (e) {
print('Exception when calling UserApi->getUserById: $e\n');
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
userId | String |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getUserCount
UserCountResponseDto getUserCount(admin)
Example
import 'package:openapi/api.dart';
final api_instance = UserApi();
final admin = true; // bool |
try {
final result = api_instance.getUserCount(admin);
print(result);
} catch (e) {
print('Exception when calling UserApi->getUserCount: $e\n');
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
admin | bool | [optional] [default to false] |
Return type
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
restoreUser
UserResponseDto restoreUser(userId)
Example
import 'package:openapi/api.dart';
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = UserApi();
final userId = userId_example; // String |
try {
final result = api_instance.restoreUser(userId);
print(result);
} catch (e) {
print('Exception when calling UserApi->restoreUser: $e\n');
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
userId | 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]
updateUser
UserResponseDto updateUser(updateUserDto)
Example
import 'package:openapi/api.dart';
// TODO Configure HTTP Bearer authorization: bearer
// Case 1. Use String Token
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication<HttpBearerAuth>('bearer').setAccessToken(yourTokenGeneratorFunction);
final api_instance = UserApi();
final updateUserDto = UpdateUserDto(); // UpdateUserDto |
try {
final result = api_instance.updateUser(updateUserDto);
print(result);
} catch (e) {
print('Exception when calling UserApi->updateUser: $e\n');
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
updateUserDto | UpdateUserDto |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]