Power2SME Employee Login API

OpenAPI Specification

power2sme-employee-login-api-openapi.yml Raw ↑
swagger: '2.0'
info:
  description: Some custom description of API.
  version: '1.0'
  title: POWER2SME Bank Master Employee Login API
  termsOfService: https://www.power2sme.com/termsandconditions
  contact:
    name: Power2sme
  license:
    name: License of API
    url: https://www.power2sme.com/privacypolicy
host: api.power2sme.com
basePath: /api/ws/v4
tags:
- name: Employee Login
  description: ' '
paths:
  /p2semployees:
    get:
      tags:
      - Employee Login
      summary: fetches all employee names and their corresponding email IDs
      description: ' this gets all employee names and their corresponding emailIDs'
      operationId: getPower2SMEEmployeeDetailsUsingGET
      consumes:
      - application/json
      produces:
      - '*/*'
      parameters:
      - name: emailIds
        in: query
        description: emailIds
        required: false
        type: string
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/Response Model'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not Found
  /searchUser:
    post:
      tags:
      - Employee Login
      summary: searchUser
      operationId: searchUserUsingPOST
      consumes:
      - application/json
      produces:
      - application/json
      parameters:
      - in: body
        name: user
        description: user
        required: true
        schema:
          $ref: '#/definitions/User'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/Response Model'
        '201':
          description: Created
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
        '404':
          description: Not Found
definitions:
  Response Model:
    type: object
    required:
    - Data
    - ErrorCode
    - Message
    - Status
    - TotalRecords
    properties:
      Data:
        type: object
        description: Give the Response of API's in the form of JSON Object
      ErrorCode:
        type: integer
        format: int32
        description: Give the Error Code according to the Response of API's.
      Message:
        type: string
        description: Give the Message according to the Response of API's.
      Status:
        type: integer
        format: int32
        description: Give the Status according to the Response of API's.
      TotalRecords:
        type: integer
        format: int32
        description: Give the Total No. of Records according to the Response of API's.
    description: Model for the response of API's
  User:
    type: object
    properties:
      department:
        type: string
      email:
        type: string
      firstName:
        type: string
      id:
        type: string
      lastName:
        type: string
      mobile:
        type: string
      reportsTo:
        $ref: '#/definitions/User'
      reportsToDepth:
        type: integer
        format: int32
      reportsToId:
        type: string
      reportsToLevel:
        type: integer
        format: int32
      roleId:
        type: string
      roleName:
        type: string
      sessionId:
        type: string
      title:
        type: string
      userHash:
        type: string
      userHashEncrypted:
        type: string
      userName:
        type: string