URI: https://api.onlinephotosubmission.com/log
HTTP Method: POST
Required Headers: X-Auth-Token for a service account (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. /log?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