{
  "opencollection": "1.0.0",
  "info": {
    "name": "Inthegame admin poll API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "poll",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api-dev.inthegame.io/adminApi/poll/create",
            "body": {
              "type": "form-urlencoded",
              "data": [
                {
                  "name": "name",
                  "value": ""
                },
                {
                  "name": "type",
                  "value": ""
                },
                {
                  "name": "viewType",
                  "value": ""
                },
                {
                  "name": "question",
                  "value": ""
                },
                {
                  "name": "hideButtons",
                  "value": ""
                },
                {
                  "name": "answers",
                  "value": ""
                },
                {
                  "name": "expoints",
                  "value": ""
                },
                {
                  "name": "questionType",
                  "value": ""
                }
              ]
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Send new poll object to save and return it as db object"
        },
        {
          "info": {
            "name": "Delete",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api-dev.inthegame.io/adminApi/poll/delete/:pollId",
            "params": [
              {
                "name": "pollId",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Send poll id to delete it from db"
        },
        {
          "info": {
            "name": "GetAll",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api-dev.inthegame.io/adminApi/poll/getAll",
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Send request to get polls list by filter options"
        },
        {
          "info": {
            "name": "GetById",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api-dev.inthegame.io/adminApi/poll/getById:pollId",
            "params": [
              {
                "name": "pollId",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Return poll object selected by given id"
        },
        {
          "info": {
            "name": "SendWinResult",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api-dev.inthegame.io/adminApi/poll/result/:pollId",
            "params": [
              {
                "name": "pollId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "form-urlencoded",
              "data": [
                {
                  "name": "answer",
                  "value": ""
                },
                {
                  "name": "image",
                  "value": ""
                },
                {
                  "name": "reward",
                  "value": ""
                },
                {
                  "name": "isRewardSent",
                  "value": ""
                },
                {
                  "name": "answerSending",
                  "value": ""
                }
              ]
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Send request for sending win result of given poll answer to whole users in client"
        },
        {
          "info": {
            "name": "Update",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api-dev.inthegame.io/adminApi/poll/update/:pollId",
            "params": [
              {
                "name": "pollId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "form-urlencoded",
              "data": [
                {
                  "name": "name",
                  "value": ""
                },
                {
                  "name": "type",
                  "value": ""
                },
                {
                  "name": "items",
                  "value": ""
                },
                {
                  "name": "time_limit",
                  "value": ""
                },
                {
                  "name": "user_id",
                  "value": ""
                },
                {
                  "name": "questionType",
                  "value": ""
                },
                {
                  "name": "viewType",
                  "value": ""
                },
                {
                  "name": "question",
                  "value": ""
                },
                {
                  "name": "image",
                  "value": ""
                },
                {
                  "name": "hideButtons",
                  "value": ""
                },
                {
                  "name": "answers",
                  "value": ""
                },
                {
                  "name": "expoints",
                  "value": ""
                },
                {
                  "name": "_id",
                  "value": ""
                }
              ]
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Send poll object to update in db with given id and return updated poll"
        },
        {
          "info": {
            "name": "Answer",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api-dev.inthegame.io/userApi/poll/answer_new/:questionId",
            "params": [
              {
                "name": "questionId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "form-urlencoded",
              "data": [
                {
                  "name": "request",
                  "value": ""
                }
              ]
            }
          },
          "docs": "Send user answer data and save it in db"
        }
      ]
    }
  ],
  "bundled": true
}