Creates a new api log object

Request Information

URI Parameters :

None.

Body Parameters :

api_log
NameDescriptionTypeAdditional information
id

Primary key

globally unique identifier
date_create_utc

Creation date of the log, in UTC format

date
api_version

Api version

string

Max length: 50

api_type

Api type, Automatically filled by "ODSAPI"

string

Max length: 50

http_method

Request Http Method (like GET,POST,PUT,DELETE)

string

Max length: 50

url

Full Request Url (including the ODATA Query String)

string

Max length: 4000

user_username

Username of the request (based on the request.Headers Authorization tag)

string

Max length: 255

request_headers

Headers of the request (but without the key "Authorization")

string

Max length: 4000

request_body

Body of the request as it has been sent by the Client

string
request_controller

Requested Controller, like Company, Article, ...

string

Max length: 255

request_ip

IP Address of the client that send the request

string

Max length: 255

response_code

HTTP Response Code returned by the API

integer
response_headers

Response Headers returned by the API

string

Max length: 4000

response_body

Response Body returned by the API

string
time_needed

Time Needed in milliseconds

integer
is_error

Is Error

boolean

Request Formats :

application/json, text/json

Sample:
{
  "id": "1d158f58-a8e6-4180-b0e0-5de23858a60f",
  "date_create_utc": "2024-03-26T17:41:50.5781951+00:00",
  "api_version": "sample string 3",
  "api_type": "sample string 4",
  "http_method": "sample string 5",
  "url": "sample string 6",
  "user_username": "sample string 7",
  "request_headers": "sample string 8",
  "request_body": "sample string 9",
  "request_controller": "sample string 10",
  "request_ip": "sample string 11",
  "response_code": 12,
  "response_headers": "sample string 13",
  "response_body": "sample string 14",
  "time_needed": 15
}

Response Information

Resource Description :

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.