Skip to content

api_client.api.BaseUserApi

Load the API package

import 'package:api_client/api.dart';

All URIs are relative to https://localhost

Method HTTP request Description
deleteUser POST /deleteUser
getUser GET /getUser
getUsers POST /getUsers
saveUser POST /saveUser

deleteUser

deleteUser(id)

Example

import 'package:api_client/api.dart';

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

try { 
    api_instance.deleteUser(id);
} catch (e) {
    print("Exception when calling BaseUserApi->deleteUser: $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]

getUser

UserServiceModel getUser(id)

Example

import 'package:api_client/api.dart';

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

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

Parameters

Name Type Description Notes
id String [optional]

Return type

UserServiceModel

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]

getUsers

QueryResultUserServiceModel getUsers(request)

Example

import 'package:api_client/api.dart';

var api_instance = new BaseUserApi();
var request = new UserQueryRequest(); // UserQueryRequest | 

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

Parameters

Name Type Description Notes
request UserQueryRequest [optional]

Return type

QueryResultUserServiceModel

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]

saveUser

UserServiceModel saveUser(model)

Example

import 'package:api_client/api.dart';

var api_instance = new BaseUserApi();
var model = new UserServiceModel(); // UserServiceModel | 

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

Parameters

Name Type Description Notes
model UserServiceModel [optional]

Return type

UserServiceModel

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