request
POST /customers/ejiks/identifications HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: localhost:8080
Content-Length: 294
{
"type" : "National",
"number" : "SC10A1234567",
"expirationDate" : {
"year" : 2029,
"month" : 10,
"day" : 10
},
"issuer" : "National Security",
"createdBy" : "Ndop Ndop",
"createdOn" : "2018/10/10",
"lastModifiedBy" : "Cho Toh",
"lastModifiedOn" : "2019-01-07"
}
response
HTTP/1.1 202 Accepted
request
DELETE /customers/ekolle/identifications/FET12345 HTTP/1.1
Content-Type: application/json
Accept: */*
Host: localhost:8080
response
HTTP/1.1 202 Accepted
request
DELETE /customers/wabah/identifications/SC012A001/scans/justScan HTTP/1.1
Accept: */*
Content-Type: application/json
Host: localhost:8080
response
HTTP/1.1 202 Accepted
request
DELETE /customers/ana/identifications/FET20Z234/scans/myScan HTTP/1.1
Accept: */*
Content-Type: application/json
Host: localhost:8080
response
HTTP/1.1 202 Accepted
request
GET /customers/MXIqyqwG/identifications HTTP/1.1
Content-Type: application/json
Accept: */*
Host: localhost:8080
response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 557
[ {
"type" : "National",
"number" : "07235388",
"expirationDate" : {
"year" : 2028,
"month" : 5,
"day" : 23
},
"issuer" : "NDNS",
"createdBy" : "maatkare",
"createdOn" : "2019-01-07T18:31:20.833Z",
"lastModifiedBy" : null,
"lastModifiedOn" : null
}, {
"type" : "University",
"number" : "SC10A123",
"expirationDate" : {
"year" : 2019,
"month" : 10,
"day" : 7
},
"issuer" : "UB",
"createdBy" : "maatkare",
"createdOn" : "2019-01-07T18:31:20.87Z",
"lastModifiedBy" : null,
"lastModifiedOn" : null
} ]
request
GET /customers/ato'oh/identifications/CT13B0987/scans HTTP/1.1
Content-Type: application/json
Accept: */*
Host: localhost:8080
Content-Length: 197
[ {
"identifier" : "ScanOne",
"description" : "First Scan"
}, {
"identifier" : "ScanTwo",
"description" : "Second Scan"
}, {
"identifier" : "ScanThree",
"description" : "Three Scan"
} ]
response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 197
[ {
"identifier" : "ScanOne",
"description" : "First Scan"
}, {
"identifier" : "ScanTwo",
"description" : "Second Scan"
}, {
"identifier" : "ScanThree",
"description" : "Three Scan"
} ]
request
GET /customers/checko/identifications/SM23A4321/scans/soughtOut HTTP/1.1
Content-Type: application/json
Accept: */*
Host: localhost:8080
Content-Length: 64
{
"identifier" : "soughtOut",
"description" : "Found Scan"
}
response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 64
{
"identifier" : "soughtOut",
"description" : "Found Scan"
}
request
GET /customers/akong/identifications/SC18C0999/scans/scanIdentity/image HTTP/1.1
Content-Type: application/json
Accept: */*
Host: localhost:8080
Content-Length: 15
iCareAboutImage
response
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 15
iCareAboutImage
request
PUT /customers/vkIjTZra/identifications/wYy6vuTdQ0UldUtYkESly5PhpItXAekR HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: localhost:8080
Content-Length: 176
{
"type" : "University",
"number" : "wYy6vuTdQ0UldUtYkESly5PhpItXAekR",
"expirationDate" : {
"year" : 2020,
"month" : 1,
"day" : 1
},
"issuer" : "UBuea"
}
response
HTTP/1.1 202 Accepted