mirror of
https://bitbucket.org/myhomie/myhomie_app.git
synced 2025-12-06 09:01:20 +00:00
5.3 KiB
5.3 KiB
mycoreapi.api.ValuesApi
Load the API package
import 'package:mycoreapi/api.dart';
All URIs are relative to http://localhost:25049
| 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:mycoreapi/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
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:mycoreapi/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
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:mycoreapi/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
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:mycoreapi/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
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:mycoreapi/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
HTTP request headers
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]