Skip to content

Commit

Permalink
update dates and ids
Browse files Browse the repository at this point in the history
  • Loading branch information
vmaksymiv committed May 16, 2016
1 parent 4f6fc69 commit 37e630c
Show file tree
Hide file tree
Showing 20 changed files with 216 additions and 244 deletions.
42 changes: 7 additions & 35 deletions docs/source/tutorial/add-contract-change-document.http
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"
}
}

6 changes: 3 additions & 3 deletions docs/source/tutorial/add-contract-change.http
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
POST /api/2.3/contracts/61e18d8bf0684f9ea5a7458f8a9059a7/changes?acc_token=36e988b25a144175b8e88bafa299a701 HTTP/1.0
POST /api/2.3/contracts/2994862db7644382bc67fc71ee23982e/changes?acc_token=1b5cdf87f3e84cb7b25ca1a1b8e2d04e HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 215
Content-Type: application/json
Expand All @@ -16,9 +16,9 @@ Content-Type: application/json; charset=UTF-8
{
"data": {
"status": "pending",
"date": "2016-05-13T20:19:28.234951+03:00",
"date": "2016-05-16T17:40:23.519745+03:00",
"rationale_en": "Contract change cause",
"id": "2d92c925f25245519a3d094395f0de1f",
"id": "5b4df996ae8341b4abd7f053a57d2b40",
"rationale": "Опис причини змін контракту"
}
}
Expand Down
34 changes: 17 additions & 17 deletions docs/source/tutorial/add-contract-item.http
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PATCH /api/2.3/contracts/61e18d8bf0684f9ea5a7458f8a9059a7?acc_token=36e988b25a144175b8e88bafa299a701 HTTP/1.0
PATCH /api/2.3/contracts/2994862db7644382bc67fc71ee23982e?acc_token=1b5cdf87f3e84cb7b25ca1a1b8e2d04e HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 1178
Content-Type: application/json
Expand Down Expand Up @@ -30,8 +30,8 @@ DATA:
"locality": "м. Київ"
},
"deliveryDate": {
"startDate": "2016-05-15T20:19:18.837510+03:00",
"endDate": "2016-05-18T20:19:18.837510+03:00"
"startDate": "2016-05-18T17:40:14.224909+03:00",
"endDate": "2016-05-21T17:40:14.224909+03:00"
},
"unit": {
"code": "44617100-9",
Expand Down Expand Up @@ -76,10 +76,10 @@ Content-Type: application/json; charset=UTF-8
"locality": "м. Київ"
},
"deliveryDate": {
"startDate": "2016-05-15T20:19:18.837510+03:00",
"endDate": "2016-05-18T20:19:18.837510+03:00"
"startDate": "2016-05-18T17:40:14.224909+03:00",
"endDate": "2016-05-21T17:40:14.224909+03:00"
},
"id": "2a35845d06254067ad1754064a093b8b",
"id": "286ecbd99fc4417487728fd4573e8d7b",
"unit": {
"code": "44617100-9",
"name": "item"
Expand Down Expand Up @@ -108,10 +108,10 @@ Content-Type: application/json; charset=UTF-8
"locality": "м. Київ"
},
"deliveryDate": {
"startDate": "2016-05-15T20:19:18.837510+03:00",
"endDate": "2016-05-18T20:19:18.837510+03:00"
"startDate": "2016-05-18T17:40:14.224909+03:00",
"endDate": "2016-05-21T17:40:14.224909+03:00"
},
"id": "6cc8a021656645f9a087023274d6d9be",
"id": "dfb7ee65ab0c43508f524cc6848f18ea",
"unit": {
"code": "44617100-9",
"name": "item"
Expand Down Expand Up @@ -141,11 +141,11 @@ Content-Type: application/json; charset=UTF-8
}
],
"period": {
"startDate": "2016-05-13T20:19:26.877807+03:00",
"endDate": "2016-06-12T20:19:26.877846+03:00"
"startDate": "2016-05-16T17:40:22.200236+03:00",
"endDate": "2016-06-15T17:40:22.200298+03:00"
},
"dateSigned": "2016-05-13T20:19:26.189940+03:00",
"id": "61e18d8bf0684f9ea5a7458f8a9059a7",
"dateSigned": "2016-05-16T17:40:21.397448+03:00",
"id": "2994862db7644382bc67fc71ee23982e",
"procuringEntity": {
"contactPoint": {
"name": "Державне управління справами",
Expand All @@ -166,11 +166,11 @@ Content-Type: application/json; charset=UTF-8
"locality": "м. Київ"
}
},
"contractID": "UA-2016-05-13-000001-1",
"contractID": "UA-2016-05-16-000001-1",
"owner": "broker",
"awardID": "871852e8574b4cf8bce1ad59698ac87f",
"dateModified": "2016-05-13T20:19:27.139371+03:00",
"tender_id": "81127431444c4e9b88f913960334f3a8"
"awardID": "71bf8da7eb954af88dd7b8c419ac0b5c",
"dateModified": "2016-05-16T17:40:22.422745+03:00",
"tender_id": "6e952466097a4c19832e44fda9a4b437"
}
}

