Service generation update
This commit is contained in:
parent
c97e20c0aa
commit
ebf9cabcb1
@ -1217,13 +1217,18 @@ paths:
|
||||
- Section
|
||||
operationId: Section_GetAllBeaconsForInstance
|
||||
parameters:
|
||||
- name: instanceId
|
||||
in: query
|
||||
schema:
|
||||
type: string
|
||||
nullable: true
|
||||
x-position: 1
|
||||
- name: id
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
nullable: true
|
||||
x-position: 1
|
||||
x-position: 2
|
||||
responses:
|
||||
'200':
|
||||
description: ''
|
||||
@ -1786,7 +1791,8 @@ components:
|
||||
isBeacon:
|
||||
type: boolean
|
||||
beaconId:
|
||||
type: string
|
||||
type: integer
|
||||
format: int32
|
||||
nullable: true
|
||||
SectionType:
|
||||
type: integer
|
||||
|
||||
@ -202,7 +202,7 @@ Name | Type | Description | Notes
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **sectionGetAllBeaconsForInstance**
|
||||
> List<SectionDTO> sectionGetAllBeaconsForInstance(id)
|
||||
> List<SectionDTO> sectionGetAllBeaconsForInstance(id, instanceId)
|
||||
|
||||
|
||||
|
||||
@ -214,9 +214,10 @@ import 'package:manager_api/api.dart';
|
||||
|
||||
final api_instance = SectionApi();
|
||||
final id = id_example; // String |
|
||||
final instanceId = instanceId_example; // String |
|
||||
|
||||
try {
|
||||
final result = api_instance.sectionGetAllBeaconsForInstance(id);
|
||||
final result = api_instance.sectionGetAllBeaconsForInstance(id, instanceId);
|
||||
print(result);
|
||||
} catch (e) {
|
||||
print('Exception when calling SectionApi->sectionGetAllBeaconsForInstance: $e\n');
|
||||
@ -228,6 +229,7 @@ try {
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**id** | **String**| |
|
||||
**instanceId** | **String**| | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
|
||||
@ -26,7 +26,7 @@ Name | Type | Description | Notes
|
||||
**longitude** | **String** | | [optional]
|
||||
**meterZoneGPS** | **int** | | [optional]
|
||||
**isBeacon** | **bool** | | [optional]
|
||||
**beaconId** | **String** | | [optional]
|
||||
**beaconId** | **int** | | [optional]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
@ -217,7 +217,9 @@ class SectionApi {
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [String] id (required):
|
||||
Future<Response> sectionGetAllBeaconsForInstanceWithHttpInfo(String id,) async {
|
||||
///
|
||||
/// * [String] instanceId:
|
||||
Future<Response> sectionGetAllBeaconsForInstanceWithHttpInfo(String id, { String? instanceId, }) async {
|
||||
// ignore: prefer_const_declarations
|
||||
final path = r'/api/Section/beacons/{id}'
|
||||
.replaceAll('{id}', id);
|
||||
@ -229,6 +231,10 @@ class SectionApi {
|
||||
final headerParams = <String, String>{};
|
||||
final formParams = <String, String>{};
|
||||
|
||||
if (instanceId != null) {
|
||||
queryParams.addAll(_queryParams('', 'instanceId', instanceId));
|
||||
}
|
||||
|
||||
const contentTypes = <String>[];
|
||||
|
||||
|
||||
@ -246,8 +252,10 @@ class SectionApi {
|
||||
/// Parameters:
|
||||
///
|
||||
/// * [String] id (required):
|
||||
Future<List<SectionDTO>?> sectionGetAllBeaconsForInstance(String id,) async {
|
||||
final response = await sectionGetAllBeaconsForInstanceWithHttpInfo(id,);
|
||||
///
|
||||
/// * [String] instanceId:
|
||||
Future<List<SectionDTO>?> sectionGetAllBeaconsForInstance(String id, { String? instanceId, }) async {
|
||||
final response = await sectionGetAllBeaconsForInstanceWithHttpInfo(id, instanceId: instanceId, );
|
||||
if (response.statusCode >= HttpStatus.badRequest) {
|
||||
throw ApiException(response.statusCode, await _decodeBodyBytes(response));
|
||||
}
|
||||
|
||||
@ -100,7 +100,7 @@ class SectionDTO {
|
||||
///
|
||||
bool? isBeacon;
|
||||
|
||||
String? beaconId;
|
||||
int? beaconId;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) => identical(this, other) || other is SectionDTO &&
|
||||
@ -249,7 +249,7 @@ class SectionDTO {
|
||||
longitude: mapValueOfType<String>(json, r'longitude'),
|
||||
meterZoneGPS: mapValueOfType<int>(json, r'meterZoneGPS'),
|
||||
isBeacon: mapValueOfType<bool>(json, r'isBeacon'),
|
||||
beaconId: mapValueOfType<String>(json, r'beaconId'),
|
||||
beaconId: mapValueOfType<int>(json, r'beaconId'),
|
||||
);
|
||||
}
|
||||
return null;
|
||||
|
||||
@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
||||
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
|
||||
# Read more about iOS versioning at
|
||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||
version: 1.0.1+6
|
||||
version: 1.0.1+7
|
||||
|
||||
environment:
|
||||
sdk: ">=2.16.2 <3.0.0"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user