Skip to content
Snippets Groups Projects
Commit c1f88dd7 authored by Martin Vogel's avatar Martin Vogel
Browse files

refactor: add status command to readme (planning#1796)

parent 9b78353f
No related branches found
No related tags found
1 merge request!77#1796 CLI Erweiterungen
...@@ -69,6 +69,26 @@ destinationId, serviceName, leikaKey, data, dataType, attachments ...@@ -69,6 +69,26 @@ destinationId, serviceName, leikaKey, data, dataType, attachments
```` ````
> Windows paths: escape windows paths with `\\`, e.g. `C:\\path\\to\\file\\file.txt` ! > Windows paths: escape windows paths with `\\`, e.g. `C:\\path\\to\\file\\file.txt` !
#### GET Submission Status Submission
The status command retrieves the current status of a submission by `submissionId`, `destinationId` and `caseId`.
````sh
java -jar fit-connect-cli.jar status --submissionId=308a6e4c-db16-4229-bc77-d3d6d756c8e2 --destinationId=1b7d1a24-a6c8-4050-bb71-ae3749ec432f --caseId=86308f93-64c4-4b1d-a346-d1bbc53edced
````
```text
12:42:58.872 [main] INFO d.f.fitconnect.cli.CommandExecutor Submission status for submission 308a6e4c-db16-4229-bc77-d3d6d756c8e2:
{
"state" : "REJECTED",
"issuedAt" : 1711624887000,
"problems" : [ {
"type":"https://schema.fitko.de/fit-connect/events/problems/schema-violation",
"title":"Schema violation",
"detail":"Submission metadata does not comply to schema.",
"instance":"metadata"
} ]
}
```
#### Generate JWK Test Keys #### Generate JWK Test Keys
The CLI can generate public and private keys for testing purposes for both encryption and signing. The CLI can generate public and private keys for testing purposes for both encryption and signing.
If no ``outDir`` ist specified, the cli will create a temporary folder that is logged in the console output. If no ``outDir`` ist specified, the cli will create a temporary folder that is logged in the console output.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment