{
    "openapi": "3.0.1",
    "info": {
        "title": "OpenAPI definition",
        "version": "v0"
    },
    "servers": [
        {
            "url": "http://localhost:8080/piattaformevenditaservice",
            "description": "Generated server url"
        }
    ],
    "paths": {
        "/v1/elencoPiattaformeVendita": {
            "post": {
                "tags": [
                    "elenco-piattaforme-vendita"
                ],
                "operationId": "elencoPiattaformeVendita",
                "requestBody": {
                    "description": "Details of the Item to be created",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/ElencoPiattaformeVenditaInputDTO"
                            },
                            "examples": {
                                "Invio di una richiesta di elenco piattaforme di vendita": {
                                    "summary": "Richiesta corretta",
                                    "description": "Invio di una richiesta di elenco piattaforme di vendita",
                                    "value": {
                                        "idOperatore": "IT:ITC1:Operator:busATS:11",
                                        "pagina": 1,
                                        "elementiPerPagina": 10,
                                        "verso": "ASC"
                                    }
                                }
                            }
                        }
                    },
                    "required": true
                },
                "responses": {
                    "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
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "200": {
                        "description": "OK",
                        "content": {
                            "*/*": {
                                "schema": {
                                    "$ref": "#/components/schemas/RestReturnValueElencoPiattaformeVenditaOutputDTO"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Risposta restituita in caso di errore di validazione",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/InValidPropsOutput"
                                },
                                "examples": {
                                    "Errore di validazione": {
                                        "description": "Errore di validazione",
                                        "value": {
                                            "result": {
                                                "exitCode": "400",
                                                "text": "Errore di validazione"
                                            },
                                            "payload": {
                                                "props": {
                                                    "additionalProp1": "string",
                                                    "additionalProp2": "string",
                                                    "additionalProp3": "string"
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "RestReturnValue": {
                "type": "object",
                "properties": {
                    "result": {
                        "$ref": "#/components/schemas/Result"
                    },
                    "payload": {
                        "type": "object"
                    }
                }
            },
            "Result": {
                "type": "object",
                "properties": {
                    "exitCode": {
                        "type": "string"
                    },
                    "text": {
                        "type": "string"
                    }
                }
            },
            "ElencoPiattaformeVenditaInputDTO": {
                "required": [
                    "idOperatore"
                ],
                "type": "object",
                "properties": {
                    "idOperatore": {
                        "pattern": "^([0-9]*)$",
                        "type": "string"
                    },
                    "pagina": {
                        "type": "integer",
                        "format": "int64"
                    },
                    "elementiPerPagina": {
                        "type": "integer",
                        "format": "int64"
                    },
                    "verso": {
                        "pattern": "ASC|DESC",
                        "type": "string",
                        "enum": [
                            "ASC",
                            "DESC"
                        ]
                    }
                }
            },
            "ElencoPiattaformeVenditaOutputDTO": {
                "required": [
                    "count",
                    "elencoPiattaformeVendita"
                ],
                "type": "object",
                "properties": {
                    "count": {
                        "type": "integer",
                        "format": "int64"
                    },
                    "elencoPiattaformeVendita": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/PiattaformeVenditaOutputDTO"
                        }
                    }
                }
            },
            "PiattaformeVenditaOutputDTO": {
                "required": [
                    "idPiattaforma",
                    "nomePiattaforma",
                    "url"
                ],
                "type": "object",
                "properties": {
                    "idPiattaforma": {
                        "type": "string"
                    },
                    "nomePiattaforma": {
                        "type": "string"
                    },
                    "descrizione": {
                        "type": "string"
                    },
                    "distributionChannelType": {
                        "type": "string"
                    },
                    "paymentMethods": {
                        "type": "string"
                    },
                    "url": {
                        "type": "string"
                    }
                }
            },
            "RestReturnValueElencoPiattaformeVenditaOutputDTO": {
                "type": "object",
                "properties": {
                    "result": {
                        "$ref": "#/components/schemas/Result"
                    },
                    "payload": {
                        "$ref": "#/components/schemas/ElencoPiattaformeVenditaOutputDTO"
                    }
                }
            },
            "InValidPropsOutput": {
                "type": "object",
                "properties": {
                    "props": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "string"
                        }
                    }
                }
            }
        }
    }
}