6 changes: 3 additions & 3 deletions docs/source/tutorial/apply-contract-change.http
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PATCH /api/2.3/contracts/61e18d8bf0684f9ea5a7458f8a9059a7/changes/2d92c925f25245519a3d094395f0de1f?acc_token=36e988b25a144175b8e88bafa299a701 HTTP/1.0
PATCH /api/2.3/contracts/2994862db7644382bc67fc71ee23982e/changes/5b4df996ae8341b4abd7f053a57d2b40?acc_token=1b5cdf87f3e84cb7b25ca1a1b8e2d04e HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 30
Content-Type: application/json
Expand All @@ -15,9 +15,9 @@ Content-Type: application/json; charset=UTF-8
{
"data": {
"status": "active",
"date": "2016-05-13T20:19:28.721124+03:00",
"date": "2016-05-16T17:40:24.008075+03:00",
"rationale_en": "Contract change cause",
"id": "2d92c925f25245519a3d094395f0de1f",
"id": "5b4df996ae8341b4abd7f053a57d2b40",
"rationale": "Друга і третя поставка має бути розфасована"
}
}
Expand Down
20 changes: 10 additions & 10 deletions docs/source/tutorial/contract-activation.http
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PATCH /api/2.3/contracts/61e18d8bf0684f9ea5a7458f8a9059a7?acc_token=36e988b25a144175b8e88bafa299a701 HTTP/1.0
PATCH /api/2.3/contracts/2994862db7644382bc67fc71ee23982e?acc_token=1b5cdf87f3e84cb7b25ca1a1b8e2d04e HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 30
Content-Type: application/json
Expand Down Expand Up @@ -43,10 +43,10 @@ Content-Type: application/json; charset=UTF-8
"locality": "м. Київ"
},
"deliveryDate": {
"startDate": "2016-05-15T20:19:18.837510+03:00",
"endDate": "2016-05-18T20:19:18.837510+03:00"
"startDate": "2016-05-18T17:40:14.224909+03:00",
"endDate": "2016-05-21T17:40:14.224909+03:00"
},
"id": "2a35845d06254067ad1754064a093b8b",
"id": "286ecbd99fc4417487728fd4573e8d7b",
"unit": {
"code": "44617100-9",
"name": "item"
Expand Down Expand Up @@ -75,8 +75,8 @@ Content-Type: application/json; charset=UTF-8
}
}
],
"dateSigned": "2016-05-13T20:19:26.189940+03:00",
"dateModified": "2016-05-13T20:19:26.784566+03:00",
"dateSigned": "2016-05-16T17:40:21.397448+03:00",
"dateModified": "2016-05-16T17:40:22.107465+03:00",
"procuringEntity": {
"contactPoint": {
"name": "Державне управління справами",
Expand All @@ -97,11 +97,11 @@ Content-Type: application/json; charset=UTF-8
"locality": "м. Київ"
}
},
"contractID": "UA-2016-05-13-000001-1",
"contractID": "UA-2016-05-16-000001-1",
"owner": "broker",
"awardID": "871852e8574b4cf8bce1ad59698ac87f",
"id": "61e18d8bf0684f9ea5a7458f8a9059a7",
"tender_id": "81127431444c4e9b88f913960334f3a8"
"awardID": "71bf8da7eb954af88dd7b8c419ac0b5c",
"id": "2994862db7644382bc67fc71ee23982e",
"tender_id": "6e952466097a4c19832e44fda9a4b437"
}
}

