myhomie_app/mycore_api/doc/ValuesApi.md

5.2 KiB

mycore_api.api.ValuesApi

Load the API package

import 'package:mycore_api/api.dart';

All URIs are relative to http://192.168.31.140

Method HTTP request Description
valuesDelete DELETE /api/test/{id}
valuesGet GET /api/test/{id}
valuesGetAll GET /api/test It's a test ! :)
valuesPost POST /api/test
valuesPut PUT /api/test/{id}

valuesDelete

valuesDelete(id)

Example

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

final api_instance = ValuesApi();
final id = 56; // int | 

try {
    api_instance.valuesDelete(id);
} catch (e) {
    print('Exception when calling ValuesApi->valuesDelete: $e\n');
}

Parameters

Name Type Description Notes
id int

Return type

void (empty response body)

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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

valuesGet

String valuesGet(id)

Example

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

final api_instance = ValuesApi();
final id = 56; // int | 

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

Parameters

Name Type Description Notes
id int

Return type

String

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]

valuesGetAll

List valuesGetAll()

It's a test ! :)

Example

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

final api_instance = ValuesApi();

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

Parameters

This endpoint does not need any parameter.

Return type

List

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]

valuesPost

valuesPost(body)

Example

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

final api_instance = ValuesApi();
final body = String(); // String | 

try {
    api_instance.valuesPost(body);
} catch (e) {
    print('Exception when calling ValuesApi->valuesPost: $e\n');
}

Parameters

Name Type Description Notes
body String

Return type

void (empty response body)

Authorization

bearer

HTTP request headers

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

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

valuesPut

valuesPut(id, body)

Example

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

final api_instance = ValuesApi();
final id = 56; // int | 
final body = String(); // String | 

try {
    api_instance.valuesPut(id, body);
} catch (e) {
    print('Exception when calling ValuesApi->valuesPut: $e\n');
}

Parameters

Name Type Description Notes
id int
body String

Return type

void (empty response body)

Authorization

bearer

HTTP request headers

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

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