Issue
I have the variable colors and a value in the raw data in JSON format. I want to get the value from postman to python. How can I get the body raw data in python? That postman body raw data image -> colors raw data image
Solution
I use the odoo tool developed by python. That odoo get raw data method little change the method. Maybe this way works in python
@http.route('/cams/biometrics 3.0/',method=["POST"], csrf=False, auth='public', type = "http")
def generate_attendance(self, **params):
data = json.loads(request.httprequest.data)
json_object = json.dumps(data)
Answered By - 1008_III_Gopalakrishnan.S
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.