Skip to content

Latest commit

 

History

History
277 lines (176 loc) · 6.2 KB

DemandsApi.md

File metadata and controls

277 lines (176 loc) · 6.2 KB

r2gapi_flutter_sdk.api.DemandsApi

Load the API package

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/

create

DemandDto create(demandDto)

Create an Deman

Example

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");
}

Parameters

Name Type Description Notes
demandDto DemandDto Offer Data

Return type

DemandDto

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]

delete

DemandDto delete(demandDto)

Delete an Offer

Example

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");
}

Parameters

Name Type Description Notes
demandDto DemandDto Offer Data

Return type

DemandDto

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]

deleteById

DemandDto deleteById(id)

Returns the demand with the given ID

Example

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");
}

Parameters

Name Type Description Notes
id String ID of the demand to find [default to null]

Return type

DemandDto

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]

getById

DemandDto getById(id)

Returns the demand with the given ID

Example

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");
}

Parameters

Name Type Description Notes
id String ID of the demand to find [default to null]

Return type

DemandDto

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]

search

PageDemandDto search(searchDto)

Demand searching

Example

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");
}

Parameters

Name Type Description Notes
searchDto SearchDto Search criteria

Return type

PageDemandDto

Authorization

No authorization required

HTTP request headers

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

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

update

DemandDto update(demandDto)

Update an Offer

Example

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");
}

Parameters

Name Type Description Notes
demandDto DemandDto Offer Data

Return type

DemandDto

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]