added manifest api description
This commit is contained in:
+276
@@ -27,6 +27,39 @@ definitions:
|
||||
updatedBy:
|
||||
type: string
|
||||
type: object
|
||||
descr.Tags:
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
tags:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
mstore_app_imageoper.CheckImagesResult:
|
||||
properties:
|
||||
repositories:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
mstore_app_imageoper.GetRefererResult:
|
||||
properties:
|
||||
reference:
|
||||
type: string
|
||||
type: object
|
||||
mstore_app_imageoper.GetTagsResult:
|
||||
properties:
|
||||
tagDescr:
|
||||
$ref: '#/definitions/descr.Tags'
|
||||
type: object
|
||||
mstore_app_imageoper.ListManifestsResult:
|
||||
properties:
|
||||
repositories:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
host: localhost
|
||||
info:
|
||||
contact:
|
||||
@@ -40,6 +73,249 @@ info:
|
||||
title: Service API
|
||||
version: "1.0"
|
||||
paths:
|
||||
/v2/_catalog:
|
||||
get:
|
||||
description: List manifests
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/mstore_app_imageoper.ListManifestsResult'
|
||||
"404":
|
||||
description: Not Found
|
||||
"405":
|
||||
description: Method Not Allowed
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
summary: List manifests
|
||||
tags:
|
||||
- manifest
|
||||
/v2/{name}/manifests/{reference}:
|
||||
delete:
|
||||
description: Delete manifest
|
||||
parameters:
|
||||
- description: Manifest path
|
||||
in: path
|
||||
name: name
|
||||
required: true
|
||||
type: string
|
||||
- description: Manifest tag
|
||||
in: path
|
||||
name: reference
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"202":
|
||||
description: Accepted
|
||||
"404":
|
||||
description: Not Found
|
||||
"405":
|
||||
description: Method Not Allowed
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
summary: Delete manifest
|
||||
tags:
|
||||
- manifest
|
||||
get:
|
||||
description: Get manifest
|
||||
parameters:
|
||||
- description: Manifest path
|
||||
in: path
|
||||
name: name
|
||||
required: true
|
||||
type: string
|
||||
- description: Manifest tag
|
||||
in: path
|
||||
name: reference
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
headers:
|
||||
Content-Length:
|
||||
description: Manifest size
|
||||
type: string
|
||||
Content-Type:
|
||||
description: Manifest type
|
||||
type: string
|
||||
Docker-Content-Digest:
|
||||
description: Manigest digest
|
||||
type: string
|
||||
"404":
|
||||
description: Not Found
|
||||
"405":
|
||||
description: Method Not Allowed
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
summary: Get manifest
|
||||
tags:
|
||||
- manifest
|
||||
head:
|
||||
description: Get manifest info
|
||||
parameters:
|
||||
- description: Manifest path
|
||||
in: path
|
||||
name: name
|
||||
required: true
|
||||
type: string
|
||||
- description: Manifest tag
|
||||
in: path
|
||||
name: reference
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
headers:
|
||||
Content-Length:
|
||||
description: Manifest size
|
||||
type: string
|
||||
Content-Type:
|
||||
description: Manifest type
|
||||
type: string
|
||||
Docker-Content-Digest:
|
||||
description: Manigest digest
|
||||
type: string
|
||||
"404":
|
||||
description: Not Found
|
||||
"405":
|
||||
description: Method Not Allowed
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
summary: Get manifest info
|
||||
tags:
|
||||
- manifest
|
||||
put:
|
||||
description: Put manifest
|
||||
parameters:
|
||||
- description: Manifest path
|
||||
in: path
|
||||
name: name
|
||||
required: true
|
||||
type: string
|
||||
- description: Manifest tag
|
||||
in: path
|
||||
name: reference
|
||||
required: true
|
||||
type: string
|
||||
- description: Manifest size
|
||||
in: header
|
||||
name: Content-Length
|
||||
required: true
|
||||
type: string
|
||||
- description: Manifest type
|
||||
in: header
|
||||
name: Content-Type
|
||||
required: true
|
||||
type: string
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
"404":
|
||||
description: Not Found
|
||||
"405":
|
||||
description: Method Not Allowed
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
summary: Put manifest
|
||||
tags:
|
||||
- manifest
|
||||
/v2/{name}/referrers/{digest}:
|
||||
get:
|
||||
description: Get manifest referer
|
||||
parameters:
|
||||
- description: Manifest path
|
||||
in: path
|
||||
name: name
|
||||
required: true
|
||||
type: string
|
||||
- description: Manifest digest
|
||||
in: path
|
||||
name: digest
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/mstore_app_imageoper.GetRefererResult'
|
||||
"404":
|
||||
description: Not Found
|
||||
"405":
|
||||
description: Method Not Allowed
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
summary: Get manifest referer
|
||||
tags:
|
||||
- manifest
|
||||
/v2/{name}/tags/list:
|
||||
get:
|
||||
description: List manifest tags
|
||||
parameters:
|
||||
- description: Manifest path
|
||||
in: path
|
||||
name: name
|
||||
required: true
|
||||
type: string
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/mstore_app_imageoper.GetTagsResult'
|
||||
"404":
|
||||
description: Not Found
|
||||
"405":
|
||||
description: Method Not Allowed
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
summary: List manifest tags
|
||||
tags:
|
||||
- manifest
|
||||
/v2/checker/:
|
||||
post:
|
||||
description: Check images
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/mstore_app_imageoper.CheckImagesResult'
|
||||
"404":
|
||||
description: Not Found
|
||||
"405":
|
||||
description: Method Not Allowed
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
summary: Check images
|
||||
tags:
|
||||
- manifest
|
||||
/v2/checker/{name}:
|
||||
post:
|
||||
description: Check images
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/mstore_app_imageoper.CheckImagesResult'
|
||||
"404":
|
||||
description: Not Found
|
||||
"405":
|
||||
description: Method Not Allowed
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
summary: Check images
|
||||
tags:
|
||||
- manifest
|
||||
/v3/collection/{path}:
|
||||
delete:
|
||||
description: Delete collections
|
||||
|
||||
Reference in New Issue
Block a user