aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/bruno/configuration/routing/02-post-routing.bru
blob: d789e9a6ab64053493753c42e4437ce2f4ad0a4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
meta {
  name: 02-post-routing
  type: http
  seq: 2
}

post {
  url: {{WARDEN_CFG_HOST}}/api/{{WARDEN_CFG_VERSION}}/routing
  body: json
  auth: inherit
}

body:json {
  {
    "active": true,
    "name": "Public Network Map",
    "version": "1.0.0",
    "messages": [
      {
        "id": "004",
        "version": "1.0.0",
        "tx_tp": "pacs.002.001.12",
        "typologies": [
          {
            "id": "999",
            "version": "1.0.0",
            "rules": [
              {
                "id": "901",
                "version": "1.0.0"
              }
            ]
          }
        ]
      }
    ]
  }
}

assert {
  res.status: eq 201
}

settings {
  encodeUrl: true
}