Skip to content

Status API

Philip Helger edited this page Jan 24, 2019 · 6 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": "2019-01-01T18:55:22.933Z",
    "version.smp": "5.1.0-SNAPSHOT",
    "build.timestamp": "2019-01-01T16: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.publicurl": "http://smp.example.org",
    "smp.forceroot": 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.needed": 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.