json - Make dynamic name text field in Postman -


i'm using postman make rest api calls server. want make name field dynamic can run request unique name every time.

{   "location":   {     "name": "testuser2", // should unique, eg. testuser3, testuser4, etc     "branding_domain_id": "52f9f8e2-72b7-0029-2dfa-84729e59dfee",     "parent_id": "52f9f8e2-731f-b2e1-2dfa-e901218d03d9"   }  } 

in postman want use dynamic variables.

the json post this:

{   "location":   {     "name": "{{$guid}}",      "branding_domain_id": "52f9f8e2-72b7-0029-2dfa-84729e59dfee",     "parent_id": "52f9f8e2-731f-b2e1-2dfa-e901218d03d9"   }  } 

note give guid (you have option use ints or timestamps) , i'm not aware of way inject strings (say, test file or data generation utility).


Comments

Popular posts from this blog

Python Kivy ListView: How to delete selected ListItemButton? -

asp.net mvc 4 - A specified Include path is not valid. The EntityType '' does not declare a navigation property with the name '' -