Skip to content

Commit b48fa56

Browse files
committed
Adding example of documentation retrieving. Fixes #8. a19107906383484, a19107906383488, a19047726859511
1 parent 6649e0d commit b48fa56

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

docs/source/tenders.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ Reading the individual tender information
7070

7171
Reading the tender documents list
7272
---------------------------------
73+
7374
.. sourcecode:: http
7475

7576
GET /tenders/64e93250be76435397e8c992ed4214d1/documents HTTP/1.1
@@ -78,6 +79,11 @@ Reading the tender documents list
7879

7980
HTTP/1.1 200 OK
8081

82+
Example request:
83+
84+
.. include:: tutorial/tender-documents-2.http
85+
:code:
86+
8187
Reading the tender document
8288
---------------------------
8389

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
$ http http://api-sandbox.openprocurement.org/api/0/tenders/cf66e4dbd600481f85d79b4e13e7a01c/documents
2+
GET /api/0/tenders/cf66e4dbd600481f85d79b4e13e7a01c/documents HTTP/1.1
3+
4+
5+
6+
HTTP/1.1 200 OK
7+
Content-Type: application/json; charset=UTF-8
8+
9+
{
10+
"data": [
11+
{
12+
"datePublished": "2014-11-07T23:29:27.999887",
13+
"format": "text/plain",
14+
"id": "dc2c35ca85bc4e0faaf6257843215133",
15+
"modified": "2014-11-07T23:29:27.999921",
16+
"title": "AwardCriteria.pdf",
17+
"url": "http://api-sandbox.openprocurement.org/api/0/tenders/cf66e4dbd600481f85d79b4e13e7a01c/documents/dc2c35ca85bc4e0faaf6257843215133?download=634f84c3266244c09225c3e53a2dca96"
18+
},
19+
{
20+
"datePublished": "2014-11-07T23:29:29.446686",
21+
"format": "text/plain",
22+
"id": "a973fbad44d84d92b837df0004ac1631",
23+
"modified": "2014-11-07T23:29:29.446718",
24+
"title": "Notice.pdf",
25+
"url": "http://api-sandbox.openprocurement.org/api/0/tenders/cf66e4dbd600481f85d79b4e13e7a01c/documents/a973fbad44d84d92b837df0004ac1631?download=bb37c7a33a094dd08b8242d61f357f01"
26+
}
27+
]
28+
}

0 commit comments

Comments
 (0)