5.6 KiB

mycoreapi.api.UserApi

Load the API package

import 'package:mycoreapi/api.dart';

All URIs are relative to http://192.168.31.140

Method HTTP request Description
userCreateUser POST /api/user
userDeleteUser DELETE /api/user/{id}
userGet GET /api/user Get a list of user
userGet2 GET /api/user/{id} Get a specific user
userUpdateUser PUT /api/user

userCreateUser

UserInfoDetailDTO userCreateUser(userInfo)

Example

import 'package:mycoreapi/api.dart';
// TODO Configure OAuth2 access token for authorization: bearer
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';

final api_instance = UserApi();
final userInfo = UserInfo(); // UserInfo | 

try { 
    final result = api_instance.userCreateUser(userInfo);
    print(result);
} catch (e) {
    print('Exception when calling UserApi->userCreateUser: $e\n');
}

Parameters

Name Type Description Notes
userInfo UserInfo

Return type

UserInfoDetailDTO

Authorization

bearer

HTTP request headers

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

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

userDeleteUser

MultipartFile userDeleteUser(id)

Example

import 'package:mycoreapi/api.dart';
// TODO Configure OAuth2 access token for authorization: bearer
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';

final api_instance = UserApi();
final id = id_example; // String | 

try { 
    final result = api_instance.userDeleteUser(id);
    print(result);
} catch (e) {
    print('Exception when calling UserApi->userDeleteUser: $e\n');
}

Parameters

Name Type Description Notes
id String

Return type

MultipartFile

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/octet-stream

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

userGet

MultipartFile userGet()

Get a list of user

Example

import 'package:mycoreapi/api.dart';
// TODO Configure OAuth2 access token for authorization: bearer
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';

final api_instance = UserApi();

try { 
    final result = api_instance.userGet();
    print(result);
} catch (e) {
    print('Exception when calling UserApi->userGet: $e\n');
}

Parameters

This endpoint does not need any parameter.

Return type

MultipartFile

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/octet-stream

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

userGet2

UserInfoDetailDTO userGet2(id)

Get a specific user

Example

import 'package:mycoreapi/api.dart';
// TODO Configure OAuth2 access token for authorization: bearer
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';

final api_instance = UserApi();
final id = id_example; // String | id user

try { 
    final result = api_instance.userGet2(id);
    print(result);
} catch (e) {
    print('Exception when calling UserApi->userGet2: $e\n');
}

Parameters

Name Type Description Notes
id String id user

Return type

UserInfoDetailDTO

Authorization

bearer

HTTP request headers

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

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

userUpdateUser

UserInfoDetailDTO userUpdateUser(userInfo)

Example

import 'package:mycoreapi/api.dart';
// TODO Configure OAuth2 access token for authorization: bearer
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';

final api_instance = UserApi();
final userInfo = UserInfo(); // UserInfo | 

try { 
    final result = api_instance.userUpdateUser(userInfo);
    print(result);
} catch (e) {
    print('Exception when calling UserApi->userUpdateUser: $e\n');
}

Parameters

Name Type Description Notes
userInfo UserInfo

Return type

UserInfoDetailDTO

Authorization

bearer

HTTP request headers

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

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