Hello,
trying to update an execution status, get following exception:
[code]{"exception":"com.fasterxml.jackson.core.JsonParseException","message":"Unrecognized token '_type': was expecting ('true', '"False"' or '"None"')\n at [Source: java.io.PushbackInputStream@6422a06d; line: 1, column: 7]"}[/code]
the header is :
[code]{'Connection': 'keep-alive', 'Content-Type': 'application/json', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'application/json', 'User-Agent': 'python-requests/2.13.0'}[/code]
the URL is: .../squash/api/rest/latest/executions/x
API Rest Update Execution status
API Rest Update Execution status
Fixed:
Issue with patch method
Issue with patch method
API Rest Update Execution status
hii. I don't now this topic please tell me any one this topic. thank you.
[url=http://www.certvalue.com/iso-9001-certification-Oman/]ISO 9001 Certification in Oman[/url]
[url=http://www.certvalue.com/iso-9001-certification-Oman/]ISO 9001 Certification in Oman[/url]
API Rest Update Execution status
hi there.. really nice information.. i was looking for this since a long time…really appreciate the amount of work which you have put into to it.. thanks for sharing
[url=http://www.certvalue.com/ohsas-18001-ce ... -in-qatar/]OHSAS 18001 Certification in Qatar[/url]
[url=http://www.certvalue.com/ohsas-18001-ce ... -in-qatar/]OHSAS 18001 Certification in Qatar[/url]
API Rest Update Execution status
you're welcome :)
FYI here is how my python code looks like:
conn = requests.Session()
conn.trust_env = False
def patch(end_point, json=None, data=None):
"""To generate the POST call with an endpoint url and a payload and execute it"""
uri = "%s/%s" % (api_url, end_point)
uri = urllib.quote(uri, safe="%/:=&?~#+!$,;'@()*[]")
conn.headers["Content-Type"] = "application/json"
conn.headers["Accept"] = "application/json"
res = conn.patch(uri, data=data, json=json, verify=False)
FYI here is how my python code looks like:
conn = requests.Session()
conn.trust_env = False
def patch(end_point, json=None, data=None):
"""To generate the POST call with an endpoint url and a payload and execute it"""
uri = "%s/%s" % (api_url, end_point)
uri = urllib.quote(uri, safe="%/:=&?~#+!$,;'@()*[]")
conn.headers["Content-Type"] = "application/json"
conn.headers["Accept"] = "application/json"
res = conn.patch(uri, data=data, json=json, verify=False)