Home Explore Blog Models CI



ragit

9th chunk of `docs/ragithub/openapi.yaml`
61a4ae626e10f930fab75125cbd946e2c06563248974eac20000000100000fa6
 list of ai models.
      operationId: GetAiModelList
      parameters:
        - name: name
          in: query
          required: false
          description: name of the ai model
          schema:
            type: string
        - name: tags
          in: query
          required: false
          description: comma-separated string of tags
          schema:
            type: string
        - name: limit
          in: query
          required: false
          schema:
            type: integer
            format: int32
            default: 50
        - name: offset
          in: query
          required: false
          schema:
            type: integer
            format: int32
            default: 0
      responses:
        '200':
          description: ""
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AiModel'
    put:
      description: It updates or inserts an ai model.
      operationId: PutAiModelList
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AiModelCreation'
components:
  schemas:
    UserDetail:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
          nullable: true
        email:
          type: string
          nullable: true
        readme:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
        last_login_at:
          type: string
          format: date-time
    UserSimple:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
          nullable: true
        email:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
        last_login_at:
          type: string
          format: date-time
    UserCreation:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
          nullable: true
        email:
          type: string
          nullable: true
        password:
          type: string
        public:
          type: boolean
    Repository:
      type: object
      properties:
        id:
          type: integer
          format: int32
        name:
          type: string
        owner:
          type: string
        description:
          type: string
          nullable: true
        website:
          type: string
          nullable: true
        stars:
          type: integer
          format: int32
        repo_size:
          type: integer
          format: int64
          description: sum of the sizes of its archives, in bytes
        tags:
          type: array
          items:
            type: string
        created_at:
          type: string
          format: date-time
        pushed_at:
          type: string
          format: date-time
          nullable: true
        updated_at:
          type: string
          format: date-time
    RepoCreation:
      type: object
      properties:
        name:
          type: string
        description:
          type: string
          nullable: true
        website:
          type: string
          nullable: true
        tags:
          type: array
          items:
            type: string
        public_read:
          type: boolean
        public_write:
          type: boolean
        public_clone:
          type: boolean
        public_push:
          type: boolean
        public_chat:
          type: boolean
    RepoUpdate:
      type: object
      properties:
        description:
          type: string
          nullable: true
        website:
          type: string
          nullable: true
        tags:
          type: array
          items:
            type: string
        public_read:
          type: boolean
        public_write:

Title: API Models and Schemas for User and Repository Management
Summary
This section defines various API models and schemas for managing users and repositories, including user details, repository information, and creation and update parameters, with support for different data types, formats, and validation rules.