Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

URI: https://api.onlinephotosubmission.com/api/logs

HTTP Method: POST

Required Headers: X-Auth-Token  (see: Authentication)

Purpose: The purpose of this endpoint is to enable clients to post log entries into the server log

Consult support@onlinephotosubmission.com before using this endpoint.

This is designed to be used by clients sparingly, for example, one log statement per workstation or service account per hour.

Logging via Optional URL Parameters:

You may include any URL parameters you wish to have logged, e.g. /api/logs?client=ABC&version=1.2.3  
The result of passing these parameters would be that the following would be output in the log file: 
{username} from {org name} logged: [client:ABC, version:1.2.3]

Logging via Optional JSON Body

Example HTTP Request Body - optional
{
	"client": "XYZ",
	"version": "1.2.3.4",
	"instance": "workstation 3",
	"ip-address": "123.45.67.89"
}

The result of posting this JSON body would be that the following would be output in the log file: 
{username} from {org name} logged: [ip-address:123.45.67.89, client:CPC, instance:workstation 3, version:1.2.3.4]

Response

204 NO CONTENT


  • No labels