info:
  name: Lookup By User and Period
  type: http
  seq: 3

http:
  method: GET
  url: "{{elixFormsApiUrl_Default}}/request/lookup/by-user-and-period?requestUser=MMMPPL74T17E463A&requestStatus=PROCESSED&dateFrom=2024-01-01&dateTo=2025-11-14"
  headers:
    - name: x-requested-with
      value: XMLHttpRequest
    - name: x-api-username
      value: "{{elixFormsApiUsername}}"
  params:
    - name: username
      value: "{{elixFormsApiUsername}}"
      type: query
      disabled: true
    - name: requestUser
      value: MMMPPL74T17E463A
      type: query
      description: '"Codice utente" lato backoffice'
    - name: requestStatus
      value: PROCESSED
      type: query
    - name: requestStatus
      value: IN_PROGRESS
      type: query
      disabled: true
    - name: dateFrom
      value: 2024-01-01
      type: query
    - name: dateTo
      value: 2025-11-14
      type: query
    - name: moduleTag
      value: RIPARTIZIONE_CCT_DSAN
      type: query
      disabled: true
    - name: swfOptionKey
      value: "2"
      type: query
      disabled: true
    - name: swfOptionMode
      value: IN
      type: query
      disabled: true
  auth: inherit

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

examples:
  - name: Success
    request:
      url: "{{elixFormsApiUrl_Default}}/request/lookup/by-user-and-period?username={{elixFormsApiUsername}}&requestUser=MMMPPL74T17E463A&dateFrom=2024-01-01&dateTo=2025-11-14"
      method: GET
      headers:
        - name: x-requested-with
          value: XMLHttpRequest
      params:
        - name: username
          value: "{{elixFormsApiUsername}}"
          type: query
        - name: requestUser
          value: MMMPPL74T17E463A
          type: query
          description: '"Codice utente" lato backoffice'
        - name: requestStatus
          value: SUBMITTED
          type: query
          disabled: true
        - name: requestStatus
          value: IN_PROGRESS
          type: query
          disabled: true
        - name: dateFrom
          value: 2024-01-01
          type: query
        - name: dateTo
          value: 2025-11-14
          type: query
        - name: moduleTag
          value: RIPARTIZIONE_CCT_DSAN
          type: query
          disabled: true
        - name: swfOptionKey
          value: "2"
          type: query
          disabled: true
        - name: swfOptionMode
          value: IN
          type: query
          disabled: true
    response:
      statusText: "200"
      headers:
        - name: Date
          value: Fri, 14 Nov 2025 13:42:50 GMT
        - name: Server
          value: "Payara Server 6.2025.1 #badassfish"
        - name: Content-Security-Policy
          value: "default-src https: data: 'unsafe-inline' 'unsafe-eval'; img-src 'self' blob: data: https:;"
        - name: Content-Security-Policy
          value: default-src 'self'; connect-src 'self'; font-src 'none'; img-src 'self'; media-src 'self'; object-src 'self'; plugin-types application/pdf audio/x-wav; referrer no-referrer; reflected-xss block; script-src 'self'; style-src 'self'
        - name: Cache-Control
          value: no-cache, no-store, must-revalidate
        - name: Pragma
          value: no-cache
        - name: X-Content-Security-Policy
          value: default-src 'self'; connect-src 'self'; font-src 'none'; img-src 'self'; media-src 'self'; object-src 'self'; plugin-types application/pdf audio/x-wav; referrer no-referrer; reflected-xss block; script-src 'self'; style-src 'self'
        - name: X-Content-Type-Options
          value: nosniff
        - name: Content-Type
          value: application/it.elixforms.api.v1.2+json;charset=UTF-8
        - name: Content-Length
          value: "859"
        - name: X-Frame-Options
          value: SAMEORIGIN
        - name: strict-transport-security
          value: max-age=31536000; includeSubDomains
        - name: X-XSS-Protection
          value: "1"
        - name: Referrer-Policy
          value: unsafe-url
        - name: Keep-Alive
          value: timeout=10, max=500
        - name: Connection
          value: Keep-Alive
      body:
        type: text
        data: |-
          {
              "value": {
                  "code": "OK",
                  "description": "OK",
                  "complete": true,
                  "globalStatus": "OK",
                  "serviceInformationList": {
                      "serviceInformation": [
                          {
                              "ITSystemName": "EF-CORE",
                              "complete": true,
                              "serviceVersion": "1.2.0",
                              "statusDetailList": {
                                  "statusDetail": [
                                      {
                                          "code": "OK",
                                          "description": "OK",
                                          "detailStatus": "OK"
                                      }
                                  ]
                              }
                          }
                      ]
                  },
                  "uuid": "e80c8187-5c85-49de-8b9f-a3db079fc254",
                  "version": "3.11.1.29",
                  "requests": [
                      {
                          "creationTime": "2025-11-03T14:49:00+01:00[GMT+01:00]",
                          "hiddenToUser": false,
                          "moduleCategoryTag": "AREA RICERCA E VALORIZZAZIONE - CONTRATTI E CONVENZIONI",
                          "moduleTag": "RIPARTIZIONE_CCT_DSAN",
                          "moduleTitle": "Ripartizione Utili / Compensi - DSAN",
                          "moduleUrl": "https://procedure.unipr.it/rwe2/forms/recap.jsp?IUQOID=16266&RWE2_TAB_REL=68046&ELANG=it&IATL=it",
                          "requestId": 16266,
                          "requestStatus": "SUBMITTED",
                          "submissionTime": "2025-11-03T14:58:00+01:00[GMT+01:00]",
                          "swfOptionKey": 0
                      }
                  ],
                  "requestsSize": 1
              }
          }
  - name: Success con modulo SWF
    request:
      url: "{{elixFormsApiUrl_Default}}/request/lookup/by-user-and-period?username={{elixFormsApiUsername}}&requestUser=BGLWND89A49A662F&dateFrom=2024-01-01&dateTo=2025-11-14&moduleTag=PROPOSTA_CCT_DOCENTE&swfOptionKey=2&swfOptionMode=IN"
      method: GET
      headers:
        - name: x-requested-with
          value: XMLHttpRequest
      params:
        - name: username
          value: "{{elixFormsApiUsername}}"
          type: query
        - name: requestUser
          value: BGLWND89A49A662F
          type: query
          description: '"Codice utente" lato backoffice'
        - name: requestStatus
          value: SUBMITTED
          type: query
          disabled: true
        - name: requestStatus
          value: IN_PROGRESS
          type: query
          disabled: true
        - name: dateFrom
          value: 2024-01-01
          type: query
        - name: dateTo
          value: 2025-11-14
          type: query
        - name: moduleTag
          value: PROPOSTA_CCT_DOCENTE
          type: query
        - name: swfOptionKey
          value: "2"
          type: query
        - name: swfOptionMode
          value: IN
          type: query
    response:
      statusText: "200"
      headers:
        - name: Date
          value: Fri, 14 Nov 2025 13:41:37 GMT
        - name: Server
          value: "Payara Server 6.2025.1 #badassfish"
        - name: Content-Security-Policy
          value: "default-src https: data: 'unsafe-inline' 'unsafe-eval'; img-src 'self' blob: data: https:;"
        - name: Content-Security-Policy
          value: default-src 'self'; connect-src 'self'; font-src 'none'; img-src 'self'; media-src 'self'; object-src 'self'; plugin-types application/pdf audio/x-wav; referrer no-referrer; reflected-xss block; script-src 'self'; style-src 'self'
        - name: Cache-Control
          value: no-cache, no-store, must-revalidate
        - name: Pragma
          value: no-cache
        - name: X-Content-Security-Policy
          value: default-src 'self'; connect-src 'self'; font-src 'none'; img-src 'self'; media-src 'self'; object-src 'self'; plugin-types application/pdf audio/x-wav; referrer no-referrer; reflected-xss block; script-src 'self'; style-src 'self'
        - name: X-Content-Type-Options
          value: nosniff
        - name: Content-Type
          value: application/it.elixforms.api.v1.2+json;charset=UTF-8
        - name: Content-Length
          value: "1422"
        - name: X-Frame-Options
          value: SAMEORIGIN
        - name: strict-transport-security
          value: max-age=31536000; includeSubDomains
        - name: X-XSS-Protection
          value: "1"
        - name: Referrer-Policy
          value: unsafe-url
        - name: Keep-Alive
          value: timeout=10, max=500
        - name: Connection
          value: Keep-Alive
      body:
        type: text
        data: |-
          {
              "value": {
                  "code": "OK",
                  "description": "OK",
                  "complete": true,
                  "globalStatus": "OK",
                  "serviceInformationList": {
                      "serviceInformation": [
                          {
                              "ITSystemName": "EF-CORE",
                              "complete": true,
                              "serviceVersion": "1.2.0",
                              "statusDetailList": {
                                  "statusDetail": [
                                      {
                                          "code": "OK",
                                          "description": "OK",
                                          "detailStatus": "OK"
                                      }
                                  ]
                              }
                          }
                      ]
                  },
                  "uuid": "a7e7429e-9a64-4084-8db6-6f849860bc0f",
                  "version": "3.11.1.29",
                  "requests": [
                      {
                          "creationTime": "2025-09-02T10:09:00+02:00[GMT+02:00]",
                          "hiddenToUser": false,
                          "moduleCategoryTag": "AREA RICERCA E VALORIZZAZIONE - CONTRATTI E CONVENZIONI",
                          "moduleTag": "PROPOSTA_CCT_DOCENTE",
                          "moduleTitle": "Proposta Contratto / Convenzione Conto Terzi (DOCENTE)",
                          "moduleUrl": "https://procedure.unipr.it/rwe2/forms/recap.jsp?IUQOID=13011&RWE2_TAB_REL=14900&ELANG=it&IATL=it",
                          "processedTime": "2025-09-04T16:07:00+02:00[GMT+02:00]",
                          "requestId": 13011,
                          "requestStatus": "PROCESSED",
                          "submissionTime": "2025-09-02T10:22:00+02:00[GMT+02:00]",
                          "swfOptionKey": 2
                      },
                      {
                          "creationTime": "2025-07-17T13:37:00+02:00[GMT+02:00]",
                          "hiddenToUser": false,
                          "moduleCategoryTag": "AREA RICERCA E VALORIZZAZIONE - CONTRATTI E CONVENZIONI",
                          "moduleTag": "PROPOSTA_CCT_DOCENTE",
                          "moduleTitle": "Proposta Contratto / Convenzione Conto Terzi (DOCENTE)",
                          "moduleUrl": "https://procedure.unipr.it/rwe2/forms/recap.jsp?IUQOID=11017&RWE2_TAB_REL=14900&ELANG=it&IATL=it",
                          "requestId": 11017,
                          "requestStatus": "SUBMITTED",
                          "submissionTime": "2025-07-17T13:49:00+02:00[GMT+02:00]",
                          "swfOptionKey": 2
                      }
                  ],
                  "requestsSize": 2
              }
          }
  - name: Nessun modulo trovato col tag
    request:
      url: "{{elixFormsApiUrl_Default}}/request/lookup/by-user-and-period?username={{elixFormsApiUsername}}&requestUser=MMMPPL74T17E463A&dateFrom=2024-01-01&dateTo=2025-11-14&moduleTag=RIPARTIZIONE_CCT_DSAN"
      method: GET
      headers:
        - name: x-requested-with
          value: XMLHttpRequest
      params:
        - name: username
          value: "{{elixFormsApiUsername}}"
          type: query
        - name: requestUser
          value: MMMPPL74T17E463A
          type: query
          description: '"Codice utente" lato backoffice'
        - name: requestStatus
          value: SUBMITTED
          type: query
          disabled: true
        - name: requestStatus
          value: IN_PROGRESS
          type: query
          disabled: true
        - name: dateFrom
          value: 2024-01-01
          type: query
        - name: dateTo
          value: 2025-11-14
          type: query
        - name: moduleTag
          value: RIPARTIZIONE_CCT_DSAN
          type: query
        - name: swfOptionKey
          value: "2"
          type: query
          disabled: true
        - name: swfOptionMode
          value: IN
          type: query
          disabled: true
    response:
      statusText: "200"
      headers:
        - name: Date
          value: Fri, 14 Nov 2025 13:42:32 GMT
        - name: Server
          value: "Payara Server 6.2025.1 #badassfish"
        - name: Content-Security-Policy
          value: "default-src https: data: 'unsafe-inline' 'unsafe-eval'; img-src 'self' blob: data: https:;"
        - name: Content-Security-Policy
          value: default-src 'self'; connect-src 'self'; font-src 'none'; img-src 'self'; media-src 'self'; object-src 'self'; plugin-types application/pdf audio/x-wav; referrer no-referrer; reflected-xss block; script-src 'self'; style-src 'self'
        - name: Cache-Control
          value: no-cache, no-store, must-revalidate
        - name: Pragma
          value: no-cache
        - name: X-Content-Security-Policy
          value: default-src 'self'; connect-src 'self'; font-src 'none'; img-src 'self'; media-src 'self'; object-src 'self'; plugin-types application/pdf audio/x-wav; referrer no-referrer; reflected-xss block; script-src 'self'; style-src 'self'
        - name: X-Content-Type-Options
          value: nosniff
        - name: Content-Type
          value: application/it.elixforms.api.v1.2+json;charset=UTF-8
        - name: Content-Length
          value: "542"
        - name: X-Frame-Options
          value: SAMEORIGIN
        - name: strict-transport-security
          value: max-age=31536000; includeSubDomains
        - name: X-XSS-Protection
          value: "1"
        - name: Referrer-Policy
          value: unsafe-url
        - name: Keep-Alive
          value: timeout=10, max=500
        - name: Connection
          value: Keep-Alive
      body:
        type: text
        data: |-
          {
              "value": {
                  "code": "ERROR",
                  "description": "ElixFormsException: Nessun modulo trovato per il/i tag/s \"RIPARTIZIONE_CCT_SAN\"",
                  "complete": true,
                  "globalStatus": "ERROR",
                  "serviceInformationList": {
                      "serviceInformation": [
                          {
                              "ITSystemName": "EF-CORE",
                              "complete": true,
                              "serviceVersion": "1.2.0",
                              "statusDetailList": {
                                  "statusDetail": [
                                      {
                                          "code": "ERROR",
                                          "description": "ElixFormsException: Nessun modulo trovato per il/i tag/s \"RIPARTIZIONE_CCT_SAN\"",
                                          "detailStatus": "ERROR"
                                      }
                                  ]
                              }
                          }
                      ]
                  },
                  "uuid": "69c0e091-0f33-45a9-a788-ebd5e8d3f42d",
                  "version": "3.11.1.29",
                  "requestsSize": 0
              }
          }
  - name: Nessuno schema SWF associato al modulo
    request:
      url: "{{elixFormsApiUrl_Default}}/request/lookup/by-user-and-period?username={{elixFormsApiUsername}}&requestUser=MMMPPL74T17E463A&dateFrom=2024-01-01&dateTo=2025-11-14&moduleTag=PROPOSTA_CCT_OPERATORE&swfOptionKey=1&swfOptionMode=IN"
      method: GET
      headers:
        - name: x-requested-with
          value: XMLHttpRequest
      params:
        - name: username
          value: "{{elixFormsApiUsername}}"
          type: query
        - name: requestUser
          value: MMMPPL74T17E463A
          type: query
          description: '"Codice utente" lato backoffice'
        - name: requestStatus
          value: SUBMITTED
          type: query
          disabled: true
        - name: requestStatus
          value: IN_PROGRESS
          type: query
          disabled: true
        - name: dateFrom
          value: 2024-01-01
          type: query
        - name: dateTo
          value: 2025-11-14
          type: query
        - name: moduleTag
          value: PROPOSTA_CCT_OPERATORE
          type: query
        - name: swfOptionKey
          value: "1"
          type: query
        - name: swfOptionMode
          value: IN
          type: query
    response:
      statusText: "200"
      headers:
        - name: Date
          value: Fri, 14 Nov 2025 13:39:27 GMT
        - name: Server
          value: "Payara Server 6.2025.1 #badassfish"
        - name: Content-Security-Policy
          value: "default-src https: data: 'unsafe-inline' 'unsafe-eval'; img-src 'self' blob: data: https:;"
        - name: Content-Security-Policy
          value: default-src 'self'; connect-src 'self'; font-src 'none'; img-src 'self'; media-src 'self'; object-src 'self'; plugin-types application/pdf audio/x-wav; referrer no-referrer; reflected-xss block; script-src 'self'; style-src 'self'
        - name: Cache-Control
          value: no-cache, no-store, must-revalidate
        - name: Pragma
          value: no-cache
        - name: X-Content-Security-Policy
          value: default-src 'self'; connect-src 'self'; font-src 'none'; img-src 'self'; media-src 'self'; object-src 'self'; plugin-types application/pdf audio/x-wav; referrer no-referrer; reflected-xss block; script-src 'self'; style-src 'self'
        - name: X-Content-Type-Options
          value: nosniff
        - name: Content-Type
          value: application/it.elixforms.api.v1.2+json;charset=UTF-8
        - name: Content-Length
          value: "566"
        - name: X-Frame-Options
          value: SAMEORIGIN
        - name: strict-transport-security
          value: max-age=31536000; includeSubDomains
        - name: X-XSS-Protection
          value: "1"
        - name: Referrer-Policy
          value: unsafe-url
        - name: Keep-Alive
          value: timeout=10, max=496
        - name: Connection
          value: Keep-Alive
      body:
        type: text
        data: |-
          {
              "value": {
                  "code": "ERROR",
                  "description": "ElixFormsException: Nessuno schema SWF associato al modulo con tag \"PROPOSTA_CCT_OPERATORE\"",
                  "complete": true,
                  "globalStatus": "ERROR",
                  "serviceInformationList": {
                      "serviceInformation": [
                          {
                              "ITSystemName": "EF-CORE",
                              "complete": true,
                              "serviceVersion": "1.2.0",
                              "statusDetailList": {
                                  "statusDetail": [
                                      {
                                          "code": "ERROR",
                                          "description": "ElixFormsException: Nessuno schema SWF associato al modulo con tag \"PROPOSTA_CCT_OPERATORE\"",
                                          "detailStatus": "ERROR"
                                      }
                                  ]
                              }
                          }
                      ]
                  },
                  "uuid": "5a25b369-28d7-4523-987e-e92956544a87",
                  "version": "3.11.1.29",
                  "requestsSize": 0
              }
          }
