https://api.arhivaar.ee/api/v0_4/document/info.html
Parameeter | Tüüp | Kirjeldus |
id
| Kohustuslik. Integer.
| Dokumendi ID mille informatsiooni soovitakse. |
Väli | Tüüp | Kirjeldus |
response
| String.
| Väärtus OK või ERROR. |
responseDescription
| Error.
| Sisaldab ühte veakoodi, vaadake allpool. See väli on tagastatud ainult juhul, kui päringu tegemisel tekkis viga, st response väli sisaldab väärtust ERROR. |
document
| Document.
| |
Nimetus | Kirjeldus |
INVALID_DOC_ID
| Parameeter id on vigane. |
DOC_NOT_EXIST | Parameetrile id vastavat dokumenti ei leitud. |
POST /api/v0_4/document/info.html HTTP/1.1
Content-Length: 74
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Host: api.arhivaar.ee
User-Agent: Test Client
id=37932&acc_key=abo5k66xjrjfohkjls71&sig=xQgtXNbvrS%2FeeUNnQGKV6OSZ8ws%3D
HTTP/1.1 200 OK
Date: Mon, 01 Jan 2011 09:29:21 GMT
Server: Apache
Content-Length: 552
Content-Type: application/json;charset=UTF-8
{
"document":{
"title":"Hello, World",
"author":"Tester",
"producer":"Acrobat",
"description":"",
"modifiedDate":1133474400000,
"viewedTally":3,
"downloadedTally":1,
"id":37932,
"folderId":27083,
"digidoc":false,
"documentName":"hello world",
"filename":"hello_world.pdf",
"createdDate":1133474400000,
"uploadedDate":1311938290526,
"pages":19,
"filesize":875711,
"status":"CONVERTED"
},
"response":"OK"
}