# Get Workin Sites

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /empeo/api/v1/workin-sites:
    get:
      summary: Get Workin Sites
      deprecated: false
      description: ''
      tags:
        - empeo/Core HR/Attendance
      parameters:
        - name: companyName
          in: query
          description: ชื่อบริษัท ถ้าไม่ใส่ช้อมูลจะได้ข้อมูลบริษัททั้งเครือ
          required: false
          example: โกไฟว์ จำกัด
          schema:
            type: string
        - name: take
          in: query
          description: จำนวนข้อมูลที่ต้องการดึง ถ้าใส่ 0 จะได้ข้อมูลทั้งหมด
          required: false
          example: 10
          schema:
            type: number
        - name: skip
          in: query
          description: จำนวนข้อมูลที่ต้องการข้าม
          required: false
          example: 0
          schema:
            type: number
        - name: workinType
          in: query
          description: >-
            ประเภทการ workin GPS = 1, Beacon = 2, BiometricScanner = 3,
            EmStation = 4
          required: false
          example: 0
          schema:
            type: number
        - name: keyword
          in: query
          description: สำหรับค้นหาชื่อสถานที่
          required: false
          example: tester
          schema:
            type: string
        - name: Ocp-Apim-Subscription-Key
          in: header
          description: Api subscription key get from the OpenAPI integration setting page
          required: true
          example: WPe123a9RKbcfLQNSztr45
          schema:
            type: string
        - name: Authorization
          in: header
          description: Authorization credential utilized in API requests
          required: true
          example: bearer {token}
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
              example:
                status:
                  code: '1000'
                  description: Success
                data:
                  - siteId: null
                    deviceId: 889
                    name: tester
                    name_EN: tester
                    latitude: null
                    longitude: null
                    locationName: null
                    uuid: null
                    majorId: null
                    minorId: null
                    isGPS: false
                    isiBeacon: false
                    isBiometricScanner: true
                    isAllSite: true
                    isIOMO: true
                    radius: null
                    radiusiBeacon: null
                    ipAddress: ''
                    port: 1245
                    dateLastTransfered: '2022-04-08T10:25:27.933'
                    serialNo: '123'
                    isOnline: false
                    isFaceScan: false
                    isTimeLock: false
                    isStation: false
                    stationKey: null
                    isActive: true
                    createdByName: arin.m@gofive.co.th
                    dateCreated: '2021-03-09T10:55:04.247'
                    modifiedByName: sumet.m@gofive.co.th
                    dateModified: '2022-03-17T09:49:19.913'
                    companyName: ใช้กับทุกบริษัท
                    companyName_EN: All companies
                    workinType: 3
          headers: {}
          x-apidog-name: Success
      security: []
      x-apidog-folder: empeo/Core HR/Attendance
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/351895/apis/api-4092993-run
components:
  schemas: {}
  securitySchemes:
    bearerAuth:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
      description: ใส่ JWT Token ในรูปแบบ Bearer {token}
    bearer:
      type: bearer
      scheme: bearer
servers:
  - url: https://api.gofive.co.th
    description: Production
security:
  - bearerAuth: []
    x-apidog:
      schemeGroups:
        - id: uyL_cJmK7q60QJZRTi5ot
          schemeIds:
            - bearerAuth
      required: true
      use:
        id: uyL_cJmK7q60QJZRTi5ot
      scopes:
        uyL_cJmK7q60QJZRTi5ot:
          bearerAuth: []

```
