import 'package:r2gapi_flutter_sdk/api.dart';
All URIs are relative to https://r2g.api.dev.services.rd2g.de
Method | HTTP request | Description |
---|---|---|
create | post /demand/ | |
delete | delete /demand/ | |
deleteById | delete /demand/{id} | |
getById | get /demand/{id} | |
search | post /demand/search | |
update | put /demand/ |
DemandDto create(demandDto)
Create an Deman
import 'package:r2gapi_flutter_sdk/api.dart';
var api_instance = new DemandsApi();
var demandDto = new DemandDto(); // DemandDto | Offer Data
try {
var result = api_instance.create(demandDto);
print(result);
} catch (e) {
print("Exception when calling DemandsApi->create: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
demandDto | DemandDto | Offer Data |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DemandDto delete(demandDto)
Delete an Offer
import 'package:r2gapi_flutter_sdk/api.dart';
var api_instance = new DemandsApi();
var demandDto = new DemandDto(); // DemandDto | Offer Data
try {
var result = api_instance.delete(demandDto);
print(result);
} catch (e) {
print("Exception when calling DemandsApi->delete: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
demandDto | DemandDto | Offer Data |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DemandDto deleteById(id)
Returns the demand with the given ID
import 'package:r2gapi_flutter_sdk/api.dart';
var api_instance = new DemandsApi();
var id = 01234567-89ab-cdef-0123-456789abcdef; // String | ID of the demand to find
try {
var result = api_instance.deleteById(id);
print(result);
} catch (e) {
print("Exception when calling DemandsApi->deleteById: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | ID of the demand to find | [default to null] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DemandDto getById(id)
Returns the demand with the given ID
import 'package:r2gapi_flutter_sdk/api.dart';
var api_instance = new DemandsApi();
var id = 01234567-89ab-cdef-0123-456789abcdef; // String | ID of the demand to find
try {
var result = api_instance.getById(id);
print(result);
} catch (e) {
print("Exception when calling DemandsApi->getById: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | ID of the demand to find | [default to null] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PageDemandDto search(searchDto)
Demand searching
import 'package:r2gapi_flutter_sdk/api.dart';
var api_instance = new DemandsApi();
var searchDto = new SearchDto(); // SearchDto | Search criteria
try {
var result = api_instance.search(searchDto);
print(result);
} catch (e) {
print("Exception when calling DemandsApi->search: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
searchDto | SearchDto | Search criteria |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DemandDto update(demandDto)
Update an Offer
import 'package:r2gapi_flutter_sdk/api.dart';
var api_instance = new DemandsApi();
var demandDto = new DemandDto(); // DemandDto | Offer Data
try {
var result = api_instance.update(demandDto);
print(result);
} catch (e) {
print("Exception when calling DemandsApi->update: $e\n");
}
Name | Type | Description | Notes |
---|---|---|---|
demandDto | DemandDto | Offer Data |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]