Skip to content

Commit

Permalink
fix: move prerequisite script to collection level
Browse files Browse the repository at this point in the history
  • Loading branch information
nikschul committed Sep 27, 2024
1 parent b8629d7 commit efbc4e0
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions deployment/postman/MVD.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -639,17 +639,6 @@
{
"name": "Get Participant By ID",
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
"if(pm.request.method == \"POST\" || pm.request.method == \"PUT\"){",
" pm.request.headers.add(\"Content-Type: application/json\");",
"}"
]
}
},
{
"listen": "test",
"script": {
Expand Down Expand Up @@ -1924,6 +1913,17 @@
]
},
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
"if(pm.request.method == \"POST\" || pm.request.method == \"PUT\"){",
" pm.request.headers.add(\"Content-Type: application/json\");",
"}"
]
}
},
{
"listen": "prerequest",
"script": {
Expand Down

0 comments on commit efbc4e0

Please sign in to comment.