-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBodyEntityExamplesForPostman.txt
More file actions
25 lines (18 loc) · 1.02 KB
/
BodyEntityExamplesForPostman.txt
File metadata and controls
25 lines (18 loc) · 1.02 KB
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
These are some example of the body entity in Postman commands:
For a POST request http://localhost:8081/gilhari/v1/A/
{"entity": {"aId": 1, "aString": "aString_1", "aBoolean": true, "aFloat": 1.1, "aDate": 11111111111,
"aB": {"bId": 100, "aId": 1, "bInt": 100, "bString": "bString_1"},
"aCs": [{"cId": 1000, "aId": 1, "cInt": 100, "cString": "cString_1"},
{"cId": 2000, "aId": 1, "cInt": 200, "cString": "cString_2"}
]
}
}
{"entity": {"aId": 2, "aString": "aString_2", "aBoolean": false, "aFloat": 2.2, "aDate": 22222222222,
"aB": {"bId": 200, "aId": 2, "bInt": 200, "bString": "bString_2"}
}
}
---------------------------------------------------------------------
For a GET/access request http://localhost:8081/gilhari/v1/A/access?attribute=aB
the following could be the entity in the body. No need to specify the non-key attributes:
{"entity": {"aId": 1}}
-------------------------------------------------------------------------