POST api/Logger

Logs arbitrary text

Request Information

URI Parameters

None.

Body Parameters

LoggerRequest
NameDescriptionTypeAdditional information
Datalog

Text to log

string

Required

Request Formats

application/json, text/json

Sample:
{
  "Datalog": "sample string 1"
}

application/xml, text/xml

Sample:
<LoggerRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Logging">
  <Datalog>sample string 1</Datalog>
</LoggerRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'LoggerRequest'.

Response Information

Resource Description

LoggerResult

ApiSuccessOfLoggerResult
NameDescriptionTypeAdditional information
Success

boolean
Data

LoggerResult

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Data": {
    "Logged": true
  }
}

application/xml, text/xml

Sample:
<ApiSuccessOfLoggerResult5Wrqv_SJz xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Api">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/SFMOMA.Data.Entities.Logging">
    <d2p1:Logged>true</d2p1:Logged>
  </Data>
</ApiSuccessOfLoggerResult5Wrqv_SJz>