Page History
...
Dette eksempel viser tilfældet hvor uuid'et har et matchende cpr-nummer.
Request:
| Code Block |
|---|
curl -i localhost:8080/uuid2cpr-proxy-api/service/lookup/UI:DK-E:G:2634ccc3-225a-44ee-94bc-565904f46ead |
Response:
| Code Block |
|---|
HTTP/1.1 200 OK |
...
Connection: keep-alive |
...
Content-Type: application/json |
...
Content-Length: 22 |
...
Date: Wed, 09 Mar 2022 15:28:08 GMT |
...
{"value":"2501879875"} |
Cpr-nummer findes ikke
Dette eksempel viser tilfældet hvor uuid'et ikke har et matchende cpr-nummer.
Request:
| Code Block |
|---|
curl -i localhost:8080/uuid2cpr-proxy-api/service/lookup/UI:DK-E:G: |
...
2634ccc3- |
...
225a- |
...
44ee- |
...
94bc-000000000000 |
Response:
| Code Block |
|---|
HTTP/1.1 404 Not Found |
...
Connection: keep-alive |
...
Content-Type: application/json |
...
Content-Length: |
...
74 Date: Wed, |
...
08 Mar |
...
2023 |
...
09: |
...
40: |
...
41 GMT |
...
Uuid UI:DK-E:G: |
...
2634ccc3- |
...
225a- |
...
44ee- |
...
94bc-000000000000 |
...
has |
...
no |
...
associated cpr |
...
. |
Service lookup-pid-cpr
Cpr-nummer findes
...