openapi: 3.0.0
info:
  title: SecondAppriasel
  version: 1.0.0
servers:
  - url: 'http://111.118.251.133:3014/claimapi/claim-v1'
    description: userHost
  - url: 'http://111.118.251.133:3015/awsapi/aws-v1'
    description: awsHost
  - url: 'https://textractresultp.s3.ap-south-1.amazonaws.com'
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
tags:
  - name: User
paths:
  /signup/:
    post:
      tags:
        - User
      summary: SignUp
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                fullName: veer
                mobileNumber: '9340079371'
                userName: veer
                email: veer@gmail.com
                password: qwerty
                deviceType: android
                deviceId: 1e48cdd3e8e5e0124
                notificationId: 14f544f-8fba-4d42-9c03-7c733b99f555522
                apiVersion: '2.3'
                buildNumber: '10'
                role: user
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
  /all/user:
    get:
      tags:
        - User
      summary: all user list
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
  /uploadUrl:
    post:
      tags:
        - User
      summary: ulpload image and pdf
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                fileName: temp/veer.pdf
                fileType: pdf
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
  /temp/veer.pdf:
    put:
      tags:
        - User
      summary: Put
      requestBody:
        content:
          text/plain: {}
      parameters:
        - name: X-Amz-Algorithm
          in: query
          schema:
            type: string
          example: AWS4-HMAC-SHA256
        - name: X-Amz-Content-Sha256
          in: query
          schema:
            type: string
          example: UNSIGNED-PAYLOAD
        - name: X-Amz-Credential
          in: query
          schema:
            type: string
          example: AKIA6GBMH5NFRCFQ66GQ%2F20241029%2Fap-south-1%2Fs3%2Faws4_request
        - name: X-Amz-Date
          in: query
          schema:
            type: string
          example: 20241029T111934Z
        - name: X-Amz-Expires
          in: query
          schema:
            type: integer
          example: '3600'
        - name: X-Amz-Signature
          in: query
          schema:
            type: string
          example: 9eb16ffb0adfa33b48a9c52ca4dc9557725594a0f379f5bb7a06f3aa7a797fdf
        - name: X-Amz-SignedHeaders
          in: query
          schema:
            type: string
          example: host
        - name: x-id
          in: query
          schema:
            type: string
          example: PutObject
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
  /readVehicleCsv:
    post:
      tags:
        - User
      summary: upload Pdf
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                fileName: veer.pdf
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
    get:
      tags:
        - User
      summary: readcsvData
      security:
        - bearerAuth: []
      parameters:
        - name: id
          in: query
          schema:
            type: integer
          example: '1'
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
    patch:
      tags:
        - User
      summary: readVehicleCsv update
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                year: '2015'
      security:
        - bearerAuth: []
      parameters:
        - name: id
          in: query
          schema:
            type: integer
          example: '1'
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
  /profile:
    get:
      tags:
        - User
      summary: profile
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
    patch:
      tags:
        - User
      summary: update profile
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                fullName: admin
                avatar: handsom.jpg
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
  /claimPhoto:
    post:
      tags:
        - User
      summary: claimPhotos
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                claimInfo:
                  - image: handsome.jpg
                    vehiclePhotoTypeId: 1
                    claimApplicationId: 1234
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
  /vehicleTypePhoto:
    get:
      tags:
        - User
      summary: vehicleData
      security:
        - bearerAuth: []
      parameters:
        - name: type
          in: query
          schema:
            type: string
          description: interior  || exterior
          example: exterior
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
  /compsDetails:
    get:
      tags:
        - User
      summary: CompDetails
      parameters:
        - name: compId
          in: query
          schema:
            type: integer
          example: '9'
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}