{
    "openapi": "3.0.1",
    "info": {
        "title": "OpenAPI definition",
        "version": "v0"
    },
    "paths": {
        "/v1/getNetexSnapshot": {
            "get": {
                "tags": [
                    "Scarico Massivo"
                ],
                "operationId": "getNetexSnapshot",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/RestReturnValueGetNetexSnapshotOutputDTO"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Risposta restituita in caso di errore non gestito",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/RestReturnValue"
                                },
                                "examples": {
                                    "Errore di sistema": {
                                        "description": "Errore di sistema",
                                        "value": {
                                            "result": {
                                                "exitCode": "500",
                                                "text": "Si &egrave; verificato un errore di sistema"
                                            },
                                            "payload": null
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/v1/getRichiestaDownload": {
            "get": {
                "tags": [
                    "Scarico Massivo"
                ],
                "operationId": "getNetexSnapshot_1",
                "parameters": [
                    {
                        "name": "snapshotId",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/RestReturnValueRequestIdOutputDTO"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Risposta restituita in caso di errore non gestito",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/RestReturnValue"
                                },
                                "examples": {
                                    "Errore di sistema": {
                                        "description": "Errore di sistema",
                                        "value": {
                                            "result": {
                                                "exitCode": "500",
                                                "text": "Si &egrave; verificato un errore di sistema"
                                            },
                                            "payload": null
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "RestReturnValue": {
                "type": "object",
                "properties": {
                    "result": {
                        "$ref": "#/components/schemas/Result"
                    },
                    "payload": {
                        "type": "object"
                    }
                }
            },
            "Result": {
                "type": "object",
                "properties": {
                    "exitCode": {
                        "type": "string"
                    },
                    "text": {
                        "type": "string"
                    }
                }
            },
            "GetNetexSnapshotOutputDTO": {
                "type": "object",
                "properties": {
                    "snapshots": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/SnapshotDTO"
                        }
                    }
                }
            },
            "SnapshotDTO": {
                "type": "object",
                "properties": {
                    "snapshotId": {
                        "type": "string"
                    },
                    "neTExLevel": {
                        "type": "integer",
                        "format": "int64"
                    },
                    "areaType": {
                        "type": "string"
                    },
                    "areaNutsCode": {
                        "type": "string"
                    },
                    "creationTime": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "modificationTime": {
                        "type": "string",
                        "format": "date-time"
                    }
                }
            },
            "RestReturnValueGetNetexSnapshotOutputDTO": {
                "type": "object",
                "properties": {
                    "result": {
                        "$ref": "#/components/schemas/Result"
                    },
                    "payload": {
                        "$ref": "#/components/schemas/GetNetexSnapshotOutputDTO"
                    }
                }
            },
            "RequestIdOutputDTO": {
                "type": "object",
                "properties": {
                    "requestId": {
                        "type": "string"
                    }
                }
            },
            "RestReturnValueRequestIdOutputDTO": {
                "type": "object",
                "properties": {
                    "result": {
                        "$ref": "#/components/schemas/Result"
                    },
                    "payload": {
                        "$ref": "#/components/schemas/RequestIdOutputDTO"
                    }
                }
            }
        }
    }
}