{
  "info": {
    "_postman_id": "2e0b5ef1-521e-49eb-a54b-aa98615875eb",
    "name": "hotupdater",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "_exporter_id": "862692"
  },
  "item": [
    {
      "name": "hotUpdaterVersion",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{hotUpdater}}/version",
          "host": [
            "{{hotUpdater}}"
          ],
          "path": [
            "version"
          ]
        }
      },
      "response": []
    },
    {
      "name": "hotUpdaterBundles",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{hotUpdater}}/api/bundles",
          "host": [
            "{{hotUpdater}}"
          ],
          "path": [
            "api",
            "bundles"
          ]
        }
      },
      "response": []
    },
    {
      "name": "hotUpdaterBundles",
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"id\": \"019c6e22-4660-71f0-81a1-20b8e0d34066\",\n    \"platform\": \"ios\",\n    \"enabled\": true,\n    \"fileHash\": \"cd823479304bcd8dbf60abe7cd98e6c1d4ea5e5b2fee35893619a5319602f8ae\",\n    \"gitCommitHash\": \"6eb8d62b1988c436b4774e2608b756a063f0fbf8\",\n    \"message\": \"v4\",\n    \"channel\": \"production\",\n    \"storageUri\": \"http://192.168.0.136:5556/019c6e22-4660-71f0-81a1-20b8e0d34066\",\n    \"targetAppVersion\": \"1.0.0\",\n    \"shouldForceUpdate\": false,\n    \"fingerprintHash\": null,\n    \"metadata\": {\n        \"app_version\": \"1.0\"\n    }\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{hotUpdater}}/api/bundles",
          "host": [
            "{{hotUpdater}}"
          ],
          "path": [
            "api",
            "bundles"
          ]
        }
      },
      "response": []
    },
    {
      "name": "hotUpdaterBundlesWithParams",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{hotUpdater}}/api/bundles?limit=5000&channel=production",
          "host": [
            "{{hotUpdater}}"
          ],
          "path": [
            "api",
            "bundles"
          ],
          "query": [
            {
              "key": "limit",
              "value": "5000"
            },
            {
              "key": "channel",
              "value": "production"
            }
          ]
        }
      },
      "response": []
    },
    {
      "name": "hotUpdaterChannels",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{hotUpdater}}/api/bundles/channels",
          "host": [
            "{{hotUpdater}}"
          ],
          "path": [
            "api",
            "bundles",
            "channels"
          ]
        }
      },
      "response": []
    },
    {
      "name": "hotUpdaterMobileCheck",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{hotUpdater}}/app-version/ios/1.0/production/019c3d53-0180-7000-8000-000000000000/019c3d53-0180-7000-8000-00000000",
          "host": [
            "{{hotUpdater}}"
          ],
          "path": [
            "app-version",
            "ios",
            "1.0",
            "production",
            "019c3d53-0180-7000-8000-000000000000",
            "019c3d53-0180-7000-8000-00000000"
          ]
        }
      },
      "response": []
    },
    {
      "name": "cdnBundle",
      "request": {
        "auth": {
          "type": "noauth"
        },
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{cdn}}/test-bundle-from-postman",
          "host": [
            "{{cdn}}"
          ],
          "path": [
            "test-bundle-from-postman"
          ]
        }
      },
      "response": []
    },
    {
      "name": "adminFiles",
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "formdata",
          "formdata": [
            {
              "key": "key",
              "value": "019c6e22-4660-71f0-81a1-20b8e0d34066",
              "type": "text",
              "uuid": "c9606605-443c-47d2-9261-6198475f17b0"
            },
            {
              "key": "file",
              "type": "file",
              "uuid": "461aaa0f-70d5-4b25-89ba-8f057c2d5a26",
              "src": "/Users/yaroslavzozulia/Downloads/019c6d28-ae03-74f5-bf10-0c8781a0f008.zip"
            }
          ]
        },
        "url": {
          "raw": "{{admin}}/files",
          "host": [
            "{{admin}}"
          ],
          "path": [
            "files"
          ]
        }
      },
      "response": []
    },
    {
      "name": "adminBundles",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{admin}}/bundles?targetVersion=1.0.0&channel=production&platform=ios",
          "host": [
            "{{admin}}"
          ],
          "path": [
            "bundles"
          ],
          "query": [
            {
              "key": "targetVersion",
              "value": "1.0.0"
            },
            {
              "key": "channel",
              "value": "production"
            },
            {
              "key": "platform",
              "value": "ios"
            }
          ]
        }
      },
      "response": []
    },
    {
      "name": "adminBundlesPromote",
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"bundleId\": \"019c6e22-4660-71f0-81a1-20b8e0d34066\",\n  \"currentChannel\": \"production\",\n  \"newChannel\": \"superChanel\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{admin}}/bundles/promote",
          "host": [
            "{{admin}}"
          ],
          "path": [
            "bundles",
            "promote"
          ]
        }
      },
      "response": []
    },
    {
      "name": "adminBundlesPromoteByGitHash",
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"gitCommitHash\": \"6eb8d62b1988c436b4774e2608b756a063f0fbf8\",\n  \"platform\": \"ios\",\n  \"currentChannel\": \"production\",\n  \"newChannel\": \"superChanel\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{admin}}/bundles/promote",
          "host": [
            "{{admin}}"
          ],
          "path": [
            "bundles",
            "promote"
          ]
        }
      },
      "response": []
    },
    {
      "name": "health",
      "protocolProfileBehavior": {
        "disableBodyPruning": true
      },
      "request": {
        "method": "GET",
        "header": [],
        "body": {
          "mode": "formdata",
          "formdata": [
            {
              "key": "key",
              "value": "019c6e22-4660-71f0-81a1-20b8e0d34066",
              "type": "text",
              "uuid": "c9606605-443c-47d2-9261-6198475f17b0"
            },
            {
              "key": "file",
              "type": "file",
              "uuid": "461aaa0f-70d5-4b25-89ba-8f057c2d5a26",
              "src": "/Users/yaroslavzozulia/Downloads/019c6d28-ae03-74f5-bf10-0c8781a0f008.zip"
            }
          ]
        },
        "url": {
          "raw": "{{host}}/health",
          "host": [
            "{{host}}"
          ],
          "path": [
            "health"
          ]
        }
      },
      "response": []
    },
    {
      "name": "testError",
      "protocolProfileBehavior": {
        "disableBodyPruning": true
      },
      "request": {
        "method": "GET",
        "header": [],
        "body": {
          "mode": "formdata",
          "formdata": [
            {
              "key": "key",
              "value": "019c6e22-4660-71f0-81a1-20b8e0d34066",
              "type": "text",
              "uuid": "c9606605-443c-47d2-9261-6198475f17b0"
            },
            {
              "key": "file",
              "type": "file",
              "uuid": "461aaa0f-70d5-4b25-89ba-8f057c2d5a26",
              "src": "/Users/yaroslavzozulia/Downloads/019c6d28-ae03-74f5-bf10-0c8781a0f008.zip"
            }
          ]
        },
        "url": {
          "raw": "{{host}}/test/error?message=someError",
          "host": [
            "{{host}}"
          ],
          "path": [
            "test",
            "error"
          ],
          "query": [
            {
              "key": "message",
              "value": "someError",
              "type": "text"
            }
          ]
        }
      },
      "response": []
    },
    {
      "name": "analyticsTrackDownload",
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"type\": \"download\",\n    \"bundleId\": \"0000001\",\n    \"installationId\": \"0000001\",\n    \"platform\": \"android\",\n    \"channel\": \"dev\",\n    \"nativeVersion\": \"1.0.0\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{host}}/analytics/track",
          "host": [
            "{{host}}"
          ],
          "path": [
            "analytics",
            "track"
          ]
        }
      },
      "response": []
    },
    {
      "name": "analyticsTrackInstall",
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"type\": \"install\",\n    \"bundleId\": \"0000001\",\n    \"installationId\": \"0000001\",\n    \"platform\": \"android\",\n    \"channel\": \"dev\",\n    \"nativeVersion\": \"1.0.0\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{host}}/analytics/track",
          "host": [
            "{{host}}"
          ],
          "path": [
            "analytics",
            "track"
          ]
        }
      },
      "response": []
    },
    {
      "name": "analyticsTrackRollback",
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"type\": \"rollback\",\n    \"bundleId\": \"0000001\",\n    \"installationId\": \"0000001\",\n    \"platform\": \"android\",\n    \"channel\": \"dev\",\n    \"nativeVersion\": \"1.0.0\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{host}}/analytics/track",
          "host": [
            "{{host}}"
          ],
          "path": [
            "analytics",
            "track"
          ]
        }
      },
      "response": []
    },
    {
      "name": "apiKeysListAll",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{host}}/api-keys",
          "host": [
            "{{host}}"
          ],
          "path": [
            "api-keys"
          ]
        }
      },
      "response": []
    },
    {
      "name": "apiKeysGetById",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{host}}/api-keys/:id",
          "host": [
            "{{host}}"
          ],
          "path": [
            "api-keys",
            ":id"
          ],
          "variable": [
            {
              "key": "id",
              "value": "019d1234-5678-7000-8000-000000000000",
              "description": "API Key UUID"
            }
          ]
        }
      },
      "response": []
    },
    {
      "name": "apiKeysCreate",
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"title\": \"My API Key\",\n    \"permission\": \"hotupdater:read hotupdater:write\",\n    \"ttl\": \"never\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{host}}/api-keys",
          "host": [
            "{{host}}"
          ],
          "path": [
            "api-keys"
          ]
        }
      },
      "response": []
    },
    {
      "name": "apiKeysCreateWithCustomKey",
      "request": {
        "method": "POST",
        "header": [],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"title\": \"Test API Key with Custom Value\",\n    \"permission\": \"hotupdater:read\",\n    \"key\": \"my_custom_test_key_1234567890abcdef\",\n    \"ttl\": \"30d\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{host}}/api-keys",
          "host": [
            "{{host}}"
          ],
          "path": [
            "api-keys"
          ]
        }
      },
      "response": []
    },
    {
      "name": "apiKeysDelete",
      "request": {
        "method": "DELETE",
        "header": [],
        "url": {
          "raw": "{{host}}/api-keys/:id",
          "host": [
            "{{host}}"
          ],
          "path": [
            "api-keys",
            ":id"
          ],
          "variable": [
            {
              "key": "id",
              "value": "019d1234-5678-7000-8000-000000000000",
              "description": "API Key UUID"
            }
          ]
        }
      },
      "response": []
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{token}}",
        "type": "string"
      }
    ]
  },
  "event": [
    {
      "listen": "prerequest",
      "script": {
        "type": "text/javascript",
        "packages": {},
        "exec": [
          ""
        ]
      }
    },
    {
      "listen": "test",
      "script": {
        "type": "text/javascript",
        "packages": {},
        "exec": [
          ""
        ]
      }
    }
  ]
}
