get:
  summary: Fetch order with related collections
  description: |
    Endpoint for fetching data from multiple collections related to an order. Will fetch data related to the order-id.
  parameters:
    - name: orderId
      in: path
      required: true
      schema:
        type: string
        format: ObjectId
  tags:
    - Related Collections
  responses:
    '200':
      description: Data from multiple collections
      content:
        application/json:
          schema:
            type: object
            properties:
              order:
                $ref: "#/components/schemas/Order"
              shifts:
                type: array
                items:
                  $ref: "#/components/schemas/Shift"
              timereports:
                type: array
                items:
                  $ref: "#/components/schemas/Timereport"
              approvals:
                type: array
                items:
                  $ref: "#/components/schemas/Approval"
              inquiries:
                type: array
                items:
                  $ref: "#/components/schemas/Inquiry"
              journal-entries:
                type: array
                items:
                  $ref: "#/components/schemas/JournalEntry"
          example: {
            order: {},
            shifts: [],
            timereports: [],
            approvals: [],
            inquiries: [],
            "journal-entries": []
          }

get:
  summary: Fetch order with related collections
  description: |
    Endpoint for fetching data from multiple collections related to an order. Will fetch data related to the order-id.
  parameters:
    - name: orderId
      in: path
      required: true
      schema:
        type: string
        format: ObjectId
    - name: timereports
      description: Specifies if data in the timereports collection should be included in the response. Will fetch timereports in the specified interval and include orphaned timereports.
      in: query
      schema:
        type: boolean
        example: true
        default: false
    - name: approvals
      description: Specifies if data in the approvals collection should be included in the response. Will fetch approvals related to the fetched timereports. Requires the timereport parameter to be set to true.
      in: query
      schema:
        type: boolean
        example: true
        default: false
  tags:
    - Related Collections
  responses:
    '200':
      description: Data from multiple collections
      content:
        application/json:
          schema:
            type: object
            properties:
              orders:
                type: array
                items:
                  $ref: "#/components/schemas/Order"
              shifts:
                type: array
                items:
                  $ref: "#/components/schemas/Shift"
              timereports:
                type: array
                items:
                  $ref: "#/components/schemas/Timereport"
              approvals:
                type: array
                items:
                  $ref: "#/components/schemas/Approval"
              inquiries:
                type: array
                items:
                  $ref: "#/components/schemas/Inquiry"
              journal:
                type: array
                items:
                  $ref: "#/components/schemas/JournalEntry"
          example: {
            order: {},
            shifts: [],
            timereports: [],
            approvals: [],
            inquiries: [],
            journal: []
          }

Update to better match frontend data structures
Update to better match frontend data structures
