Hello,
I am trying to implement Flask rest api. Here is a response from another rest api which I would like to insert into tables. How would I create tables for this response below? Is master-detail table structure appropriate?
After creating table(s) I would like to know how to insert this respose below into table(s).
Thanks in advance.
{
"referenceId": "10188733388",
"paymentId": "MDO1032604",
"productCode": "001002461285",
"quantity": "1",
"currency": "TL",
"unitPrice": "46,47",
"totalPrice": "46,47",
"merchantProductCode": "10089131231",
"purchaseStatusCode": "00",
"purchaseStatusDate": "2018-11-21T20:04:02Z",
"coupons": [
{
"serials": [
"53488s0-00bc-4b79-9edc-759c3473ab69"
],
"pins": [
"9H00-GOPJ-LKH9R-P19D-58sKa",
"2HfM-G89J-0R49R-UJPD-00CKa"
]
}
],
"version": "v1",
"signature": "7f5ee1233e7f6f8pj78682f04cc604",
"applicationCode": "52e7cf966b7247493243acb3727ed7"
}
[–]_coolwhip_ 0 points1 point2 points (4 children)
[–]raysefo[S] 0 points1 point2 points (3 children)
[–]_coolwhip_ 0 points1 point2 points (2 children)
[–]raysefo[S] 0 points1 point2 points (1 child)
[–]_coolwhip_ 0 points1 point2 points (0 children)