# Parameterize base url, api path and other details

**URL:** <https://community.gatling.io/t/parameterize-base-url-api-path-and-other-details/6441>\
**Category:** Gatling (Open-Source)\
**Created:** [February 8, 2022, 12:37pm UTC](https://community.gatling.io/t/parameterize-base-url-api-path-and-other-details/6441 "2022-02-08T12:37:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahadev\_swamy](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@mahadev\_swamy](https://community.gatling.io/u/mahadev_swamy)\
**Post date:** [February 8, 2022, 12:37pm UTC](https://community.gatling.io/t/parameterize-base-url-api-path-and-other-details/6441/1 "2022-02-08T12:37:49Z")

</div>

Hi Team,

From the JSON payload, i want to get base URL, api path and other details to simulation code.

JSON file.

along with JSON payload data, i want to take basepath also from json file to simulation class. not able to achieve this. Please help.

Thanks.

```auto
{
  "test_name": "Minimal Redis performance test",
  "method": "POST",
  "basePath": "[http://reqres.in](http://reqres.in)",
  "path": "api/users",
  "data":
      {
        "name": "morphus",
        "job": "leader"
      }
}

```

```auto

```

```auto
Simulation file

```

---

<div class="post-metadata">

**Author:** ![shoaib42](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/shoaib42/32/844_2.png) [@shoaib42](https://community.gatling.io/u/shoaib42)\
**Post date:** [February 20, 2022, 12:23am UTC](https://community.gatling.io/t/parameterize-base-url-api-path-and-other-details/6441/2 "2022-02-20T00:23:56Z")

</div>

Can you elaborate here. Do you have some samples that you can share. Also can you share what you’d like to see
