{
    "swagger": "2.0",
    "host": "leadapi.online.brussels-expo.com",
    "basePath": "",
    "schemes": [
        "https"
    ],
    "info": {
        "title": "Tickoweb Lead APi",
        "description": "Tool to get user data from tickoweb api using barcode data",
        "version": "1.0",
        "contact": {
            "email": "info@multimedium.be"
        }
    },
    "paths": {
        "\/barcode\/{barcode}": {
            "get": {
                "tags": [
                    "Barcode"
                ],
                "description": "Get user data for given barcode",
                "parameters": [
                    {
                        "name": "barcode",
                        "in": "path",
                        "description": "Barcode string used to retrieve user data",
                        "type": "string",
                        "required": true
                    },
                    {
                        "name": "X-Api-Key",
                        "in": "header",
                        "description": "API key needed to authorize this request",
                        "type": "string",
                        "required": true
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successfully retrieved barcode data, including user information.",
                        "schema": {
                            "$ref": "#\/definitions\/BarcodeObject"
                        }
                    },
                    "401": {
                        "description": "Authorization failed. Example: Invalid API key provided.",
                        "schema": {
                            "type": "object",
                            "properties": {
                                "code": {
                                    "type": "integer"
                                },
                                "message": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Request failed. More information provided in the error response.",
                        "schema": {
                            "type": "object",
                            "properties": {
                                "code": {
                                    "type": "integer"
                                },
                                "message": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "definitions": {
        "BarcodeObject": {
            "type": "object",
            "properties": {
                "language": {
                    "type": "string",
                    "description": "shortname for the language of the customer",
                    "enum": [
                        "de",
                        "en",
                        "es",
                        "fr",
                        "it",
                        "nl",
                        "pl",
                        "pt"
                    ]
                },
                "firstName": {
                    "type": "string",
                    "description": "firstname of the customer"
                },
                "lastName": {
                    "type": "string",
                    "description": "lastname of the customer"
                },
                "email": {
                    "type": "string",
                    "description": "email of the customer",
                    "format": "email"
                },
                "street": {
                    "type": "string",
                    "description": "street of the customer"
                },
                "phone": {
                    "type": "string",
                    "description": "phone number of the customer"
                },
                "mobile": {
                    "type": "string",
                    "description": "mobile number of the customer"
                }
            }
        }
    },
    "securityDefinitions": {
        "UserSecurity": {
            "type": "basic"
        }
    }
}