Skip to content

Commit

Permalink
?
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed Feb 12, 2024
1 parent e817b1d commit e53934d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/adr/0006-filters.md
Expand Up @@ -103,7 +103,9 @@ final class Parameter {
public string $key;
public \ArrayObject schema;
public array $context;
public function provider(): Operation;
public OpenApi\Parameter $openApi;
public string|callable provider(): Operation;
public string|callable filter();

/**
* The filters should be called within the API Platform state providers as they alter the Doctrine/Elasticsearch Query,
Expand All @@ -123,6 +125,8 @@ $queryString = RequestParser::getQueryString($request);
$request->attributes->set($queryString ? RequestParser::parseRequestParams($queryString) : []);
```

On top of that we will provide an additional `_api_header_parameters`. Should be filled only the specified parameters on an operation.

### Parameter Provider

During the `Provider` phase (`RequestEvent::REQUEST`), we could use a `ParameterProvider`:
Expand Down

0 comments on commit e53934d

Please sign in to comment.