Merge pull request #2813 from lucab/ups/spec-json-binary

registry: fix binary JSON content-type
This commit is contained in:
Ryan Abrams 2019-03-01 14:26:54 -08:00 committed by GitHub
commit c192a281f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 135 additions and 135 deletions

View file

@ -1206,7 +1206,7 @@ The registry does not implement the V2 API.
401 Unauthorized
WWW-Authenticate: <scheme> realm="<realm>", ..."
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -1244,7 +1244,7 @@ The error codes that may be included in the response body are enumerated below:
```
429 Too Many Requests
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -1316,7 +1316,7 @@ The following parameters should be specified on the request:
```
200 OK
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"name": <name>,
@ -1344,7 +1344,7 @@ The following headers will be returned with the response:
401 Unauthorized
WWW-Authenticate: <scheme> realm="<realm>", ..."
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -1382,7 +1382,7 @@ The error codes that may be included in the response body are enumerated below:
```
404 Not Found
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -1419,7 +1419,7 @@ The error codes that may be included in the response body are enumerated below:
```
403 Forbidden
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -1456,7 +1456,7 @@ The error codes that may be included in the response body are enumerated below:
```
429 Too Many Requests
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -1514,7 +1514,7 @@ The following parameters should be specified on the request:
200 OK
Content-Length: <length>
Link: <<url>?n=<last n value>&last=<last entry from response>>; rel="next"
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"name": <name>,
@ -1543,7 +1543,7 @@ The following headers will be returned with the response:
401 Unauthorized
WWW-Authenticate: <scheme> realm="<realm>", ..."
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -1581,7 +1581,7 @@ The error codes that may be included in the response body are enumerated below:
```
404 Not Found
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -1618,7 +1618,7 @@ The error codes that may be included in the response body are enumerated below:
```
403 Forbidden
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -1655,7 +1655,7 @@ The error codes that may be included in the response body are enumerated below:
```
429 Too Many Requests
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -1759,7 +1759,7 @@ The following headers will be returned with the response:
```
400 Bad Request
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -1792,7 +1792,7 @@ The error codes that may be included in the response body are enumerated below:
401 Unauthorized
WWW-Authenticate: <scheme> realm="<realm>", ..."
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -1830,7 +1830,7 @@ The error codes that may be included in the response body are enumerated below:
```
404 Not Found
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -1867,7 +1867,7 @@ The error codes that may be included in the response body are enumerated below:
```
403 Forbidden
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -1904,7 +1904,7 @@ The error codes that may be included in the response body are enumerated below:
```
429 Too Many Requests
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -2005,7 +2005,7 @@ The following headers will be returned with the response:
```
400 Bad Request
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -2041,7 +2041,7 @@ The error codes that may be included in the response body are enumerated below:
401 Unauthorized
WWW-Authenticate: <scheme> realm="<realm>", ..."
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -2079,7 +2079,7 @@ The error codes that may be included in the response body are enumerated below:
```
404 Not Found
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -2116,7 +2116,7 @@ The error codes that may be included in the response body are enumerated below:
```
403 Forbidden
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -2153,7 +2153,7 @@ The error codes that may be included in the response body are enumerated below:
```
429 Too Many Requests
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -2189,7 +2189,7 @@ The error codes that may be included in the response body are enumerated below:
```
400 Bad Request
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [{
@ -2277,7 +2277,7 @@ The following parameters should be specified on the request:
```
400 Bad Request
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -2310,7 +2310,7 @@ The error codes that may be included in the response body are enumerated below:
401 Unauthorized
WWW-Authenticate: <scheme> realm="<realm>", ..."
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -2348,7 +2348,7 @@ The error codes that may be included in the response body are enumerated below:
```
404 Not Found
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -2385,7 +2385,7 @@ The error codes that may be included in the response body are enumerated below:
```
403 Forbidden
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -2422,7 +2422,7 @@ The error codes that may be included in the response body are enumerated below:
```
429 Too Many Requests
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -2458,7 +2458,7 @@ The error codes that may be included in the response body are enumerated below:
```
404 Not Found
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -2583,7 +2583,7 @@ The following headers will be returned with the response:
```
400 Bad Request
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -2614,7 +2614,7 @@ The error codes that may be included in the response body are enumerated below:
```
404 Not Found
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -2647,7 +2647,7 @@ The error codes that may be included in the response body are enumerated below:
401 Unauthorized
WWW-Authenticate: <scheme> realm="<realm>", ..."
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -2685,7 +2685,7 @@ The error codes that may be included in the response body are enumerated below:
```
404 Not Found
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -2722,7 +2722,7 @@ The error codes that may be included in the response body are enumerated below:
```
403 Forbidden
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -2759,7 +2759,7 @@ The error codes that may be included in the response body are enumerated below:
```
429 Too Many Requests
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -2843,7 +2843,7 @@ The following headers will be returned with the response:
```
400 Bad Request
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -2874,7 +2874,7 @@ The error codes that may be included in the response body are enumerated below:
```
404 Not Found
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -2917,7 +2917,7 @@ The range specification cannot be satisfied for the requested content. This can
401 Unauthorized
WWW-Authenticate: <scheme> realm="<realm>", ..."
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -2955,7 +2955,7 @@ The error codes that may be included in the response body are enumerated below:
```
404 Not Found
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -2992,7 +2992,7 @@ The error codes that may be included in the response body are enumerated below:
```
403 Forbidden
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -3029,7 +3029,7 @@ The error codes that may be included in the response body are enumerated below:
```
429 Too Many Requests
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -3132,7 +3132,7 @@ The error codes that may be included in the response body are enumerated below:
```
404 Not Found
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -3163,7 +3163,7 @@ The error codes that may be included in the response body are enumerated below:
```
405 Method Not Allowed
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -3195,7 +3195,7 @@ The error codes that may be included in the response body are enumerated below:
401 Unauthorized
WWW-Authenticate: <scheme> realm="<realm>", ..."
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -3233,7 +3233,7 @@ The error codes that may be included in the response body are enumerated below:
```
404 Not Found
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -3270,7 +3270,7 @@ The error codes that may be included in the response body are enumerated below:
```
403 Forbidden
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -3307,7 +3307,7 @@ The error codes that may be included in the response body are enumerated below:
```
429 Too Many Requests
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -3445,7 +3445,7 @@ The error codes that may be included in the response body are enumerated below:
401 Unauthorized
WWW-Authenticate: <scheme> realm="<realm>", ..."
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -3483,7 +3483,7 @@ The error codes that may be included in the response body are enumerated below:
```
404 Not Found
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -3520,7 +3520,7 @@ The error codes that may be included in the response body are enumerated below:
```
403 Forbidden
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -3557,7 +3557,7 @@ The error codes that may be included in the response body are enumerated below:
```
429 Too Many Requests
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -3662,7 +3662,7 @@ The error codes that may be included in the response body are enumerated below:
401 Unauthorized
WWW-Authenticate: <scheme> realm="<realm>", ..."
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -3700,7 +3700,7 @@ The error codes that may be included in the response body are enumerated below:
```
404 Not Found
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -3737,7 +3737,7 @@ The error codes that may be included in the response body are enumerated below:
```
403 Forbidden
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -3774,7 +3774,7 @@ The error codes that may be included in the response body are enumerated below:
```
429 Too Many Requests
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -3897,7 +3897,7 @@ The error codes that may be included in the response body are enumerated below:
401 Unauthorized
WWW-Authenticate: <scheme> realm="<realm>", ..."
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -3935,7 +3935,7 @@ The error codes that may be included in the response body are enumerated below:
```
404 Not Found
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -3972,7 +3972,7 @@ The error codes that may be included in the response body are enumerated below:
```
403 Forbidden
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -4009,7 +4009,7 @@ The error codes that may be included in the response body are enumerated below:
```
429 Too Many Requests
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -4102,7 +4102,7 @@ The following headers will be returned with the response:
```
400 Bad Request
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -4134,7 +4134,7 @@ The error codes that may be included in the response body are enumerated below:
```
404 Not Found
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -4166,7 +4166,7 @@ The error codes that may be included in the response body are enumerated below:
401 Unauthorized
WWW-Authenticate: <scheme> realm="<realm>", ..."
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -4204,7 +4204,7 @@ The error codes that may be included in the response body are enumerated below:
```
404 Not Found
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -4241,7 +4241,7 @@ The error codes that may be included in the response body are enumerated below:
```
403 Forbidden
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -4278,7 +4278,7 @@ The error codes that may be included in the response body are enumerated below:
```
429 Too Many Requests
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -4370,7 +4370,7 @@ The following headers will be returned with the response:
```
400 Bad Request
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -4402,7 +4402,7 @@ The error codes that may be included in the response body are enumerated below:
```
404 Not Found
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -4434,7 +4434,7 @@ The error codes that may be included in the response body are enumerated below:
401 Unauthorized
WWW-Authenticate: <scheme> realm="<realm>", ..."
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -4472,7 +4472,7 @@ The error codes that may be included in the response body are enumerated below:
```
404 Not Found
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -4509,7 +4509,7 @@ The error codes that may be included in the response body are enumerated below:
```
403 Forbidden
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -4546,7 +4546,7 @@ The error codes that may be included in the response body are enumerated below:
```
429 Too Many Requests
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -4636,7 +4636,7 @@ The following headers will be returned with the response:
```
400 Bad Request
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -4668,7 +4668,7 @@ The error codes that may be included in the response body are enumerated below:
```
404 Not Found
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -4710,7 +4710,7 @@ The `Content-Range` specification cannot be accepted, either because it does not
401 Unauthorized
WWW-Authenticate: <scheme> realm="<realm>", ..."
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -4748,7 +4748,7 @@ The error codes that may be included in the response body are enumerated below:
```
404 Not Found
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -4785,7 +4785,7 @@ The error codes that may be included in the response body are enumerated below:
```
403 Forbidden
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -4822,7 +4822,7 @@ The error codes that may be included in the response body are enumerated below:
```
429 Too Many Requests
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -4916,7 +4916,7 @@ The following headers will be returned with the response:
```
400 Bad Request
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -4949,7 +4949,7 @@ The error codes that may be included in the response body are enumerated below:
```
404 Not Found
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -4981,7 +4981,7 @@ The error codes that may be included in the response body are enumerated below:
401 Unauthorized
WWW-Authenticate: <scheme> realm="<realm>", ..."
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -5019,7 +5019,7 @@ The error codes that may be included in the response body are enumerated below:
```
404 Not Found
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -5056,7 +5056,7 @@ The error codes that may be included in the response body are enumerated below:
```
403 Forbidden
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -5093,7 +5093,7 @@ The error codes that may be included in the response body are enumerated below:
```
429 Too Many Requests
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -5177,7 +5177,7 @@ The following headers will be returned with the response:
```
400 Bad Request
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -5208,7 +5208,7 @@ The error codes that may be included in the response body are enumerated below:
```
404 Not Found
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -5240,7 +5240,7 @@ The error codes that may be included in the response body are enumerated below:
401 Unauthorized
WWW-Authenticate: <scheme> realm="<realm>", ..."
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -5278,7 +5278,7 @@ The error codes that may be included in the response body are enumerated below:
```
404 Not Found
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -5315,7 +5315,7 @@ The error codes that may be included in the response body are enumerated below:
```
403 Forbidden
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -5352,7 +5352,7 @@ The error codes that may be included in the response body are enumerated below:
```
429 Too Many Requests
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"errors:" [
@ -5414,7 +5414,7 @@ Request an unabridged list of repositories available. The implementation may im
```
200 OK
Content-Length: <length>
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"repositories": [
@ -5459,7 +5459,7 @@ The following parameters should be specified on the request:
200 OK
Content-Length: <length>
Link: <<url>?n=<last n value>&last=<last entry from response>>; rel="next"
Content-Type: application/json; charset=utf-8
Content-Type: application/json
{
"repositories": [

View file

@ -60,7 +60,7 @@ return this response:
```
HTTP/1.1 401 Unauthorized
Content-Type: application/json; charset=utf-8
Content-Type: application/json
Docker-Distribution-Api-Version: registry/2.0
Www-Authenticate: Bearer realm="https://auth.docker.io/token",service="registry.docker.io",scope="repository:samalba/my-app:pull,push"
Date: Thu, 10 Sep 2015 19:32:31 GMT