openapi: 3.0.0
info:
  title: GetFit
  version: 1.0.0
servers:
  - url: http://{{baseurl}}
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
tags:
  - name: auth
  - name: user
paths:
  /user/signup:
    post:
      tags:
        - auth
      summary: signup
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                email: ironman@gmail.com
                fullName: Tony Stark
                password: '1234'
                profileType: 1
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
  /user/login:
    post:
      tags:
        - auth
      summary: signin
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                user:
                  email: ironman@gmail.com
                  password: '1234'
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
  /user/forgot/email:
    post:
      tags:
        - auth
      summary: forgot password
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                email: testingDoctor@gmail.com
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
  /user/set-new-password/{email}/{resetPasswordToken}:
    post:
      tags:
        - auth
      summary: forgot password Copy
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                password: '1234'
      parameters:
        - name: email
          in: path
          schema:
            type: string
          required: true
        - name: resetPasswordToken
          in: path
          schema:
            type: string
          required: true
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
  /user/otp/verify/ironman@gmail.com/registration:
    post:
      tags:
        - auth
      summary: otp verification
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                otp: '1597'
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
  /user/update-profile:
    put:
      tags:
        - user
      summary: update profile
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                fullName: Ali Murad
                gender: Male
                dateOfBirth: '2008-07-14'
                location: Lahore, Pakistan
                onBoarded: true
      security:
        - bearerAuth: []
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
