Status API

Philip Helger edited this page Oct 20, 2018 · 3 revisions

The status API was introduced in v5.0.6 upon request #73. It adds the relative URL /smp-status/ to the SMP server to query certain configuration settings. It MUST be accessed with HTTP GET and the trailing slash is important. The response is a UTF-8 encoded JSON document with MIME type application/json.

The status API can be disabled via the Configuration parameter smp.status.enabled. If it is disabled, still a JSON is returned but with the constant output { "status.enabled": false }.

Example output

Here's example output from a development configuration:

{
    "status.datetime": "2018-06-01T18:55:22.933Z",
    "version.smp": "5.0.6-SNAPSHOT",
    "build.timestamp": "2018-10-20T16:48:31+0000",
    "version.java": "1.8.0_152",
    "global.debug": true,
    "global.production": false,
    "smp.backend": "xml",
    "smp.mode": "test",
    "smp.resttype": "peppol",
    "smp.identifiertype": "simple",
    "smp.id": "TEST-SMP-ID1",
    "smp.writable-rest-api.enabled": true,
    "smp.sml.enabled": false,
    "smp.sml.needed": true,
    "smp.sml.url": "https://acc.edelivery.tech.ec.europa.eu/edelivery-sml/manageparticipantidentifier",
    "smp.pd.enabled": true,
    "smp.pd.auto-update": true,
    "smp.pd.hostname": "https://directory.peppol.eu",
    "smp.certificate.configuration-valid": true,
    "smp.certificate.issuer": "CN=PEPPOL SERVICE METADATA PUBLISHER TEST CA,OU=FOR TEST PURPOSES ONLY,O=NATIONAL IT AND TELECOM AGENCY,C=DK",
    "smp.certificate.subject": "CN=SMP_2000000309,O=Bundesrechenzentrum GmbH,C=AT",
    "smp.certificate.expired": false
}
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.