Skip to content

Commit 998e6e8

Browse files
committed
Added description of Document Uploading. Ref: #5. a19107906383478, a19107906383490, a18673866971731
1 parent 02d9837 commit 998e6e8

2 files changed

Lines changed: 32 additions & 1 deletion

File tree

docs/source/procuring.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ The response produced will have URL of the tender created in Location header of
2525

2626
Uploading documentation
2727
~~~~~~~~~~~~~~~~~~~~~~~
28-
All tender documentation should be uploaded following requests one request per document.
28+
29+
All tender documentation should be uploaded following requests one request
30+
per document. You can see supported request types in Documents Uploading section.
2931

3032
.. sourcecode:: http
3133

@@ -38,6 +40,11 @@ The response produced will have URL of the tender document uploaded in Location
3840
HTTP/1.1 201 Created
3941
Location: /tenders/64e93250be76435397e8c992ed4214d1/documents/6a7d13bd8ec449e08882aeb92180d938
4042

43+
Example request:
44+
45+
.. include:: tutorial/upload-award-notice.http
46+
:code:
47+
4148
Changing the Tender
4249
-------------------
4350
Procuring Entity can change both the primary record and associated documentation.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
$ http --form POST http://api-sandbox.openprocurement.org/api/0/tenders/f6882fa63d5141bcabec54a4766eec61/documents file@./Notice.pdf
2+
POST /api/0/tenders/f6882fa63d5141bcabec54a4766eec61/documents HTTP/1.1
3+
Content-Type: multipart/form-data; boundary=1edaccf0784c44b0b2dec98f0be84283
4+
5+
6+
7+
+-----------------------------------------+
8+
| NOTE: binary data not shown in terminal |
9+
+-----------------------------------------+
10+
11+
HTTP/1.1 201 Created
12+
Content-Type: application/json; charset=UTF-8
13+
Location: http://api-sandbox.openprocurement.org/api/0/tenders/f6882fa63d5141bcabec54a4766eec61/documents/00fda3ddcb9b49a4b347f26e056af166
14+
15+
{
16+
"data": {
17+
"datePublished": "2014-11-07T18:10:29.034593",
18+
"format": "text/plain",
19+
"id": "00fda3ddcb9b49a4b347f26e056af166",
20+
"modified": "2014-11-07T18:10:29.034628",
21+
"title": "Notice.pdf",
22+
"url": "http://api-sandbox.openprocurement.org/api/0/tenders/f6882fa63d5141bcabec54a4766eec61/documents/00fda3ddcb9b49a4b347f26e056af166?download=923b373788e34eb797f7fd156879a874"
23+
}
24+
}

0 commit comments

Comments
 (0)