How do I set the partial route api.strict option?
- Dominant language
- PHP
- Stars
- 9.4k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
| Q | A
| ----------------- | ---
| Bug? | no
| New Feature? | yes
| Framework | Laravel
| Framework version | 5.7.18
| Package version | 2.0.0-alpha2
| PHP version | 7.2.15
#### Actual Behaviour
set .ENV `API_STRICT=true` and request header `Accept:application/vnd.xxx.v1+json` it's work.
but third service request no header `Accept:application/vnd.xxx.v1+json` and I can't ask them to correcting something.
I tried set `config(['api.strict' => false])` in loaded middleware, not work.
#### Expected Behaviour
`Accept header could not be properly parsed because of a strict matching process.`
#### Steps to Reproduce
#### Possible Solutions
`$api->get()->apiStrict(false);`?
Contributor guide
Assessment
This issue has not been assessed yet.