File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,7 +25,9 @@ The response produced will have URL of the tender created in Location header of
2525
2626Uploading 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+
4148Changing the Tender
4249-------------------
4350Procuring Entity can change both the primary record and associated documentation.
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments