Skip to content

Commit

Permalink
Refactor parameters in controller.http
Browse files Browse the repository at this point in the history
Updated the existing parameters in the rest/controller.http. Improved code readability by abstracting hardcoded values to new "folderPath" and "ProjectName" parameters and replacing them in the "docker.e" and "docker.v" fields.
  • Loading branch information
PiotrFerenc committed Jun 1, 2024
1 parent 82295a1 commit cd37987
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rest/controller.http
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,11 @@ POST localhost:5000/execute

{
"Parameters": {
"folderPath":"/home/piotr/Documents/mash2/docker/data",
"ProjectName":"MyCustomProject2"
"docker.image" : "dotnet-classlib",
"docker.e" : "PROJECT_NAME=MyCustomProject2",
"docker.v" : "/home/piotr/Documents/mash2/docker/data:/data",
"docker.e" : "PROJECT_NAME={{ProjectName}}",
"docker.v" : "{{folderPath}}:/data",
"console.text":"container id: {{docker.id}}",
"dr.id" : "{{docker.id}}"
},
Expand Down

0 comments on commit cd37987

Please sign in to comment.