22 changes: 11 additions & 11 deletions docs/source/tutorial/contract-credentials.http
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PATCH /api/2.3/contracts/61e18d8bf0684f9ea5a7458f8a9059a7/credentials?acc_token=fffccbc98ce4486886a4a4eebb64ef92 HTTP/1.0
PATCH /api/2.3/contracts/2994862db7644382bc67fc71ee23982e/credentials?acc_token=c23c01fd7507483682792c2095175387 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 0
Content-Type: application/json
Expand All @@ -8,7 +8,7 @@ Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
"access": {
"token": "36e988b25a144175b8e88bafa299a701"
"token": "1b5cdf87f3e84cb7b25ca1a1b8e2d04e"
},
"data": {
"status": "draft",
Expand Down Expand Up @@ -40,10 +40,10 @@ Content-Type: application/json; charset=UTF-8
"locality": "м. Київ"
},
"deliveryDate": {
"startDate": "2016-05-15T20:19:18.837510+03:00",
"endDate": "2016-05-18T20:19:18.837510+03:00"
"startDate": "2016-05-18T17:40:14.224909+03:00",
"endDate": "2016-05-21T17:40:14.224909+03:00"
},
"id": "2a35845d06254067ad1754064a093b8b",
"id": "286ecbd99fc4417487728fd4573e8d7b",
"unit": {
"code": "44617100-9",
"name": "item"
Expand Down Expand Up @@ -72,8 +72,8 @@ Content-Type: application/json; charset=UTF-8
}
}
],
"dateSigned": "2016-05-13T20:19:26.189940+03:00",
"dateModified": "2016-05-13T20:19:26.569773+03:00",
"dateSigned": "2016-05-16T17:40:21.397448+03:00",
"dateModified": "2016-05-16T17:40:21.891157+03:00",
"procuringEntity": {
"contactPoint": {
"name": "Державне управління справами",
Expand All @@ -94,11 +94,11 @@ Content-Type: application/json; charset=UTF-8
"locality": "м. Київ"
}
},
"contractID": "UA-2016-05-13-000001-1",
"contractID": "UA-2016-05-16-000001-1",
"owner": "broker",
"awardID": "871852e8574b4cf8bce1ad59698ac87f",
"id": "61e18d8bf0684f9ea5a7458f8a9059a7",
"tender_id": "81127431444c4e9b88f913960334f3a8"
"awardID": "71bf8da7eb954af88dd7b8c419ac0b5c",
"id": "2994862db7644382bc67fc71ee23982e",
"tender_id": "6e952466097a4c19832e44fda9a4b437"
}
}

10 changes: 5 additions & 5 deletions docs/source/tutorial/contract-documents.http
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GET /api/2.3/contracts/61e18d8bf0684f9ea5a7458f8a9059a7/documents?acc_token=36e988b25a144175b8e88bafa299a701 HTTP/1.0
GET /api/2.3/contracts/2994862db7644382bc67fc71ee23982e/documents?acc_token=1b5cdf87f3e84cb7b25ca1a1b8e2d04e HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Expand All @@ -8,12 +8,12 @@ Content-Type: application/json; charset=UTF-8
"data": [
{
"title": "contract.doc",
"url": "http://api-sandbox.openprocurement.org/api/2.3/contracts/61e18d8bf0684f9ea5a7458f8a9059a7/documents/76ece695f85f46b1978abcf11b1f6d3f?download=8fbc3caa7ab84702a83eeab7f3393f2d",
"url": "http://api-sandbox.openprocurement.org/api/2.3/contracts/2994862db7644382bc67fc71ee23982e/documents/9fb5e6cb1e464f4ea8d454bac98f2276?download=51a556129377486abcc2da1e3f1c9e06",
"format": "application/msword",
"documentOf": "contract",
"datePublished": "2016-05-13T20:19:27.833450+03:00",
"id": "76ece695f85f46b1978abcf11b1f6d3f",
"dateModified": "2016-05-13T20:19:27.833497+03:00"
"datePublished": "2016-05-16T17:40:23.068420+03:00",
"id": "9fb5e6cb1e464f4ea8d454bac98f2276",
"dateModified": "2016-05-16T17:40:23.068459+03:00"
}
]
}
Expand Down

0 comments on commit 37e630c

Please sign in to comment.