{
  "openapi": "3.0.0",
  "info": {
    "title": "deviceserver-app",
    "version": "0.0.1",
    "description": "Deviceserver application with loopback4 funcationality",
    "contact": {
      "name": "akshaysharma",
      "email": "akshay.sharma@appanalytics.in"
    }
  },
  "paths": {
    "/api/Devices/DelayInstallMapperSaver": {
      "post": {
        "x-controller-name": "CampaignapidataController",
        "x-operation-name": "submitForm23",
        "tags": [
          "CampaignapidataController"
        ],
        "responses": {
          "200": {
            "description": "Form submission response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "operationId": "CampaignapidataController.submitForm23"
      }
    },
    "/api/Devices/DeleteUnusedInstallDevice": {
      "post": {
        "x-controller-name": "CampaignapidataController",
        "x-operation-name": "submitForm15",
        "tags": [
          "CampaignapidataController"
        ],
        "responses": {
          "200": {
            "description": "Form submission response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "operationId": "CampaignapidataController.submitForm15"
      }
    },
    "/api/Devices/RetentionDay0DictionarySave": {
      "post": {
        "x-controller-name": "CampaignapidataController",
        "x-operation-name": "submitForm17",
        "tags": [
          "CampaignapidataController"
        ],
        "responses": {
          "200": {
            "description": "Form submission response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "operationId": "CampaignapidataController.submitForm17"
      }
    },
    "/api/Devices/RetentionDictionarySave": {
      "post": {
        "x-controller-name": "CampaignapidataController",
        "x-operation-name": "submitForm10",
        "tags": [
          "CampaignapidataController"
        ],
        "responses": {
          "200": {
            "description": "Form submission response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "operationId": "CampaignapidataController.submitForm10"
      }
    },
    "/api/Devices/RetentionTrackerDay0Save": {
      "post": {
        "x-controller-name": "CampaignapidataController",
        "x-operation-name": "submitForm20",
        "tags": [
          "CampaignapidataController"
        ],
        "responses": {
          "200": {
            "description": "Form submission response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "operationId": "CampaignapidataController.submitForm20"
      }
    },
    "/api/Devices/RetentionTrackerSave": {
      "post": {
        "x-controller-name": "CampaignapidataController",
        "x-operation-name": "submitForm12",
        "tags": [
          "CampaignapidataController"
        ],
        "responses": {
          "200": {
            "description": "Form submission response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "operationId": "CampaignapidataController.submitForm12"
      }
    },
    "/api/Devices/RetentionTrackerSaveV2": {
      "post": {
        "x-controller-name": "CampaignapidataController",
        "x-operation-name": "submitForm27",
        "tags": [
          "CampaignapidataController"
        ],
        "responses": {
          "200": {
            "description": "Form submission response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "operationId": "CampaignapidataController.submitForm27"
      }
    },
    "/api/Devices/RetentionTrackerUpdate": {
      "post": {
        "x-controller-name": "CampaignapidataController",
        "x-operation-name": "submitForm13",
        "tags": [
          "CampaignapidataController"
        ],
        "responses": {
          "200": {
            "description": "Form submission response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "operationId": "CampaignapidataController.submitForm13"
      }
    },
    "/api/Devices/RetentionTrackerUpdate0day": {
      "post": {
        "x-controller-name": "CampaignapidataController",
        "x-operation-name": "submitForm21",
        "tags": [
          "CampaignapidataController"
        ],
        "responses": {
          "200": {
            "description": "Form submission response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "operationId": "CampaignapidataController.submitForm21"
      }
    },
    "/api/Devices/UnusedRetentionDevice": {
      "post": {
        "x-controller-name": "CampaignapidataController",
        "x-operation-name": "submitForm14",
        "tags": [
          "CampaignapidataController"
        ],
        "responses": {
          "200": {
            "description": "Form submission response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "operationId": "CampaignapidataController.submitForm14"
      }
    },
    "/api/Devices/campaignretentionactionUpdate": {
      "post": {
        "x-controller-name": "CampaignapidataController",
        "x-operation-name": "submitForm7",
        "tags": [
          "CampaignapidataController"
        ],
        "responses": {
          "200": {
            "description": "Form submission response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "operationId": "CampaignapidataController.submitForm7"
      }
    },
    "/api/Devices/campaignretentionactionUpdate0day": {
      "post": {
        "x-controller-name": "CampaignapidataController",
        "x-operation-name": "submitForm22",
        "tags": [
          "CampaignapidataController"
        ],
        "responses": {
          "200": {
            "description": "Form submission response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "operationId": "CampaignapidataController.submitForm22"
      }
    },
    "/api/Devices/gettingDelayInstall": {
      "get": {
        "x-controller-name": "CampaignapidataController",
        "x-operation-name": "submitForm24",
        "tags": [
          "CampaignapidataController"
        ],
        "responses": {
          "200": {
            "description": "Form submission response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "agentId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "delayinstall",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "CampaignapidataController.submitForm24"
      }
    },
    "/api/Devices/gettingDelayInstallCount": {
      "get": {
        "x-controller-name": "CampaignapidataController",
        "x-operation-name": "submitForm25",
        "tags": [
          "CampaignapidataController"
        ],
        "responses": {
          "200": {
            "description": "Form submission response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "agentId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "delayinstall",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "CampaignapidataController.submitForm25"
      }
    },
    "/api/Devices/gettingRetention0DayUnsetDictionary": {
      "post": {
        "x-controller-name": "CampaignapidataController",
        "x-operation-name": "submitForm18",
        "tags": [
          "CampaignapidataController"
        ],
        "responses": {
          "200": {
            "description": "Form submission response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "operationId": "CampaignapidataController.submitForm18"
      }
    },
    "/api/Devices/gettingRetention0DayUpdateDictionary": {
      "post": {
        "x-controller-name": "CampaignapidataController",
        "x-operation-name": "submitForm19",
        "tags": [
          "CampaignapidataController"
        ],
        "responses": {
          "200": {
            "description": "Form submission response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "operationId": "CampaignapidataController.submitForm19"
      }
    },
    "/api/Devices/gettingRetentionDevice": {
      "get": {
        "x-controller-name": "CampaignapidataController",
        "x-operation-name": "submitForm4",
        "tags": [
          "CampaignapidataController"
        ],
        "responses": {
          "200": {
            "description": "Form submission response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "agentId",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fromtime",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "totime",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "number"
            }
          },
          {
            "name": "skip",
            "in": "query",
            "schema": {
              "type": "number"
            }
          }
        ],
        "operationId": "CampaignapidataController.submitForm4"
      }
    },
    "/api/Devices/gettingRetentionDeviceInfo": {
      "get": {
        "x-controller-name": "CampaignapidataController",
        "x-operation-name": "submitForm5",
        "tags": [
          "CampaignapidataController"
        ],
        "responses": {
          "200": {
            "description": "Form submission response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "deviceid",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tracker",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "country",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "CampaignapidataController.submitForm5"
      }
    },
    "/api/Devices/gettingRetentionDeviceInfoUpdated": {
      "get": {
        "x-controller-name": "CampaignapidataController",
        "x-operation-name": "submitForm16",
        "tags": [
          "CampaignapidataController"
        ],
        "responses": {
          "200": {
            "description": "Form submission response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "deviceid",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tracker",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "country",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "campaignname",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "CampaignapidataController.submitForm16"
      }
    },
    "/api/Devices/gettingRetentionDeviceInfoUpdatedv2": {
      "get": {
        "x-controller-name": "CampaignapidataController",
        "x-operation-name": "submitForm26",
        "tags": [
          "CampaignapidataController"
        ],
        "responses": {
          "200": {
            "description": "Form submission response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "deviceid",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tracker",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "country",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "campaignname",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "packagename",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "CampaignapidataController.submitForm26"
      }
    },
    "/api/Devices/gettingRetentionDictionary": {
      "get": {
        "x-controller-name": "CampaignapidataController",
        "x-operation-name": "submitForm8",
        "tags": [
          "CampaignapidataController"
        ],
        "responses": {
          "200": {
            "description": "Form submission response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "collectionname",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "operationId": "CampaignapidataController.submitForm8"
      }
    },
    "/api/Devices/gettingRetentionUnsetDictionary": {
      "post": {
        "x-controller-name": "CampaignapidataController",
        "x-operation-name": "submitForm9",
        "tags": [
          "CampaignapidataController"
        ],
        "responses": {
          "200": {
            "description": "Form submission response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "operationId": "CampaignapidataController.submitForm9"
      }
    },
    "/api/Devices/gettingRetentionUpdateDictionary": {
      "post": {
        "x-controller-name": "CampaignapidataController",
        "x-operation-name": "submitForm11",
        "tags": [
          "CampaignapidataController"
        ],
        "responses": {
          "200": {
            "description": "Form submission response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "operationId": "CampaignapidataController.submitForm11"
      }
    },
    "/api/Devices/installCampaign": {
      "post": {
        "x-controller-name": "CampaignapidataController",
        "x-operation-name": "submitForm",
        "tags": [
          "CampaignapidataController"
        ],
        "responses": {
          "200": {
            "description": "Form submission response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "operationId": "CampaignapidataController.submitForm"
      }
    },
    "/api/Devices/saveDeviceInstallAction": {
      "post": {
        "x-controller-name": "CampaignapidataController",
        "x-operation-name": "submitForm2",
        "tags": [
          "CampaignapidataController"
        ],
        "responses": {
          "200": {
            "description": "Form submission response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "operationId": "CampaignapidataController.submitForm2"
      }
    },
    "/api/Devices/updateAction": {
      "post": {
        "x-controller-name": "CampaignapidataController",
        "x-operation-name": "submitForm6",
        "tags": [
          "CampaignapidataController"
        ],
        "responses": {
          "200": {
            "description": "Form submission response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "operationId": "CampaignapidataController.submitForm6"
      }
    },
    "/api/Devices/updateCampaign": {
      "post": {
        "x-controller-name": "CampaignapidataController",
        "x-operation-name": "submitForm1",
        "tags": [
          "CampaignapidataController"
        ],
        "responses": {
          "200": {
            "description": "Form submission response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "operationId": "CampaignapidataController.submitForm1"
      }
    },
    "/ping": {
      "get": {
        "x-controller-name": "PingController",
        "x-operation-name": "ping",
        "tags": [
          "PingController"
        ],
        "responses": {
          "200": {
            "description": "Ping Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PingResponse"
                }
              }
            }
          }
        },
        "operationId": "PingController.ping"
      }
    },
    "/v1/generateDevice": {
      "post": {
        "x-controller-name": "DataGeneratorController",
        "x-operation-name": "generateDevice",
        "tags": [
          "DataGeneratorController"
        ],
        "responses": {
          "200": {
            "description": "Return value of DataGeneratorController.generateDevice"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string"
                  },
                  "country": {
                    "type": "string"
                  },
                  "os": {
                    "type": "string"
                  },
                  "clickDevice": {
                    "type": "boolean"
                  },
                  "CREATE_DEVICE_MODE": {
                    "type": "number"
                  },
                  "tracker": {
                    "type": "string"
                  },
                  "metaData": {
                    "type": "object",
                    "properties": {
                      "packageName": {
                        "type": "string"
                      },
                      "campaignName": {
                        "type": "string"
                      }
                    }
                  },
                  "OLD_DEVICE_PERCENT": {
                    "type": "number"
                  }
                },
                "required": [
                  "type",
                  "country",
                  "os",
                  "clickDevice",
                  "CREATE_DEVICE_MODE",
                  "tracker",
                  "OLD_DEVICE_PERCENT"
                ]
              }
            }
          },
          "description": "Generate device request",
          "required": true
        },
        "operationId": "DataGeneratorController.generateDevice"
      },
      "get": {
        "x-controller-name": "DataGeneratorController",
        "x-operation-name": "getUsers",
        "tags": [
          "DataGeneratorController"
        ],
        "responses": {
          "200": {
            "description": "Return value of DataGeneratorController.getUsers"
          }
        },
        "operationId": "DataGeneratorController.getUsers"
      }
    }
  },
  "servers": [
    {
      "url": "http://thehouseofmush.com"
    }
  ],
  "components": {
    "schemas": {
      "PingResponse": {
        "type": "object",
        "title": "PingResponse",
        "properties": {
          "date": {
            "type": "string"
          },
          "headers": {
            "type": "object",
            "properties": {
              "Content-Type": {
                "type": "string"
              }
            },
            "additionalProperties": true
          }
        }
      }
    }
  }
}