5.1 KiB
5.1 KiB
manager_api_new.api.SectionMapApi
Load the API package
import 'package:manager_api_new/api.dart';
All URIs are relative to https://localhost:5001
| Method | HTTP request | Description |
|---|---|---|
| sectionMapCreate | POST /api/SectionMap/{sectionId}/points | |
| sectionMapDelete | DELETE /api/SectionMap/points/delete/{geoPointId} | |
| sectionMapGetAllGeoPointsFromSection | GET /api/SectionMap/{sectionId}/points | |
| sectionMapUpdate | PUT /api/SectionMap |
sectionMapCreate
GeoPointDTO sectionMapCreate(sectionId, geoPointDTO)
Example
import 'package:manager_api_new/api.dart';
// TODO Configure OAuth2 access token for authorization: bearer
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
final api_instance = SectionMapApi();
final sectionId = sectionId_example; // String |
final geoPointDTO = GeoPointDTO(); // GeoPointDTO |
try {
final result = api_instance.sectionMapCreate(sectionId, geoPointDTO);
print(result);
} catch (e) {
print('Exception when calling SectionMapApi->sectionMapCreate: $e\n');
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| sectionId | String | ||
| geoPointDTO | GeoPointDTO |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
sectionMapDelete
String sectionMapDelete(geoPointId)
Example
import 'package:manager_api_new/api.dart';
// TODO Configure OAuth2 access token for authorization: bearer
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
final api_instance = SectionMapApi();
final geoPointId = 56; // int |
try {
final result = api_instance.sectionMapDelete(geoPointId);
print(result);
} catch (e) {
print('Exception when calling SectionMapApi->sectionMapDelete: $e\n');
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| geoPointId | 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]
sectionMapGetAllGeoPointsFromSection
List sectionMapGetAllGeoPointsFromSection(sectionId)
Example
import 'package:manager_api_new/api.dart';
// TODO Configure OAuth2 access token for authorization: bearer
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
final api_instance = SectionMapApi();
final sectionId = sectionId_example; // String |
try {
final result = api_instance.sectionMapGetAllGeoPointsFromSection(sectionId);
print(result);
} catch (e) {
print('Exception when calling SectionMapApi->sectionMapGetAllGeoPointsFromSection: $e\n');
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| sectionId | String |
Return type
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]
sectionMapUpdate
GeoPoint sectionMapUpdate(geoPointDTO)
Example
import 'package:manager_api_new/api.dart';
// TODO Configure OAuth2 access token for authorization: bearer
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
final api_instance = SectionMapApi();
final geoPointDTO = GeoPointDTO(); // GeoPointDTO |
try {
final result = api_instance.sectionMapUpdate(geoPointDTO);
print(result);
} catch (e) {
print('Exception when calling SectionMapApi->sectionMapUpdate: $e\n');
}
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| geoPointDTO | GeoPointDTO |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]