/unit/search
List of available units
Example request:
GET /unit/search?unit_id[]=127&unit_id[]=9&api_key=key-XXXXXXXXXXXXX HTTP/1.1
Host: api.dvidshub.net
Accept-encoding: gzip, deflate
User-Agent: Zend_Http_Client
Accept: application/json, text/javascript
Referer: https://api.dvidshub.net
Example response:
HTTP/1.1 200 OK
Content-type: application/json; charset=utf-8
Content-length: 347
Connection: keep-alive
Date: Wed, 30 Oct 2024 16:50:51 GMT
Access-control-allow-origin: *
Server: Apache
Set-cookie: session=expiry=1730307651065088;Max-Age=600;path=/var/lib/php/sessions;domain=yourdomain.com;httpOnly;secure;
Cache-control: no-cache, private
X-cache: Miss from cloudfront
Via: 1.1 cde8060bf7a12c2736a86c5f19473b60.cloudfront.net (CloudFront)
X-amz-cf-pop: IAD66-C1
Alt-svc: h3=":443"; ma=86400
X-amz-cf-id: ee6tm3sGf-loT73b-24Sn12ws0ukBRSmPwww2QBpkRpxDow2gBVHSA==
{
"messages":[
"max_results was not supplied. A maximum of 50 results per page will be returned."
],
"page_info":{
"total_results":2,
"results_per_page":50
},
"results":[
{
"id":"9",
"unit_name":"139th Mobile Public Affairs Detachment",
"unit_abbrev":"139MPAD",
"branch":"Army"
},
{
"id":"127",
"unit_name":"DVIDS Hub",
"unit_abbrev":"DVIDSHUB",
"branch":"Joint"
}
]
}