info:
  name: Lookup By User and Period (OLD)
  type: http
  seq: 2

http:
  method: GET
  url: "{{elixFormsApiUrl}}/request/lookup/by-user-and-period/v1"
  headers:
    - name: x-requested-with
      value: XMLHttpRequest
  body:
    type: form-urlencoded
    data:
      - name: username
        value: "{{elixFormsApiUsername}}"
      - name: requestUser
        value: "29"
      - name: requestStatus
        value: IN_PROGRESS
        description: "possibili valori: IN_PROGRESS, SUBMITTED, PROCESSED"
      - name: requestStatus
        value: SUBMITTED
        disabled: true
      - name: dateFrom
        value: 2025-01-01
      - name: dateTo
        value: 2025-04-30
      - name: moduleTag
        value: PROPOSTA_CCT_DOCENTE
        description: per restringere il risultato alle sole richieste del/i modulo/i aventi tag specificato
      - name: moduleTag
        value: tag_2
        disabled: true
      - name: swfOptionKey
        value: ""
        description: per restringere il risultato alle sole richieste aventi lo/gli stato/i del Simple Workflow (SWF) impostato all'indice corrispondente ad uno dei possibili valori del dominio definito dall'utente
        disabled: true
      - name: swfOptionKey
        value: "22"
        disabled: true
  auth: inherit

settings:
  encodeUrl: true
  timeout: 0
  followRedirects: true
  maxRedirects: 5
  forwardAuthorizationHeader: true

examples:
  - name: Lookup By User and Period - Bad Request
    request:
      url: "{{elixFormsApiUrl}}/request/lookup/by-user-and-period/v1"
      method: GET
      body:
        type: form-urlencoded
        data:
          - name: username
            value: "{{elixFormsApiUsername}}"
          - name: requestUser
            value: XYZ
            disabled: true
          - name: requestStatus
            value: IN_PROGRESS
            description: "possibili valori: IN_PROGRESS, SUBMITTED, PROCESSED"
            disabled: true
          - name: requestStatus
            value: SUBMITTED
            disabled: true
          - name: moduleTag
            value: PTA10
            description: per restringere il risultato alle sole richieste del/i modulo/i aventi tag specificato
            disabled: true
          - name: moduleTag
            value: tag_2
            disabled: true
          - name: swfOptionKey
            value: ""
            description: per restringere il risultato alle sole richieste aventi lo/gli stato/i del Simple Workflow (SWF) impostato all'indice corrispondente ad uno dei possibili valori del dominio definito dall'utente
            disabled: true
          - name: swfOptionKey
            value: "22"
            disabled: true
    response:
      statusText: "400"
      headers:
        - name: date
          value: Fri, 28 Mar 2025 14:47:51 GMT
        - name: content-length
          value: "0"
        - name: strict-transport-security
          value: max-age=63072000;includeSubDomains
        - name: content-security-policy
          value: "default-src https: data: 'unsafe-inline' 'unsafe-eval'"
        - name: x-frame-options
          value: SAMEORIGIN
        - name: x-xss-protection
          value: 1;mode=block
        - name: x-content-type-options
          value: nosniff
        - name: referrer-policy
          value: unsafe-url
      body:
        type: text
        data: ""
