POST api/Error/ExceptionLogging

Request Information

URI Parameters

None.

Body Parameters

CGErrorModel
NameDescriptionTypeAdditional information
Exception

Exception

None.

ClubId

integer

None.

ComputerName

string

None.

Executable

string

None.

RawUrl

string

None.

HttpMethod

string

None.

UrlReferrer

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Exception": {
    "ClassName": "System.Exception",
    "Message": null,
    "Data": null,
    "InnerException": null,
    "HelpURL": "sample string 1",
    "StackTraceString": null,
    "RemoteStackTraceString": null,
    "RemoteStackIndex": 0,
    "ExceptionMethod": null,
    "HResult": 3,
    "Source": "sample string 2",
    "WatsonBuckets": null
  },
  "ClubId": 1,
  "ComputerName": "sample string 1",
  "Executable": "sample string 2",
  "RawUrl": "sample string 3",
  "HttpMethod": "sample string 4",
  "UrlReferrer": "sample string 5"
}

application/xml, text/xml

Sample:
<CGErrorModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DotGolf.Data">
  <ClubId>1</ClubId>
  <ComputerName>sample string 1</ComputerName>
  <Exception xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <ClassName xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">System.Exception</ClassName>
    <Message i:nil="true" xmlns="" />
    <Data i:nil="true" xmlns="" />
    <InnerException i:nil="true" xmlns="" />
    <HelpURL xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 1</HelpURL>
    <StackTraceString i:nil="true" xmlns="" />
    <RemoteStackTraceString i:nil="true" xmlns="" />
    <RemoteStackIndex xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">0</RemoteStackIndex>
    <ExceptionMethod i:nil="true" xmlns="" />
    <HResult xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">3</HResult>
    <Source xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 2</Source>
    <WatsonBuckets i:nil="true" xmlns="" />
  </Exception>
  <Executable>sample string 2</Executable>
  <HttpMethod>sample string 4</HttpMethod>
  <RawUrl>sample string 3</RawUrl>
  <UrlReferrer>sample string 5</UrlReferrer>
</CGErrorModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ExceptionLoggingResponse
NameDescriptionTypeAdditional information
ResponseObject

integer

None.

Code

ResponseCode

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ResponseObject": 1,
  "Code": 0,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<ExceptionLoggingResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DotGolf.CasualGolf.WebApi.Contracts">
  <Code>None</Code>
  <Message>sample string 2</Message>
  <ResponseObject>1</ResponseObject>
</ExceptionLoggingResponse>