Skip to content

Commit

Permalink
Added example req-response
Browse files Browse the repository at this point in the history
  • Loading branch information
tntra-dhananjay committed Jan 2, 2024
1 parent 247af20 commit 7388149
Show file tree
Hide file tree
Showing 53 changed files with 3,165 additions and 0 deletions.
64 changes: 64 additions & 0 deletions release/api-req-res-sample/assets/css/dci-api-sample.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
::-webkit-scrollbar {
width: 8px;
}

::-webkit-scrollbar-button {
/* display: none; */
}
::-webkit-scrollbar-corner {
/* display: none; */
}

::-webkit-scrollbar-thumb {
background: rgba(51,51,51,.3);
border-radius: 8px;
}
::-webkit-scrollbar-track {
background-color: #e5e5e5;
border-radius: 8px;
}

::-webkit-scrollbar:horizontal{
height: 8px;
}


p.options label {
margin-right: 10px;
}
p.options input[type=checkbox] {
vertical-align: middle;
}
textarea#json-input {
width: 100%;
height: 200px;
}

pre{
background-color: rgb(17, 23, 26);
border: 1px solid #aaa;
color: white;
}
.json-string{
color: rgb(160, 251, 170);
}
.json-boolean{
color: red;
}
.json-document {
height: 500px;
}
.arrow::before {
content: "\25BA";
float: left;
transform: rotate(90deg);
transition: transform 0.3s;
}

