mirror of https://github.com/docker/docs.git
Fix authorization header doc in hub api
Signed-off-by: Nick Adcock <nick.adcock@docker.com>
This commit is contained in:
parent
f289c26392
commit
c2902c2e85
|
@ -58,7 +58,7 @@ definitions:
|
||||||
token:
|
token:
|
||||||
description: |
|
description: |
|
||||||
Created authentication token.
|
Created authentication token.
|
||||||
This token can be used in the HTTP Authentication header as a JWT to authenticate with the Docker Hub APIs.
|
This token can be used in the HTTP Authorization header as a JWT to authenticate with the Docker Hub APIs.
|
||||||
type: string
|
type: string
|
||||||
x-nullable: false
|
x-nullable: false
|
||||||
example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
|
example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
|
||||||
|
@ -484,7 +484,7 @@ paths:
|
||||||
description: |
|
description: |
|
||||||
Creates an authentication token that can be used to authenticate with the Docker Hub APIs.
|
Creates an authentication token that can be used to authenticate with the Docker Hub APIs.
|
||||||
|
|
||||||
The returned token is used in the HTTP Authentication header like `Authentication: JWT {TOKEN}`.
|
The returned token is used in the HTTP Authorization header like `Authorization: JWT {TOKEN}`.
|
||||||
|
|
||||||
Most Docker Hub APIs require this token either to consume or to get detailed information. For example, to list images in a private repository.
|
Most Docker Hub APIs require this token either to consume or to get detailed information. For example, to list images in a private repository.
|
||||||
parameters:
|
parameters:
|
||||||
|
|
Loading…
Reference in New Issue