update service generation

This commit is contained in:
Thomas Fransolet 2023-12-05 14:22:25 +01:00
parent 9fa922df5c
commit 0e7fcd6517
12 changed files with 29 additions and 13 deletions

View File

@ -5,7 +5,7 @@ info:
description: API Manager Service description: API Manager Service
version: Version Alpha version: Version Alpha
servers: servers:
- url: http://localhost:5000 - url: https://api.mymuseum.be
paths: paths:
/api/Configuration: /api/Configuration:
get: get:
@ -2321,6 +2321,10 @@ components:
instanceId: instanceId:
type: string type: string
nullable: true nullable: true
pinCode:
type: integer
format: int32
nullable: true
LoginDTO: LoginDTO:
type: object type: object
additionalProperties: false additionalProperties: false

View File

@ -60,7 +60,7 @@ try {
## Documentation for API Endpoints ## Documentation for API Endpoints
All URIs are relative to *http://localhost:5000* All URIs are relative to *https://api.mymuseum.be*
Class | Method | HTTP request | Description Class | Method | HTTP request | Description
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------

View File

@ -5,7 +5,7 @@
import 'package:manager_api/api.dart'; import 'package:manager_api/api.dart';
``` ```
All URIs are relative to *http://localhost:5000* All URIs are relative to *https://api.mymuseum.be*
Method | HTTP request | Description Method | HTTP request | Description
------------- | ------------- | ------------- ------------- | ------------- | -------------

View File

@ -5,7 +5,7 @@
import 'package:manager_api/api.dart'; import 'package:manager_api/api.dart';
``` ```
All URIs are relative to *http://localhost:5000* All URIs are relative to *https://api.mymuseum.be*
Method | HTTP request | Description Method | HTTP request | Description
------------- | ------------- | ------------- ------------- | ------------- | -------------

View File

@ -5,7 +5,7 @@
import 'package:manager_api/api.dart'; import 'package:manager_api/api.dart';
``` ```
All URIs are relative to *http://localhost:5000* All URIs are relative to *https://api.mymuseum.be*
Method | HTTP request | Description Method | HTTP request | Description
------------- | ------------- | ------------- ------------- | ------------- | -------------

View File

@ -5,7 +5,7 @@
import 'package:manager_api/api.dart'; import 'package:manager_api/api.dart';
``` ```
All URIs are relative to *http://localhost:5000* All URIs are relative to *https://api.mymuseum.be*
Method | HTTP request | Description Method | HTTP request | Description
------------- | ------------- | ------------- ------------- | ------------- | -------------

View File

@ -5,7 +5,7 @@
import 'package:manager_api/api.dart'; import 'package:manager_api/api.dart';
``` ```
All URIs are relative to *http://localhost:5000* All URIs are relative to *https://api.mymuseum.be*
Method | HTTP request | Description Method | HTTP request | Description
------------- | ------------- | ------------- ------------- | ------------- | -------------

View File

@ -5,7 +5,7 @@
import 'package:manager_api/api.dart'; import 'package:manager_api/api.dart';
``` ```
All URIs are relative to *http://localhost:5000* All URIs are relative to *https://api.mymuseum.be*
Method | HTTP request | Description Method | HTTP request | Description
------------- | ------------- | ------------- ------------- | ------------- | -------------

View File

@ -15,6 +15,7 @@ Name | Type | Description | Notes
**expiresIn** | **int** | | [optional] **expiresIn** | **int** | | [optional]
**expiration** | [**DateTime**](DateTime.md) | | [optional] **expiration** | [**DateTime**](DateTime.md) | | [optional]
**instanceId** | **String** | | [optional] **instanceId** | **String** | | [optional]
**pinCode** | **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

@ -5,7 +5,7 @@
import 'package:manager_api/api.dart'; import 'package:manager_api/api.dart';
``` ```
All URIs are relative to *http://localhost:5000* All URIs are relative to *https://api.mymuseum.be*
Method | HTTP request | Description Method | HTTP request | Description
------------- | ------------- | ------------- ------------- | ------------- | -------------

View File

@ -11,7 +11,7 @@
part of openapi.api; part of openapi.api;
class ApiClient { class ApiClient {
ApiClient({this.basePath = 'http://localhost:5000', this.authentication,}); ApiClient({this.basePath = 'https://api.mymuseum.be', this.authentication,});
final String basePath; final String basePath;
final Authentication? authentication; final Authentication? authentication;

View File

@ -20,6 +20,7 @@ class TokenDTO {
this.expiresIn, this.expiresIn,
this.expiration, this.expiration,
this.instanceId, this.instanceId,
this.pinCode,
}); });
String? accessToken; String? accessToken;
@ -48,6 +49,8 @@ class TokenDTO {
String? instanceId; String? instanceId;
int? pinCode;
@override @override
bool operator ==(Object other) => identical(this, other) || other is TokenDTO && bool operator ==(Object other) => identical(this, other) || other is TokenDTO &&
other.accessToken == accessToken && other.accessToken == accessToken &&
@ -56,7 +59,8 @@ class TokenDTO {
other.tokenType == tokenType && other.tokenType == tokenType &&
other.expiresIn == expiresIn && other.expiresIn == expiresIn &&
other.expiration == expiration && other.expiration == expiration &&
other.instanceId == instanceId; other.instanceId == instanceId &&
other.pinCode == pinCode;
@override @override
int get hashCode => int get hashCode =>
@ -67,10 +71,11 @@ class TokenDTO {
(tokenType == null ? 0 : tokenType!.hashCode) + (tokenType == null ? 0 : tokenType!.hashCode) +
(expiresIn == null ? 0 : expiresIn!.hashCode) + (expiresIn == null ? 0 : expiresIn!.hashCode) +
(expiration == null ? 0 : expiration!.hashCode) + (expiration == null ? 0 : expiration!.hashCode) +
(instanceId == null ? 0 : instanceId!.hashCode); (instanceId == null ? 0 : instanceId!.hashCode) +
(pinCode == null ? 0 : pinCode!.hashCode);
@override @override
String toString() => 'TokenDTO[accessToken=$accessToken, refreshToken=$refreshToken, scope=$scope, tokenType=$tokenType, expiresIn=$expiresIn, expiration=$expiration, instanceId=$instanceId]'; String toString() => 'TokenDTO[accessToken=$accessToken, refreshToken=$refreshToken, scope=$scope, tokenType=$tokenType, expiresIn=$expiresIn, expiration=$expiration, instanceId=$instanceId, pinCode=$pinCode]';
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
final json = <String, dynamic>{}; final json = <String, dynamic>{};
@ -109,6 +114,11 @@ class TokenDTO {
} else { } else {
json[r'instanceId'] = null; json[r'instanceId'] = null;
} }
if (this.pinCode != null) {
json[r'pinCode'] = this.pinCode;
} else {
json[r'pinCode'] = null;
}
return json; return json;
} }
@ -138,6 +148,7 @@ class TokenDTO {
expiresIn: mapValueOfType<int>(json, r'expires_in'), expiresIn: mapValueOfType<int>(json, r'expires_in'),
expiration: mapDateTime(json, r'expiration', ''), expiration: mapDateTime(json, r'expiration', ''),
instanceId: mapValueOfType<String>(json, r'instanceId'), instanceId: mapValueOfType<String>(json, r'instanceId'),
pinCode: mapValueOfType<int>(json, r'pinCode'),
); );
} }
return null; return null;