.collapsed .arrow::before {
transform: rotate(0deg);
}
.mainusecasediv{
margin-top: 10px;
margin-bottom: 20px;
}
38 changes: 38 additions & 0 deletions release/api-req-res-sample/assets/example_files/crvsusecase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[
{
"processflow_id" : "processflow1",
"processflow_name": "Process Flow 1 : Enrollment in Old Age Pension Scheme"
},
{
"processflow_id" : "processflow2",
"processflow_name": "Process Flow 2 : Ceasing Payments upon Death Notification"
},
{
"processflow_id" : "processflow3",
"processflow_name": "Process Flow 3 : Enrollment in Widow Allowance Scheme - Retrieve Id Details"
},
{
"processflow_id" : "processflow3a",
"processflow_name": "Process Flow 3 : Enrollment in Widow Allowance Scheme - Retrieve Marital Status"
},
{
"processflow_id" : "processflow3b",
"processflow_name": "Process Flow 3 : Enrollment in Widow Allowance Scheme - Retrieve Marriage Details"
},
{
"processflow_id" : "processflow3c",
"processflow_name": "Process Flow 3 : Enrollment in Widow Allowance Scheme - Retrieve Divorce Details"
},
{
"processflow_id" : "processflow3d",
"processflow_name": "Process Flow 3 : Enrollment in Widow Allowance Scheme - Retrieve Deceased Details"
},
{
"processflow_id" : "processflow4",
"processflow_name": "Process Flow 4 : Enrollment in Child Allowance Scheme"
},
{
"processflow_id" : "processflow5",
"processflow_name": "Process Flow 5 : Proactive Enrollment in Child Allowance Scheme"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"signature": "Signature: namespace=\"dci\", kidId=\"{sender_id}|{unique_key_id}|{algorithm}\", algorithm=\"ed25519\", created=\"1606970629\", expires=\"1607030629\", headers=\"(created) (expires) digest\", signature=\"Base64(signing content)",
"headers": {
"version": "1.0.0",
"message_id": "0c96614c-7255-4774-b109-cd53ee851769",
"message_ts": "2023-07-19T12:15:04.555Z",
"sender_id": "sp-system",
"receiver_id": "crvs",
"action": "search",
"total_count": "1",
"encrypted": false,
"async": false,
"callback_endpoint": ""
},
"message": {
"transaction_id": "0c96614c-7255-4774-b109-cd53ee851769",
"search_request": {
"version": "1.0.0",
"data": [
{
"reference_id": "0c96614c-7255-4774-b109-cd53ee851769",
"timestamp": "2023-07-19T12:15:04.555Z",
"registry_type": "CIVIL",
"search_criteria": {
"query": {
"identifier": [
{
"identifier_type": "NATIONAL_ID",
"identifier_value": "3076375167"
}
]
}
},
"filter": [
""
],
"sort": [
{
"attribute_name": "name",
"sort_order": "ASC"
}
],
"pagination": {
"page_number": 10,
"page_size": 10
},
"locale": "en"
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"signature": "Signature: namespace=\"dci\", kidId=\"{sender_id}|{unique_key_id}|{algorithm}\", algorithm=\"ed25519\", created=\"1606970629\", expires=\"1607030629\", headers=\"(created) (expires) digest\", signature=\"Base64(signing content)",
"headers": {
"version": "1.0.0",
"message_id": "0c96614c-7255-4774-b109-cd53ee851769",
"message_ts": "2023-07-19T12:15:04.555Z",
"sender_id": "sp-system",
"receiver_id": "crvs",
"action": "search",
"total_count": "1",
"encrypted": false,
"async": false,
"callback_endpoint": ""
},
"message": {
"transaction_id": "0c96614c-7255-4774-b109-cd53ee851769",
"search_request": {
"version": "1.0.0",
"data": [
{
"reference_id": "0c96614c-7255-4774-b109-cd53ee851769",
"timestamp": "2023-07-19T12:15:04.555Z",
"registry_type": "CIVIL",
"search_criteria": {
"query": {
"identifier": [
{
"identifier_type": "NATIONAL_ID",
"identifier_value": "3076375167"
}
]
}
},
"filter": [
""
],
"sort": [
{
"attribute_name": "name",
"sort_order": "ASC"
}
],
"pagination": {
"page_number": 10,
"page_size": 10
},
"locale": "en"
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"signature": "Signature: namespace=\"dci\", kidId=\"{sender_id}|{unique_key_id}|{algorithm}\", algorithm=\"ed25519\", created=\"1606970629\", expires=\"1607030629\", headers=\"(created) (expires) digest\", signature=\"Base64(signing content)",
"headers": {
"version": "1.0.0",
"message_id": "0c96614c-7255-4774-b109-cd53ee851769",
"message_ts": "2023-07-19T12:15:04.555Z",
"sender_id": "sp-system",
"receiver_id": "crvs",
"action": "search",
"total_count": "1",
"encrypted": false,
"async": false,
"callback_endpoint": ""
},
"message": {
"transaction_id": "",
"search_request": [
{
"reference_id": "",
"query": "",
"timestamp": "2022-12-04T17:20:07-04:00",
"person": [
{
"identifier": [
{
"identifier_type": "UIN",
"identifier_value": "345678916"
}
],
"name": {
"suffix": "Jr",
"prefix": "Mr.",
"first_name": "John",
"middle_name": "Doe",
"last_name": "Jackson"
},
"date_of_birth":"1958-01-01"
}
],
"pagination": {
"page_size": 10,
"page_number": 1,
"total_records": 20
},
"locale": {
"code": "",
"language": ""
}
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"signature": "Signature: namespace=\"dci\", kidId=\"{sender_id}|{unique_key_id}|{algorithm}\", algorithm=\"ed25519\", created=\"1606970629\", expires=\"1607030629\", headers=\"(created) (expires) digest\", signature=\"Base64(signing content)",
"headers": {
"version": "1.0.0",
"message_id": "0c96614c-7255-4774-b109-cd53ee851769",
"message_ts": "2023-07-19T12:15:04.555Z",
"sender_id": "sp-system",
"receiver_id": "crvs",
"action": "search",
"total_count": "1",
"encrypted": false,
"async": false,
"callback_endpoint": ""
},
"message": {
"transaction_id": "",
"search_response": [
{
"reference_id": "",
"query": "",
"timestamp": "2022-12-04T17:20:07-04:00",
"persons": [
{
"identifier": [
{
"identifier_type": "UIN",
"identifier_value": "345678916"
}
],
"name": {
"family_name": "Doe",
"given_name": "John",
"middle_name": "Jackson",
"suffix": "Jr",
"prefix": "Mr."
},
"date_of_birth":"1958-01-01T14:30:00Z",
"date_of_death":""
}
],
"pagination": {
"page_size": 10,
"page_number": 1,
"total_records": 20
},
"locale": {
"code": "",
"language": ""
}
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"signature": "Signature: namespace=\"dci\", kidId=\"{sender_id}|{unique_key_id}|{algorithm}\", algorithm=\"ed25519\", created=\"1606970629\", expires=\"1607030629\", headers=\"(created) (expires) digest\", signature=\"Base64(signing content)",
"headers": {
"version": "1.0.0",
"message_id": "0c96614c-7255-4774-b109-cd53ee851769",
"message_ts": "2023-07-19T12:15:04.555Z",
"sender_id": "sp-system",
"receiver_id": "crvs",
"action": "search",
"total_count": "1",
"encrypted": false,
"async": false,
"callback_endpoint": ""
},
"message": {
"transaction_id": "",
"search_request": [
{
"reference_id": "",
"timestamp": "2022-12-04T17:20:07-04:00",
"identifiers": [
{
"identifier_type": "UIN",
"identifier_value": "xxxxxxx"
}
],
"pagination": {
"page_size": 10,
"page_number": 1
}
}
]
}
}
Loading

0 comments on commit 7388149

Please sign in to comment.