VSCode REST Client Extension - Loop Request

Viewed 95

I have the requirement to send nearly the same POST request to a backend system several times - say 50 times.

Is there a way to put the below request into a loop?

###
#POST Gamer
POST {{hostURL}}/api/Gamer
Content-Type: application/json

{
  "username": "User-{{$randomInt 3 1000}}",
  "characters": [
    {
      "name": "Superman",
      "rpgClass": "Attacker",
      "weapon": {
        "name": "Flying",
        "damage": 100
      },
      "characterSkill": [
        {
          "skillId": 1
        },
        {
          "skillId": 2
        }
      ]
    }
  ]
}
0 Answers
Related