{
  "openapi": "3.0.1",
  "info": {
    "title": "General API",
    "version": "v1"
  },
  "paths": {
    "/api/Segmentum/GetTVSchedule": {
      "get": {
        "tags": [
          "Segmentum"
        ],
        "parameters": [
          {
            "name": "date",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "channelID",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TVSchedule"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TVSchedule"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TVSchedule"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Segmentum/GetTVProducts": {
      "get": {
        "tags": [
          "Segmentum"
        ],
        "parameters": [
          {
            "name": "channelID",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "currencyID",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "languageID",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "deliveryCountryID",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TVProducts"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TVProducts"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TVProducts"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Segmentum/GetProductDetails": {
      "get": {
        "tags": [
          "Segmentum"
        ],
        "parameters": [
          {
            "name": "productCode",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "currencyID",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "languageID",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "deliveryCountryID",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ProductDetails"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductDetails"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductDetails"
                }
              }
            }
          }
        }
      }
    },
    "/api/Segmentum/GetDealOfTheDay": {
      "get": {
        "tags": [
          "Segmentum"
        ],
        "parameters": [
          {
            "name": "channelID",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "languageID",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DealOfTheDay"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DealOfTheDay"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/DealOfTheDay"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/Test/IPAddress": {
      "get": {
        "tags": [
          "Test"
        ],
        "summary": "Checks the IP being used",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/StringApiResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StringApiResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/StringApiResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/Test/Headers": {
      "get": {
        "tags": [
          "Test"
        ],
        "summary": "Checks the headers which are being passed",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/StringStringDictionaryApiResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StringStringDictionaryApiResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/StringStringDictionaryApiResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/Test/EnvironmentName": {
      "get": {
        "tags": [
          "Test"
        ],
        "summary": "Returns the EnvironmentName in use",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/StringApiResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StringApiResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/StringApiResult"
                }
              }
            }
          }
        }
      }
    },
    "/api/Test/Threads": {
      "get": {
        "tags": [
          "Test"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ThreadCount"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ThreadCount"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ThreadCount"
                }
              }
            }
          }
        }
      }
    },
    "/api/Test/Error": {
      "post": {
        "tags": [
          "Test"
        ],
        "requestBody": {
          "content": {
            "application/json-patch+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ThreadCount"
                  }
                ]
              }
            },
            "application/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ThreadCount"
                  }
                ]
              }
            },
            "text/json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ThreadCount"
                  }
                ]
              }
            },
            "application/*+json": {
              "schema": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/ThreadCount"
                  }
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/StringApiResult"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StringApiResult"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/StringApiResult"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "DealOfTheDay": {
        "type": "object",
        "properties": {
          "desktopImage": {
            "type": "string",
            "nullable": true
          },
          "mobileImage": {
            "type": "string",
            "nullable": true
          },
          "productID": {
            "type": "integer",
            "format": "int32"
          },
          "productCode": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "link": {
            "type": "string",
            "nullable": true
          },
          "scheduledForUTC": {
            "type": "string",
            "format": "date-time"
          },
          "live": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "ProductDetails": {
        "type": "object",
        "properties": {
          "productDetailID": {
            "type": "integer",
            "format": "int32"
          },
          "productCode": {
            "type": "string",
            "nullable": true
          },
          "description": {
            "type": "string",
            "nullable": true
          },
          "webDescription": {
            "type": "string",
            "nullable": true
          },
          "webText": {
            "type": "string",
            "nullable": true
          },
          "productType": {
            "type": "string",
            "nullable": true
          },
          "colour": {
            "type": "string",
            "nullable": true
          },
          "topline": {
            "type": "string",
            "nullable": true
          },
          "cost": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "webPrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "auctionPrice": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "image_url": {
            "type": "string",
            "nullable": true
          },
          "imageCount": {
            "type": "integer",
            "format": "int32"
          },
          "createdDate": {
            "type": "string",
            "nullable": true
          },
          "modifyDate": {
            "type": "string",
            "nullable": true
          },
          "typeID": {
            "type": "integer",
            "format": "int32"
          },
          "isKit": {
            "type": "boolean"
          },
          "isBundle": {
            "type": "boolean"
          },
          "availableQty": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "StringApiResult": {
        "type": "object",
        "properties": {
          "errorCode": {
            "type": "integer",
            "format": "int32"
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          },
          "data": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "StringStringDictionaryApiResult": {
        "type": "object",
        "properties": {
          "errorCode": {
            "type": "integer",
            "format": "int32"
          },
          "errorMessage": {
            "type": "string",
            "nullable": true
          },
          "data": {
            "type": "object",
            "additionalProperties": {
              "type": "string",
              "nullable": true
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TVProducts": {
        "type": "object",
        "properties": {
          "auctionID": {
            "type": "integer",
            "format": "int32"
          },
          "productDetailID": {
            "type": "integer",
            "format": "int32"
          },
          "productCode": {
            "type": "string",
            "nullable": true
          },
          "descriptionProduct": {
            "type": "string",
            "nullable": true
          },
          "descriptionWeb": {
            "type": "string",
            "nullable": true
          },
          "webPrice": {
            "type": "number",
            "format": "double"
          },
          "soldOut": {
            "type": "boolean"
          },
          "onTV": {
            "type": "boolean"
          }
        },
        "additionalProperties": false
      },
      "TVSchedule": {
        "type": "object",
        "properties": {
          "showdate": {
            "type": "string",
            "format": "date-time"
          },
          "amPresenter": {
            "type": "integer",
            "format": "int32"
          },
          "amDesigner": {
            "type": "integer",
            "format": "int32"
          },
          "midPresenter": {
            "type": "integer",
            "format": "int32"
          },
          "midDesigner": {
            "type": "integer",
            "format": "int32"
          },
          "pmPresenter": {
            "type": "integer",
            "format": "int32"
          },
          "pmdesigner": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      },
      "ThreadCount": {
        "type": "object",
        "properties": {
          "minWorkerThreads": {
            "type": "integer",
            "format": "int32"
          },
          "minCompletionPortThreads": {
            "type": "integer",
            "format": "int32"
          },
          "maxWorkerThreads": {
            "type": "integer",
            "format": "int32"
          },
          "maxCompletionPortThreads": {
            "type": "integer",
            "format": "int32"
          },
          "availableWorkerThreads": {
            "type": "integer",
            "format": "int32"
          },
          "availableCompletionPortThreads": {
            "type": "integer",
            "format": "int32"
          },
          "usedWorkerThreads": {
            "type": "integer",
            "format": "int32"
          },
          "usedCompletionPortThreads": {
            "type": "integer",
            "format": "int32"
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "apiKey",
        "description": "Standard Authorization header using the APIKey scheme. Example: \"{token}\"",
        "name": "APIKey",
        "in": "header"
      }
    }
  }
}