Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
titleExample JSON API Usage
{
	"apiversion.id": "a34a268f-34b1-465c-9327-262c2c69c4d3",
	"api.id": "3fe3ac57-c2da-4ce2-a2bc-25202f62c88b",
	"prettyname": "Hello World (Demonstration APIs) 1",
	"sessionid": "CEPID_AA8BMDowOjA6MDowOjA6MDoxACwCAAABZgeZf-AAAAANS03BgL8QbYIh6e-qCwKtlM9CTkIWwb1OoiDBzYW04fEAAQMB~AAIBMDIADwMwOjA6MDowOjA6MDowOjEAAgSQPQAMBTdGODAAAAAAAAABhQ",
	"apipartner.id": "25df072a-f500-45a9-83eb-5f99c152b5fb",
	"apipartner.name": "AssecoCeptor DenmarkApS",
	"apipartner.application.id": "45bc3a53-7308-47e7-887a-21cf75cfe404",
	"apipartner.application.name": "Test App 1",
	"remote.ip": "0:0:0:0:0:0:0:1",
	"remote.port": 36925,
	"request.method": "GET",
	"request.path": "/hello/v1/hello",
	"request.host": "localhost:8443",
	// For requests with a body, request.body or request.body.base64 is available depending on payload being textual or binary
	"request.query": "",
	"request.headers": {
		"accept": "application/json",
		"accept-language": "da-DK,da;q=0.9,en-US;q=0.8,en;q=0.7",
		"accept-encoding": "gzip, deflate, br",
		"origin": "https://localhost:4243",
		"user-agent": "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.92 Safari/537.36",
		"connection": "keep-alive",
		"authorization": "Basic dGVzdDpzZWNyZXQ=",
		"referer": "https://localhost:4243/",
		"host": "localhost:8443"
	},
	"response.status": 200,
	"response.bytes": 37,
	"response.time": 52,
	"response.endtime.msecs": 1537725792274,
	"response.headers": {
		"access-control-allow-headers": "origin, accept, content-type, authorization, content-length, ceptor-apikey",
		"x-xss-protection": "1; mode=block",
		"date": "Sun, 23 Sep 2018 18:03:12 GMT",
		"connection": "keep-alive",
		"x-ratelimit-Remaining": "2",
		"strict-transport-security": "max-age=31536000; includeSubDomains",
		"x-ratelimit-limit": "5",
		"access-control-allow-methods": "GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS, TRACE",
		"x-ratelimit-reset": "1537725840",
		"x-frame-options": "sameorigin",
		"via": "1.1 gateway1 (Ceptor/6.0.3)",
		"access-control-allow-origin": "https://localhost:4243",
		"x-content-type-options": "nosniff",
		"content-type": "application/json",
		"content-length": "37",
		"x-ratelimit-timeunit": "minute",
		"access-control-max-age": "120"
	},
	"response.body": "{\"text\":\"How nice of you to call me\"}"
	// For binary responses, response.body.base64 is available instead
}

...