GET Api/Contest/Play/{userId}/{orderId}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
userId | globally unique identifier |
Required |
|
orderId | string |
Required |
Body Parameters
None.
Response Information
Resource Description
ContestResultName | Description | Type | Additional information |
---|---|---|---|
Redirect | string |
None. |
|
JsonResponse | JsonResponse |
None. |
|
Error | ContestError |
None. |
Response Formats
application/json, text/json
Sample:
{ "redirect": "sample string 1", "jsonResponse": { "esito": 1, "result": "sample string 2", "token": "sample string 3", "errorCode": "sample string 4", "errorField": "sample string 5" }, "error": { "hasError": true, "errorDescription": "sample string 2" } }
text/plain
Sample:
{"redirect":"sample string 1","jsonResponse":{"esito":1,"result":"sample string 2","token":"sample string 3","errorCode":"sample string 4","errorField":"sample string 5"},"error":{"hasError":true,"errorDescription":"sample string 2"}}
application/xml, text/xml
Sample:
<ContestResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Customer.BL.Models.Contest"> <Error> <ErrorDescription>sample string 2</ErrorDescription> <HasError>true</HasError> </Error> <JsonResponse> <ErrorCode>sample string 4</ErrorCode> <ErrorField>sample string 5</ErrorField> <Esito>1</Esito> <Result>sample string 2</Result> <Token>sample string 3</Token> </JsonResponse> <Redirect>sample string 1</Redirect> </ContestResult>
application/octet-stream
Sample:
{"Redirect":"sample string 1","JsonResponse":{"Esito":1,"Result":"sample string 2","Token":"sample string 3","ErrorCode":"sample string 4","ErrorField":"sample string 5"},"Error":{"HasError":true,"ErrorDescription":"sample string 2"}}
text/javascript, application/javascript, application/json-p
Sample:
({"redirect":"sample string 1","jsonResponse":{"esito":1,"result":"sample string 2","token":"sample string 3","errorCode":"sample string 4","errorField":"sample string 5"},"error":{"hasError":true,"errorDescription":"sample string 2"}});