mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Merge pull request #573 from jcrombez/patch-1
[doc] missing "sandbox:" in the authentication yaml examples
This commit is contained in:
commit
e23a7d7d66
@ -397,21 +397,24 @@ You can choose between different authentication methods:
|
|||||||
```yaml
|
```yaml
|
||||||
# app/config/config.yml
|
# app/config/config.yml
|
||||||
nelmio_api_doc:
|
nelmio_api_doc:
|
||||||
authentication:
|
sandbox:
|
||||||
delivery: header
|
authentication:
|
||||||
name: X-Custom
|
delivery: header
|
||||||
|
name: X-Custom
|
||||||
|
|
||||||
# app/config/config.yml
|
# app/config/config.yml
|
||||||
nelmio_api_doc:
|
nelmio_api_doc:
|
||||||
authentication:
|
sandbox:
|
||||||
delivery: query
|
authentication:
|
||||||
name: param
|
delivery: query
|
||||||
|
name: param
|
||||||
|
|
||||||
# app/config/config.yml
|
# app/config/config.yml
|
||||||
nelmio_api_doc:
|
nelmio_api_doc:
|
||||||
authentication:
|
sandbox:
|
||||||
delivery: http
|
authentication:
|
||||||
type: basic # or bearer
|
delivery: http
|
||||||
|
type: basic # or bearer
|
||||||
```
|
```
|
||||||
When choosing an `http` delivery, `name` defaults to `Authorization`,
|
When choosing an `http` delivery, `name` defaults to `Authorization`,
|
||||||
and the header value will automatically be prefixed by the corresponding type (ie. `Basic` or `Bearer`).
|
and the header value will automatically be prefixed by the corresponding type (ie. `Basic` or `Bearer`).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user