{
  "repo": "pingcap/campaign",
  "binary": "gaday-webapi",
  "binary_path": "gaday/webapi/index.js",
  "dependencies": {
    "HTTP GET /api/contributors": {
      "infrastructure": {
        "filesystem": {
          "conditions": [
            "Always when the endpoint is called"
          ],
          "operations": [
            {
              "operation": "READ FILE",
              "trigger": "Load employee list and contributors data before responding",
              "conditions": [
                "HTTP GET /api/contributors"
              ],
              "implementation": "fs.readFileSync('../pingcap-employee.txt'); fs.readFileSync('../contributors.json')"
            }
          ]
        },
        "tcp": {
          "conditions": [
            "Always after startup"
          ],
          "operations": [
            {
              "operation": "LISTEN",
              "trigger": "Start the json-server listener",
              "conditions": [
                "server.listen(5000)"
              ],
              "implementation": "server.listen(5000)"
            }
          ]
        }
      },
      "services": []
    }
  }
}
