Page 1 sur 1

API Rest Update Execution status

Publié : lun. janv. 22, 2018 4:37 pm
par opminos
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

Publié : mar. janv. 23, 2018 4:47 pm
par opminos
Fixed:

Issue with patch method

API Rest Update Execution status

Publié : jeu. janv. 25, 2018 9:58 am
par 123
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]

API Rest Update Execution status

Publié : mar. févr. 06, 2018 6:13 am
par 123
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]

API Rest Update Execution status

Publié : mar. févr. 06, 2018 9:46 am
par opminos
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)