Home Explore Blog Models CI



ragit

2nd chunk of `docs/ragithub/openapi.yaml`
c12ce610774a0e4467dc60f26e8574dcf404d4f938de77020000000100000fa0
 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:

Title: Ragithub API Endpoint Documentation (Continued)
Summary
This text describes additional API endpoints for the Ragithub application, including retrieving chunk lists, individual chunks, image lists, and individual images, all of which are accessible via GET requests with parameters such as user ID, repository name, chunk or image UIDs, and prefixes.