anticorruzione / npa

18 stars 7 forks source link

Crea Appalto #1580

Open petromanco opened 4 months ago

petromanco commented 4 months ago

quando invio la richiesta di un nuovo appalto l'e-service mi ritorna 400, di seguito la request:

{
    "Version": {
        "_Major": 1,
        "_Minor": 1,
        "_Build": -1,
        "_Revision": -1
    },
    "Content": {
        "Headers": [
            {
                "Key": "Content-Type",
                "Value": [
                    "application/json"
                ]
            },
            {
                "Key": "Expires",
                "Value": [
                    "0"
                ]
            }
        ]
    },
    "StatusCode": 400,
    "ReasonPhrase": "Bad Request",
    "Headers": [
        {
            "Key": "Transfer-Encoding",
            "Value": [
                "chunked"
            ]
        },
        {
            "Key": "Connection",
            "Value": [
                "keep-alive"
            ]
        },
        {
            "Key": "x-xss-protection",
            "Value": [
                "1; mode=block"
            ]
        },
        {
            "Key": "pragma",
            "Value": [
                "no-cache"
            ]
        },
        {
            "Key": "GovWay-Message-ID",
            "Value": [
                "a680a73f-990d-4f9d-b6d6-3b5e59e7c855"
            ]
        },
        {
            "Key": "x-frame-options",
            "Value": [
                "DENY"
            ]
        },
        {
            "Key": "GovWay-Transaction-ID",
            "Value": [
                "c066d1d8-4036-11ef-bd08-0050568e9679"
            ]
        },
        {
            "Key": "vary",
            "Value": [
                "Access-Control-Request-Headers",
                "Access-Control-Request-Method",
                "Origin"
            ]
        },
        {
            "Key": "x-content-type-options",
            "Value": [
                "nosniff"
            ]
        },
        {
            "Key": "strict-transport-security",
            "Value": [
                "max-age=31536000 ; includeSubDomains",
                "max-age=63072000"
            ]
        },
        {
            "Key": "Cache-Control",
            "Value": [
                "no-store, must-revalidate, no-cache, max-age=0"
            ]
        },
        {
            "Key": "Date",
            "Value": [
                "Fri, 12 Jul 2024 10:34:19 GMT"
            ]
        },
        {
            "Key": "Set-Cookie",
            "Value": [
                "48660c0d09a5bc00d558af703a720b6f=e7676082ced1af0794b246cda7892678; path=/; HttpOnly; Secure; SameSite=None"
            ]
        },
        {
            "Key": "Server",
            "Value": [
                "nginx"
            ]
        }
    ],
    "RequestMessage": {
        "Version": {
            "_Major": 1,
            "_Minor": 1,
            "_Build": -1,
            "_Revision": -1
        },
        "Content": {
            "ObjectType": "Sigeg.AD2_25, Sigeg, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null",
            "Value": {
                "_idScheda": "1bc589e1-6548-47bc-b540-af67292b4eaa",
                "codice": {
                    "idTipologica": "codiceScheda",
                    "codice": "AD2_25"
                },
                "versione": "1.0",
                "_stato": {
                    "idTipologica": "statoScheda",
                    "codice": "CONF"
                },
                "_dataCreazione": "2024-07-12T12:34:18.044484+02:00",
                "body": {
                    "anacForm": {
                        "stazioniAppaltanti": [
                            {
                                "codiceFiscale": "12345678901",
                                "codiceAusa": "12345678901",
                                "codiceCentroCosto": "12345678901",
                                "funzioniSvolte": [
                                    {
                                        "idTipologica": "funzioniSvolte",
                                        "codice": "3"
                                    }
                                ],
                                "saTitolare": true
                            }
                        ],
                        "appalto": {
                            "codiceAppalto": "12345678901",
                            "motivoUrgenza": {
                                "idTipologica": "motivoUrgenza",
                                "codice": "7"
                            },
                            "linkDocumenti": "",
                            "relazioneUnicaSulleProcedure": false,
                            "opereUrbanizzazioneScomputo": false,
                            "datiBase": {
                                "oggetto": "Oggetto",
                                "oggettoMl": null
                            },
                            "datiBaseProcedura": {
                                "tipoProcedura": {
                                    "idTipologica": "tipoProcedura",
                                    "codice": "neg-wo-call"
                                },
                                "giustificazioniAggiudicazioneDiretta": null
                            },
                            "datiBaseStrumentiProcedura": null,
                            "datiBaseSubappalti": null
                        },
                        "aggiudicazioni": [
                            {
                                "lotIdentifier": "lotto-1asd",
                                "afferenteInvestimentiPNRR": false,
                                "acquisizioneCup": false,
                                "cupLotto": null,
                                "ccnl": "ccnl",
                                "categoria": {
                                    "idTipologica": "categoria",
                                    "codice": "FS"
                                },
                                "categoriaScorporabile": null,
                                "codIstat": {
                                    "idTipologica": "codIstat",
                                    "codice": "015063049"
                                },
                                "paritaDiGenereGenerazionale": null,
                                "quadroEconomicoStandard": {
                                    "impLavori": 0.0,
                                    "impServizi": 10000.25,
                                    "impForniture": 0.0,
                                    "impTotaleSicurezza": 0.0,
                                    "ulterioriSommeNoRibasso": 0.0,
                                    "impProgettazione": 0.0,
                                    "sommeOpzioniRinnovi": 0.0,
                                    "sommeRipetizioni": 0.0,
                                    "sommeADisposizione": 10000.25
                                },
                                "quadroEconomicoConcessioni": null,
                                "partecipanti": [
                                    {
                                        "codiceFiscale": "08889011212",
                                        "denominazione": "Imperium Solution Srls",
                                        "ruoloOE": {
                                            "idTipologica": "ruoloOE",
                                            "codice": "3"
                                        },
                                        "tipoOE": {
                                            "idTipologica": "tipoOE",
                                            "codice": "1"
                                        },
                                        "idPartecipante": "f81d4fae-7dec-11d0-a765-00a0c91e6bf6",
                                        "paeseOperatoreEconomico": "ITALIA",
                                        "paeseOperatoreEconomicoMl": null,
                                        "avvalimento": false,
                                        "importo": 10000.25,
                                        "tipologiaAvvalimento": null
                                    }
                                ],
                                "finanziamenti": null,
                                "datiBase": {
                                    "oggettoContratto": {
                                        "idTipologica": "oggettoContratto",
                                        "codice": "services"
                                    },
                                    "oggetto": "OGGETTO DI TEST DEL CONTRATTO",
                                    "oggettoMl": null
                                },
                                "datiBaseCPV": {
                                    "tipoClassificazione": {
                                        "idTipologica": "tipoClassificazione",
                                        "codice": "cpv"
                                    },
                                    "cpvPrevalente": {
                                        "idTipologica": "CPV",
                                        "codice": "98341140"
                                    },
                                    "cpvSecondarie": null
                                },
                                "datiBaseContratto": null,
                                "datiBaseAggiudicazioneAppalto": {
                                    "dataAggiudicazione": "2024-07-12T12:34:18.044484+02:00"
                                },
                                "datiBaseAccessibilita": null,
                                "datiBaseDocumenti": {
                                    "url": "https://sigeg.giustizia.it/Trasparenza",
                                    "lingue": null
                                },
                                "espd": null
                            }
                        ]
                    },
                    "espd": "askjdalksdjalkdjalskdjasdjasldjaskdjsladkjs"
                }
            },
            "Headers": [
                {
                    "Key": "Content-Type",
                    "Value": [
                        "application/json"
                    ]
                },
                {
                    "Key": "Content-Length",
                    "Value": [
                        "2492"
                    ]
                }
            ]
        },
        "Method": {
            "Method": "POST"
        },
        "RequestUri": "https://apigw-test.anticorruzione.it/modi/rest/ComunicaAppalto/v2/crea-appalto",
        "Headers": [
            {
                "Key": "Authorization",
                "Value": [
                    "Bearer eyJ0eXAiOiJhdCtqd3QiLCJhbGciOiJSUzI1NiIsInVzZSI6InNpZyIsImtpZCI6IjMyZDhhMzIxLTE1NjgtNDRmNS05NTU4LWE5MDcyZjUxOWQyZCJ9.eyJhdWQiOiJodHRwczovL2FwaWd3LXRlc3QuYW50aWNvcnJ1emlvbmUuaXQvbW9kaS9yZXN0L0NvbXVuaWNhQXBwYWx0by92MiIsInN1YiI6IjhkNjc5OWVlLTNhNzItNDgyOS04N2Y3LWQ1NDc4MzJkYmE2OSIsIm5iZiI6MTcyMDc4MDQ1NywiZGlnZXN0Ijp7ImFsZyI6IlNIQTI1NiIsInZhbHVlIjoiYjdhOGI2OWFkNGY4ZDUyYzJhMDNiMWVmMWRhYjA2ZTM2OWEyZDU0ZTk4NDY4NTcwNzdhMWY1MzI0MDM5MzllZiJ9LCJwdXJwb3NlSWQiOiJmNmRmYzBjMS01OTIwLTQ2MDUtOGJkNi1iNGVmYzY4N2MzNDMiLCJpc3MiOiJ1YXQuaW50ZXJvcC5wYWdvcGEuaXQiLCJleHAiOjE3MjA3ODQwNTcsImlhdCI6MTcyMDc4MDQ1NywiY2xpZW50X2lkIjoiOGQ2Nzk5ZWUtM2E3Mi00ODI5LTg3ZjctZDU0NzgzMmRiYTY5IiwianRpIjoiYTY4MGE3M2YtOTkwZC00ZjlkLWI2ZDYtM2I1ZTU5ZTdjODU1In0.OhqQ7BaAQeruA4hmilru5rTqcnKLW7KgwWPhoakI83AtHwQ6IyIw3rhLMTRrlUiQJ9q-RFitPV0e3zZTIN6UV4xF2ymOO_Kur3HyBDnCGmS0qslL86wCXvwZYpVTJaErJ5_Fl3-iJg0axplIu5ZWUf9Qq9MnghNDH4sSOlvotlye82m-OuyaciDywX72oZOYcuVjAGIZWpJhwaFPoc-_2iMc-jmJHJjz5vSv09LjT7JKQNANLanLirKKdtlrvPbZzz6USKG78PRkMN5b66CHy1AEaWTWCAGHgcNREJ-pl99kn-KWEbZupx0YpDgCxhqDKmeCf64agK57MpQPDJKUIg"
                ]
            },
            {
                "Key": "Agid-JWT-TrackingEvidence",
                "Value": [
                    "eyJraWQiOiJKNkVIN3FvWlZKUEs5U25Yb3FQWjZ5OWNBdk96cDVLMldGbTJYQVZ3Wm4wIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJpc3MiOiI4ZDY3OTllZS0zYTcyLTQ4MjktODdmNy1kNTQ3ODMyZGJhNjkiLCJzdWIiOiI4ZDY3OTllZS0zYTcyLTQ4MjktODdmNy1kNTQ3ODMyZGJhNjkiLCJhdWQiOiJodHRwczovL2FwaWd3LXRlc3QuYW50aWNvcnJ1emlvbmUuaXQvbW9kaS9yZXN0L0NvbXVuaWNhQXBwYWx0by92MiIsInB1cnBvc2VJZCI6ImY2ZGZjMGMxLTU5MjAtNDYwNS04YmQ2LWI0ZWZjNjg3YzM0MyIsImp0aSI6ImZlNTExY2MxLWQ5N2YtNDRiNS05MmUxLTYzYmI1N2EzMGQxYSIsImlhdCI6MTcyMDc4MDQ1OCwiZXhwIjoxNzIzMzc5NjU4LCJ1c2VyQ29kaWNlRmlzY2FsZSI6IkFBQUFBQTAwQTAxSDUwMVoiLCJ1c2VyUm9sZSI6IlJQIiwidXNlckxvYSI6IjMiLCJ1c2VySWRwVHlwZSI6IlNQSUQiLCJTQUNvZGljZUZpc2NhbGUiOiI4MDE4NDQzMDU4NyIsIlNBY29kaWNlQVVTQSI6IjAwMDAyNDc3NTgiLCJyZWdDb2RpY2VQaWF0dGFmb3JtYSI6IjEwMDAwMDEiLCJyZWdDb2RpY2VDb21wb25lbnRlIjoiMTAwMDAwMSIsImJ1c2luZXNzRmxvd0lEIjoiMDAwMDAwMDAtMDAwMC0wMDAwLTAwMDAtMDAwMDAwMDAwMDAwIiwidHJhY2VJRCI6ImY0MGM0N2U3LWNlMGYtNGQ4My04OTdlLTAzNDE4NWRjNTYxMSIsInNwYW5JRCI6IjAxNmIxYzhlLTE0YjMtNDFhOC04MzM2LTA2ZGZjOGUzNDFkZCJ9.BF-gohiC-SichKStqO2T1vYT6eTvHczwREaCRBvdDZUWksPSJrGKvzjOhYG8y_dOsxwcDdp4UheSF8Pd137_VdXRVr14_7qHjEjqmQgJ9Z1-IcG-4sCRIoMBIRSnK_jctRFRb4T94DFvIQOxfl5FEeDAEV6FVdAU_-BaV0BroE6tDopAGL21Z09FPBt2HhShQfgnSmMv4RmgHUoEK_1lvi6WWMSKwE-o906agAGg-9Yy-UySDU_VDHQUPfD96X9543-91fEKx7KtuozICHiKdLACpnGyBUNBJXZhdM-fCUNE9zBQNaln2sj8-jp5F_wUgYSlW8-MgZDwmB7CGLZESg"
                ]
            },
            {
                "Key": "Accept",
                "Value": [
                    "application/json"
                ]
            }
        ],
        "Properties": {}
    },
    "IsSuccessStatusCode": false
}

come possiamo risolvere? Grazie

obigno77 commented 4 months ago

E' possibile avere il govway transactionID?

petromanco commented 4 months ago

{ "Key": "GovWay-Transaction-ID", "Value": [ "c066d1d8-4036-11ef-bd08-0050568e9679" ] },