Service generation update

This commit is contained in:
Fransolet Thomas 2023-02-17 17:30:01 +01:00
parent c97e20c0aa
commit ebf9cabcb1
6 changed files with 28 additions and 12 deletions

View File

@ -1217,13 +1217,18 @@ paths:
- Section - Section
operationId: Section_GetAllBeaconsForInstance operationId: Section_GetAllBeaconsForInstance
parameters: parameters:
- name: instanceId
in: query
schema:
type: string
nullable: true
x-position: 1
- name: id - name: id
in: path in: path
required: true required: true
schema: schema:
type: string type: string
nullable: true x-position: 2
x-position: 1
responses: responses:
'200': '200':
description: '' description: ''
@ -1786,7 +1791,8 @@ components:
isBeacon: isBeacon:
type: boolean type: boolean
beaconId: beaconId:
type: string type: integer
format: int32
nullable: true nullable: true
SectionType: SectionType:
type: integer type: integer

View File

@ -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) [[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** # **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 api_instance = SectionApi();
final id = id_example; // String | final id = id_example; // String |
final instanceId = instanceId_example; // String |
try { try {
final result = api_instance.sectionGetAllBeaconsForInstance(id); final result = api_instance.sectionGetAllBeaconsForInstance(id, instanceId);
print(result); print(result);
} catch (e) { } catch (e) {
print('Exception when calling SectionApi->sectionGetAllBeaconsForInstance: $e\n'); print('Exception when calling SectionApi->sectionGetAllBeaconsForInstance: $e\n');
@ -228,6 +229,7 @@ try {
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**id** | **String**| | **id** | **String**| |
**instanceId** | **String**| | [optional]
### Return type ### Return type

View File

@ -26,7 +26,7 @@ Name | Type | Description | Notes
**longitude** | **String** | | [optional] **longitude** | **String** | | [optional]
**meterZoneGPS** | **int** | | [optional] **meterZoneGPS** | **int** | | [optional]
**isBeacon** | **bool** | | [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) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

View File

@ -217,7 +217,9 @@ class SectionApi {
/// Parameters: /// Parameters:
/// ///
/// * [String] id (required): /// * [String] id (required):
Future<Response> sectionGetAllBeaconsForInstanceWithHttpInfo(String id,) async { ///
/// * [String] instanceId:
Future<Response> sectionGetAllBeaconsForInstanceWithHttpInfo(String id, { String? instanceId, }) async {
// ignore: prefer_const_declarations // ignore: prefer_const_declarations
final path = r'/api/Section/beacons/{id}' final path = r'/api/Section/beacons/{id}'
.replaceAll('{id}', id); .replaceAll('{id}', id);
@ -229,6 +231,10 @@ class SectionApi {
final headerParams = <String, String>{}; final headerParams = <String, String>{};
final formParams = <String, String>{}; final formParams = <String, String>{};
if (instanceId != null) {
queryParams.addAll(_queryParams('', 'instanceId', instanceId));
}
const contentTypes = <String>[]; const contentTypes = <String>[];
@ -246,8 +252,10 @@ class SectionApi {
/// Parameters: /// Parameters:
/// ///
/// * [String] id (required): /// * [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) { if (response.statusCode >= HttpStatus.badRequest) {
throw ApiException(response.statusCode, await _decodeBodyBytes(response)); throw ApiException(response.statusCode, await _decodeBodyBytes(response));
} }

View File

@ -100,7 +100,7 @@ class SectionDTO {
/// ///
bool? isBeacon; bool? isBeacon;
String? beaconId; int? beaconId;
@override @override
bool operator ==(Object other) => identical(this, other) || other is SectionDTO && bool operator ==(Object other) => identical(this, other) || other is SectionDTO &&
@ -249,7 +249,7 @@ class SectionDTO {
longitude: mapValueOfType<String>(json, r'longitude'), longitude: mapValueOfType<String>(json, r'longitude'),
meterZoneGPS: mapValueOfType<int>(json, r'meterZoneGPS'), meterZoneGPS: mapValueOfType<int>(json, r'meterZoneGPS'),
isBeacon: mapValueOfType<bool>(json, r'isBeacon'), isBeacon: mapValueOfType<bool>(json, r'isBeacon'),
beaconId: mapValueOfType<String>(json, r'beaconId'), beaconId: mapValueOfType<int>(json, r'beaconId'),
); );
} }
return null; return null;

View File

@ -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. # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at # Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.1+6 version: 1.0.1+7
environment: environment:
sdk: ">=2.16.2 <3.0.0" sdk: ">=2.16.2 <3.0.0"