API Rest Update Execution status

opminos
Messages : 4
Inscription : jeu. janv. 04, 2018 4:06 pm

API Rest Update Execution status

Message 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
opminos
Messages : 4
Inscription : jeu. janv. 04, 2018 4:06 pm

API Rest Update Execution status

Message par opminos »

Fixed:

Issue with patch method
123
Messages : 6
Inscription : jeu. janv. 25, 2018 7:54 am

API Rest Update Execution status

Message 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]
123
Messages : 6
Inscription : jeu. janv. 25, 2018 7:54 am

API Rest Update Execution status

Message 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]
opminos
Messages : 4
Inscription : jeu. janv. 04, 2018 4:06 pm

API Rest Update Execution status

Message 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)
Répondre

Revenir à « Présentez-vous / Introduce yourself »