Просмотр исходного кода

new api and small change

master
Daniel 1 год назад
Родитель
Сommit
8f34b2e6d5
3 измененных файлов: 9 добавлений и 1 удалений
  1. +1
    -1
      export/openapi.json
  2. +6
    -0
      export/openapi.yaml
  3. +2
    -0
      src/ApiResource/SaleApi.php

+ 1
- 1
export/openapi.json
Разница между файлами не показана из-за своего большого размера
Просмотреть файл


+ 6
- 0
export/openapi.yaml Просмотреть файл

@@ -6074,6 +6074,8 @@ components:
items: items:
type: string type: string
required: required:
- partner
- product
- turnover - turnover
- profit - profit
- quantity - quantity
@@ -6161,6 +6163,8 @@ components:
items: items:
type: string type: string
required: required:
- partner
- product
- turnover - turnover
- profit - profit
- quantity - quantity
@@ -6262,6 +6266,8 @@ components:
items: items:
type: string type: string
required: required:
- partner
- product
- turnover - turnover
- profit - profit
- quantity - quantity


+ 2
- 0
src/ApiResource/SaleApi.php Просмотреть файл

@@ -60,6 +60,7 @@ class SaleApi implements OwnerInterface
public ?string $ownerName = null; public ?string $ownerName = null;


#[ApiProperty(writable: true)] #[ApiProperty(writable: true)]
#[NotBlank]
public ?PartnerApi $partner = null; public ?PartnerApi $partner = null;


#[ApiProperty(writable: false)] #[ApiProperty(writable: false)]
@@ -69,6 +70,7 @@ class SaleApi implements OwnerInterface
public ?string $partnerName = null; public ?string $partnerName = null;


#[ApiProperty(writable: true)] #[ApiProperty(writable: true)]
#[NotBlank]
public ?ProductApi $product = null; public ?ProductApi $product = null;


#[ApiProperty(writable: false)] #[ApiProperty(writable: false)]


Загрузка…
Отмена
Сохранить