repo
in: path
required: true
description: repository name
schema:
type: string
responses:
'200':
description: number of chunks in the repository
content:
application/json:
schema:
type: integer
format: int64
/{user}/{repo}/chunk-list/{chunk-prefix}:
get:
operationId: GetChunkList
parameters:
- name: user
in: path
required: true
description: user id
schema:
type: string
- name: repo
in: path
required: true
description: repository name
schema:
type: string
- name: chunk-prefix
in: path
required: true
description: first 2 characters of the uid of the chunk
schema:
type: string
responses:
'200':
description: a list of chunk uids that start with the prefix
content:
application/json:
schema:
type: array
items:
type: string
/{user}/{repo}/chunk-list/:
get:
operationId: GetChunkListAll
parameters:
- name: user
in: path
required: true
description: user id
schema:
type: string
- name: repo
in: path
required: true
description: repository name
schema:
type: string
responses:
'200':
description: a full list of chunk uids of the knowledge-base
content:
application/json:
schema:
type: array
items:
type: string
/{user}/{repo}/chunk/{chunk-uid}:
get:
operationId: GetChunk
parameters:
- name: user
in: path
required: true
description: user id
schema:
type: string
- name: repo
in: path
required: true
description: repository name
schema:
type: string
- name: chunk-uid
in: path
required: true
description: uid of the chunk
schema:
type: string
responses:
'200':
description: the chunk
content:
application/json:
schema:
$ref: '#/components/schemas/ChunkDetail'
/{user}/{repo}/image-list/{image-prefix}:
get:
operationId: GetImageList
parameters:
- name: user
in: path
required: true
description: user id
schema:
type: string
- name: repo
in: path
required: true
description: repository name
schema:
type: string
- name: image-prefix
in: path
required: true
description: first 2 characters of the uid of the image
schema:
type: string
responses:
'200':
description: a list of image uids that start with the prefix
content:
application/json:
schema:
type: array
items:
type: string
/{user}/{repo}/image/{image-uid}:
get:
operationId: GetImage
parameters:
- name: user
in: path
required: true
description: user id
schema:
type: string
- name: repo
in: path
required: true
description: repository name
schema:
type: string
- name: image-uid
in: path
required: true
description: uid of the image
schema:
type: string
responses:
'200':
description: the image
content:
image/png: