{"id":16416092,"url":"https://github.com/Helger-IT/smp-query-webapp","last_synced_at":"2025-10-26T19:32:03.950Z","repository":{"id":161155367,"uuid":"635806507","full_name":"phax/smp-query-webapp","owner":"phax","description":"Small web application that allows an arbitrary SMP query and returns JSON results","archived":false,"fork":false,"pushed_at":"2025-01-21T23:10:23.000Z","size":267,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-31T23:05:47.907Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-03T13:48:06.000Z","updated_at":"2025-01-21T23:10:26.000Z","dependencies_parsed_at":"2023-07-23T20:15:33.357Z","dependency_job_id":"4a232cce-6871-4dcd-8083-4f4f555ff880","html_url":"https://github.com/phax/smp-query-webapp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phax%2Fsmp-query-webapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phax%2Fsmp-query-webapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phax%2Fsmp-query-webapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phax%2Fsmp-query-webapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phax","download_url":"https://codeload.github.com/phax/smp-query-webapp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238394323,"owners_count":19464583,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T07:08:23.360Z","updated_at":"2025-10-26T19:32:03.945Z","avatar_url":"https://github.com/phax.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# smp-query-webapp\n\nSmall web application that allows an arbitrary SMP query and returns JSON results\nThis is the API subset parts from https://peppol.helger.com for standalone usage.\n\nThis project is part of my Peppol solution stack. See https://github.com/phax/peppol for other components and libraries in that area.\n\nA prebuild Docker image is available on Docker Hub as `phelger/smpqwa:latest` (for `linux/amd64`) and `phelger/smpqwa-arm64:latest` (for `linux/arm64`).\n\n## News and Noteworthy\n\n2025-10-20\n* Replace API `/api/is-in-peppol/{smlid}/{participantID}` with `/api/ppidexistence/{smlid}/{participantID}` to be in sync with peppol.helger.com\n* All the API implementations are now shared between this application and Peppol Practical \n\n2025-10-01\n* Added new API `/api/is-in-peppol/{smlid}/{participantID}`\n\n2025-09-17\n* Updated the truststore for the latest Directory TLS certs\n* Fixed a potential problem with DNS lookup results ending with '/'\n\n2025-07-21\n* Extended the truststore to contain Peppol PKI G3 CAs as well\n\n## Supported query APIs\n\n* SMP query all document types of a participant\n* SMP query all endpoints of a participant for a certain document type\n* SMP query the Business Card of a participant\n* Check if a participant is registered in the Peppol Network\n\nSee https://peppol.helger.com/public/locale-en_US/menuitem-tools-rest-api for the full API description.\n\nSupported SML servers are `digittest` (Peppol SMK), `digitprod` (Peppol SML) and `autodetect` (automatic detection).\n\n## Configuration parameters\n\nDefault configuration is provided in file `src/main/resources/application.properties`.\nEach property can be overridden via environment variables and Java system properties - see https://github.com/phax/ph-commons/wiki/ph-config for details.\n\nThe default configuration should pretty much work out of the box.\nSupported properties are:\n\n* **`global.debug`**: global debug settings. Should always be `false`\n* **`global.production`**: global production mode. Should always be `true`. This has nothing to do with the Peppol stage.\n* **`webapp.datapath`**: where to store data. Does not need to be a persistent volume.\n* **`webapp.checkfileaccess`**: check file access on startup. Should always be `false`.\n* **`rest.log.exceptions`**: this property enables or disables the detailed logging of exceptions that occur while processing REST calls. By default the logging is disabled.\n* **`rest.exceptions.payload`**: this property enables or disables the provision of HTTP response contents in case of errors from the REST API. By default this is disabled. \n\nSMP Client configuration properties as described on https://github.com/phax/peppol-commons/tree/master?tab=readme-ov-file#configuration\n\n## Building from source\n\n```\nmvn clean install\n```\n\nOutput: `target/*.war`\n\nAfterwards build Docker image:\n\n```\ndocker build --pull -t phelger/smpqwa .\n```\n\n## Running\n\nRunning the Docker image (deployed to Docker Hub):\n\n```\ndocker run -d --name smpqwa -p 8080:8080 phelger/smpqwa\n```\n\n## Internal notes to myself\n\nDeployment:\n\n```\ndocker login -u phelger\ndocker push phelger/smpqwa\n```\n\n---\n\nMy personal [Coding Styleguide](https://github.com/phax/meta/blob/master/CodingStyleguide.md) |\nIt is appreciated if you star the GitHub project if you like it.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHelger-IT%2Fsmp-query-webapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FHelger-IT%2Fsmp-query-webapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHelger-IT%2Fsmp-query-webapp/lists"}