paths:
  /partitions:
    get:
      tags: 
        - Partition
      description: Get all partitions information
      parameters:
        - in: query
          name: collection_name
          type: string
          description: Collection name
      responses:
        200:
          schema:
            type: object
  
    post:
      tags: 
        - Partition
      description: Create or delete partition excepte _default
      requestBody:
        description: Manage partition req body
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - type
                - collection_name
                - partition_name
              properties:
                type:
                  type: string
                  example: create
                collection_name:
                  type: string
                  example: ''
                partition_name:
                  type: string
                  example: ''
      responses:
        200:
          schema:
            type: object

  /partitions/load:
    put:
      tags: 
        - Partition
      description: Load partition to cache
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - collection_name
                - partition_name
              properties:
                collection_name:
                  type: string
                  example: ''
                partition_names:
                  type: array
                  example: []
      responses:
        200:
          schema:
            type: object
  /partitions/release:
    put:
      tags: 
        - Partition
      description: Release partition from cache
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - collection_name
                - partition_name
              properties:
                collection_name:
                  type: string
                  example: ''
                partition_names:
                  type: array
                  example: []
      responses:
        200:
          schema:
            type: object
 