Ver código fonte

fix openapi api

master
Daniel 1 ano atrás
pai
commit
1d57386f31
7 arquivos alterados com 42 adições e 6 exclusões
  1. +1
    -1
      angular/openapi.json
  2. +4
    -1
      angular/openapi.yaml
  3. +1
    -1
      angular/src/app/core/api/v1/.openapi-generator/FILES
  4. +2
    -2
      angular/src/app/core/api/v1/model/authResponse.ts
  5. +29
    -0
      angular/src/app/core/api/v1/model/authResponseUser.ts
  6. +1
    -0
      angular/src/app/core/api/v1/model/models.ts
  7. +4
    -1
      httpdocs/src/OpenApi/AuthDecorator.php

+ 1
- 1
angular/openapi.json
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 4
- 1
angular/openapi.yaml Ver arquivo

@@ -2926,7 +2926,10 @@ components:
type: string
readOnly: true
user:
$ref: '#/components/schemas/User'
type: object
allOf:
-
$ref: '#/components/schemas/User'
readOnly: true
responses: { }
parameters: { }


+ 1
- 1
angular/src/app/core/api/v1/.openapi-generator/FILES Ver arquivo

@@ -1,5 +1,4 @@
.gitignore
.openapi-generator-ignore
README.md
api.module.ts
api/api.ts
@@ -34,6 +33,7 @@ model/apiUsersGetCollection200Response.ts
model/apiVesselsGetCollection200Response.ts
model/apiZonesGetCollection200Response.ts
model/authResponse.ts
model/authResponseUser.ts
model/credentials.ts
model/location.ts
model/locationJsonld.ts


+ 2
- 2
angular/src/app/core/api/v1/model/authResponse.ts Ver arquivo

@@ -9,7 +9,7 @@
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { User } from './user';
import { AuthResponseUser } from './authResponseUser';


export interface AuthResponse {
@@ -19,6 +19,6 @@ export interface AuthResponse {
readonly firstName?: string;
readonly lastName?: string;
roles?: Array<string>;
readonly user?: User;
user?: AuthResponseUser;
}


+ 29
- 0
angular/src/app/core/api/v1/model/authResponseUser.ts Ver arquivo

@@ -0,0 +1,29 @@
/**
* Imaq Platform
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


export interface AuthResponseUser {
readonly dbId?: any | null;
email: any | null;
firstName: any | null;
lastName: any | null;
image?: any | null;
readonly imageUrl?: any | null;
readonly fullName?: any | null;
/**
* The plaintext password when being set or changed.
*/
password?: any | null;
active?: any | null;
readonly createdAt?: any | null;
}


+ 1
- 0
angular/src/app/core/api/v1/model/models.ts Ver arquivo

@@ -13,6 +13,7 @@ export * from './apiUsersGetCollection200Response';
export * from './apiVesselsGetCollection200Response';
export * from './apiZonesGetCollection200Response';
export * from './authResponse';
export * from './authResponseUser';
export * from './credentials';
export * from './location';
export * from './locationJsonld';


+ 4
- 1
httpdocs/src/OpenApi/AuthDecorator.php Ver arquivo

@@ -66,7 +66,10 @@ final class AuthDecorator implements OpenApiFactoryInterface
'readOnly' => true,
],
'user' => [
'$ref' => '#/components/schemas/User', // API Platform's automatisch generiertes Schema
'type' => 'object',
'allOf' => [
['$ref' => '#/components/schemas/User']
],
'readOnly' => true,
],
],


Carregando…
Cancelar
Salvar