swagger: "2.0"
info:
  description: "Dashboard API for several use."
  version: 1.0.0
  title: SS6 Dashboard
  termsOfService: "http://transformore.net"
  contact:
    email: ss6@ppa.co.id
host: api12.ppa-mhu.net
basePath: /v2
schemes:
  - http
paths:
  "/production/daily?startedDate={startedDate}&endedDate={endedDate}":
    get:
      tags:
        - production
      summary: Find daily production
      description: Return production and productivity problem by area
      operationId: dailyProduction
      produces:
        - application/xml
        - application/json
      parameters:
        - name: startedDate
          in: path
          description: date start for filtering
          required: true
          type: date
        - name: endedDate
          in: path
          description: date end for filtering
          required: true
          type: date
      responses:
        "200":
          description: successful operation
          schema:
            $ref: "#/definitions/Production"
      security:
        - api_key: []
definitions:
  Production:
    title: a Production
    description: A Production
    type: object
    required:
      - name
      - photoUrls
    properties:
      id:
        type: integer
        format: int64
      name:
        type: string
        example: doggie
      photoUrls:
        type: array
        xml:
          name: photoUrl
          wrapped: true
        items:
          type: string
      tags:
        type: array
        xml:
          name: tag
          wrapped: true
      status:
        type: string
        description: pet status in the store
        enum:
          - available
          - pending
          - sold
    xml:
      name: Pet
  ApiResponse:
    title: An uploaded response
    description: Describes the result of uploading an image resource
    type: object
    properties:
      code:
        type: integer
        format: int32
      type:
        type: string
      message:
        type: string
  #issue: https://github.com/swagger-api/swagger-codegen/issues/7980
  Amount:
    type: object
    description: >
      some description
    properties:
      value:
        format: double
        type: number
        minimum: 0.01
        maximum: 1000000000000000
        description: >
          some description
      currency:
        $ref: "#/definitions/Currency"
    required:
      - value
      - currency
  Currency:
    type: string
    pattern: "^[A-Z]{3,3}$"
    description: >
      some description
