-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
216 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,21 @@ | ||
POST /api/2.3/contracts/61e18d8bf0684f9ea5a7458f8a9059a7/documents?acc_token=36e988b25a144175b8e88bafa299a701 HTTP/1.0 | ||
POST /api/2.3/contracts/2994862db7644382bc67fc71ee23982e/documents?acc_token=1b5cdf87f3e84cb7b25ca1a1b8e2d04e HTTP/1.0 | ||
Authorization: Basic YnJva2VyOg== | ||
Content-Length: 199 | ||
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy440926324509$ | ||
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy782201281612$ | ||
Host: api-sandbox.openprocurement.org | ||
|
||
Response: 201 Created | ||
Content-Type: application/json; charset=UTF-8 | ||
Location: http://api-sandbox.openprocurement.org/api/2.3/contracts/61e18d8bf0684f9ea5a7458f8a9059a7/documents/833f02f5c6b341f18d5d0498f128cb5b | ||
Location: http://api-sandbox.openprocurement.org/api/2.3/contracts/2994862db7644382bc67fc71ee23982e/documents/5efdd97262a24156ad257d9289c8000d | ||
{ | ||
"data": { | ||
"title": "contract_changes.doc", | ||
"url": "http://api-sandbox.openprocurement.org/api/2.3/contracts/61e18d8bf0684f9ea5a7458f8a9059a7/documents/833f02f5c6b341f18d5d0498f128cb5b?download=016bc75a01ff460aba7d70c355518242", | ||
"url": "http://api-sandbox.openprocurement.org/api/2.3/contracts/2994862db7644382bc67fc71ee23982e/documents/5efdd97262a24156ad257d9289c8000d?download=0d930da91289445485e6e3a5cfe3ba69", | ||
"format": "application/msword", | ||
"documentOf": "contract", | ||
"datePublished": "2016-05-13T20:19:28.467056+03:00", | ||
"id": "833f02f5c6b341f18d5d0498f128cb5b", | ||
"dateModified": "2016-05-13T20:19:28.467102+03:00" | ||
} | ||
} | ||
|
||
PATCH /api/2.3/contracts/61e18d8bf0684f9ea5a7458f8a9059a7/documents/833f02f5c6b341f18d5d0498f128cb5b?acc_token=36e988b25a144175b8e88bafa299a701 HTTP/1.0 | ||
Authorization: Basic YnJva2VyOg== | ||
Content-Length: 85 | ||
Content-Type: application/json | ||
Host: api-sandbox.openprocurement.org | ||
DATA: | ||
{ | ||
"data": { | ||
"documentOf": "change", | ||
"relatedItem": "2d92c925f25245519a3d094395f0de1f" | ||
} | ||
} | ||
|
||
Response: 200 OK | ||
Content-Type: application/json; charset=UTF-8 | ||
{ | ||
"data": { | ||
"title": "contract_changes.doc", | ||
"url": "http://api-sandbox.openprocurement.org/api/2.3/contracts/61e18d8bf0684f9ea5a7458f8a9059a7/documents/833f02f5c6b341f18d5d0498f128cb5b?download=016bc75a01ff460aba7d70c355518242", | ||
"format": "application/msword", | ||
"documentOf": "change", | ||
"datePublished": "2016-05-13T20:19:28.467056+03:00", | ||
"id": "833f02f5c6b341f18d5d0498f128cb5b", | ||
"relatedItem": "2d92c925f25245519a3d094395f0de1f", | ||
"dateModified": "2016-05-13T20:19:28.467102+03:00" | ||
"datePublished": "2016-05-16T17:40:23.771187+03:00", | ||
"id": "5efdd97262a24156ad257d9289c8000d", | ||
"dateModified": "2016-05-16T17:40:23.771233+03:00" | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.