Florian Eisenmenger пре 2 година
родитељ
комит
7ea115318a
2 измењених фајлова са 37 додато и 7 уклоњено
  1. +36
    -6
      openapi.yaml
  2. +1
    -1
      src/ApiResource/PartnerApi.php

+ 36
- 6
openapi.yaml Прегледај датотеку

@@ -420,6 +420,32 @@ paths:
style: form
explode: false
allowReserved: false
-
name: type
in: query
description: ''
required: false
deprecated: false
allowEmptyValue: true
schema:
type: string
style: form
explode: false
allowReserved: false
-
name: 'type[]'
in: query
description: ''
required: false
deprecated: false
allowEmptyValue: true
schema:
type: array
items:
type: string
style: form
explode: true
allowReserved: false
-
name: 'order[name]'
in: query
@@ -436,7 +462,7 @@ paths:
explode: false
allowReserved: false
-
name: type
name: 'order[city]'
in: query
description: ''
required: false
@@ -444,22 +470,26 @@ paths:
allowEmptyValue: true
schema:
type: string
enum:
- asc
- desc
style: form
explode: false
allowReserved: false
-
name: 'type[]'
name: 'order[website]'
in: query
description: ''
required: false
deprecated: false
allowEmptyValue: true
schema:
type: array
items:
type: string
type: string
enum:
- asc
- desc
style: form
explode: true
explode: false
allowReserved: false
deprecated: false
post:


+ 1
- 1
src/ApiResource/PartnerApi.php Прегледај датотеку

@@ -50,8 +50,8 @@ use Symfony\Component\Validator\Constraints\NotBlank;
processor: EntityClassDtoStateProcessor::class,
stateOptions: new Options(entityClass: Partner::class)
)]
#[ApiFilter(OrderFilter::class, properties: ['name'], arguments: ['orderParameterName' => 'order'])]
#[ApiFilter(SearchFilter::class, properties: ['type' => 'exact'])]
#[ApiFilter(OrderFilter::class, properties: ['name', 'city', 'website'], arguments: ['orderParameterName' => 'order'])]
class PartnerApi
{
#[ApiProperty(readable: false, writable: false, identifier: true)]


Loading…
Откажи
Сачувај