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
version: Version Alpha
servers:
- url: http://localhost:5000
- url: https://api.mymuseum.be
paths:
/api/Configuration:
get:
@ -2321,6 +2321,10 @@ components:
instanceId:
type: string
nullable: true
pinCode:
type: integer
format: int32
nullable: true
LoginDTO:
type: object
additionalProperties: false

View File

@ -60,7 +60,7 @@ try {
## 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
------------ | ------------- | ------------- | -------------

View File

@ -5,7 +5,7 @@
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
------------- | ------------- | -------------

View File

@ -5,7 +5,7 @@
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
------------- | ------------- | -------------

View File

@ -5,7 +5,7 @@
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
------------- | ------------- | -------------

View File

@ -5,7 +5,7 @@
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
------------- | ------------- | -------------

View File

@ -5,7 +5,7 @@
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
------------- | ------------- | -------------

View File

@ -5,7 +5,7 @@
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
------------- | ------------- | -------------

View File

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

View File

@ -5,7 +5,7 @@
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
------------- | ------------- | -------------

View File

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

View File

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