Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
vmaksymiv committed May 26, 2016
1 parent d021a74 commit 83a906f
Show file tree
Hide file tree
Showing 23 changed files with 284 additions and 260 deletions.
14 changes: 7 additions & 7 deletions docs/source/tutorial/add-contract-change-document.http
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
POST /api/2.3/contracts/5cceaf781c3f4b6893cc4e8766f79200/documents?acc_token=5afe1f7f8c204337b8d012df0eb117eb HTTP/1.0
POST /api/2.3/contracts/5e58f434fe5245a785b8db082e578e05/documents?acc_token=c9c47ab906304fb79d2b46395be982cd HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 199
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy384689315463$
Content-Type: multipart/form-data; boundary=----------a_BoUnDaRy834956454371$
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/5cceaf781c3f4b6893cc4e8766f79200/documents/c7f20de393d0438a995894f0d1190531
Location: http://api-sandbox.openprocurement.org/api/2.3/contracts/5e58f434fe5245a785b8db082e578e05/documents/64a0c583943c44f98bb986bb52be0a6b
{
"data": {
"title": "contract_changes.doc",
"url": "http://api-sandbox.openprocurement.org/api/2.3/contracts/5cceaf781c3f4b6893cc4e8766f79200/documents/c7f20de393d0438a995894f0d1190531?download=980d099f682d4ac0a40981eca38d245e",
"url": "http://api-sandbox.openprocurement.org/api/2.3/contracts/5e58f434fe5245a785b8db082e578e05/documents/64a0c583943c44f98bb986bb52be0a6b?download=72df8bbd44604537b38bd8d521b6c642",
"format": "application/msword",
"documentOf": "contract",
"datePublished": "2016-05-20T19:52:54.081405+03:00",
"id": "c7f20de393d0438a995894f0d1190531",
"dateModified": "2016-05-20T19:52:54.081456+03:00"
"datePublished": "2016-05-26T19:12:28.575401+03:00",
"id": "64a0c583943c44f98bb986bb52be0a6b",
"dateModified": "2016-05-26T19:12:28.575455+03:00"
}
}

18 changes: 12 additions & 6 deletions docs/source/tutorial/add-contract-change.http
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
POST /api/2.3/contracts/5cceaf781c3f4b6893cc4e8766f79200/changes?acc_token=5afe1f7f8c204337b8d012df0eb117eb HTTP/1.0
POST /api/2.3/contracts/5e58f434fe5245a785b8db082e578e05/changes?acc_token=c9c47ab906304fb79d2b46395be982cd HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 246
Content-Length: 267
Content-Type: application/json
Host: api-sandbox.openprocurement.org
DATA:
{
"data": {
"rationaleType": "volumeCuts",
"rationaleTypes": [
"volumeCuts",
"priceReduction"
],
"rationale_en": "Contract change cause",
"rationale": "Опис причини змін контракту"
}
Expand All @@ -17,11 +20,14 @@ Content-Type: application/json; charset=UTF-8
{
"data": {
"status": "pending",
"rationaleType": "volumeCuts",
"rationaleTypes": [
"volumeCuts",
"priceReduction"
],
"rationale_en": "Contract change cause",
"rationale": "Опис причини змін контракту",
"date": "2016-05-20T19:52:53.772902+03:00",
"id": "ad59e18b89aa4ff2b4d4de1f4f98091d"
"date": "2016-05-26T19:12:28.298428+03:00",
"id": "06d8fc7770a94ebe93cd60e3c258d2c4"
}
}

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/5cceaf781c3f4b6893cc4e8766f79200?acc_token=5afe1f7f8c204337b8d012df0eb117eb HTTP/1.0
PATCH /api/2.3/contracts/5e58f434fe5245a785b8db082e578e05?acc_token=c9c47ab906304fb79d2b46395be982cd 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-22T19:52:47.082076+03:00",
"endDate": "2016-05-25T19:52:47.082076+03:00"
"startDate": "2016-05-28T19:12:20.406602+03:00",
"endDate": "2016-05-31T19:12:20.406602+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-22T19:52:47.082076+03:00",
"endDate": "2016-05-25T19:52:47.082076+03:00"
"startDate": "2016-05-28T19:12:20.406602+03:00",
"endDate": "2016-05-31T19:12:20.406602+03:00"
},
"id": "70b5bf4d32864ab7abac5ae7ac53d0e6",
"id": "6e60744a197c4ffda55355d82b1224fc",
"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-22T19:52:47.082076+03:00",
"endDate": "2016-05-25T19:52:47.082076+03:00"
"startDate": "2016-05-28T19:12:20.406602+03:00",
"endDate": "2016-05-31T19:12:20.406602+03:00"
},
"id": "5a71ea0994f44b4db467ccdac3ee5db0",
"id": "b12e00fb399042839ac9a93e2d29967f",
"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-20T19:52:52.252462+03:00",
"endDate": "2016-06-19T19:52:52.252508+03:00"
"startDate": "2016-05-26T19:12:26.636459+03:00",
"endDate": "2016-06-25T19:12:26.636507+03:00"
},
"dateSigned": "2016-05-20T19:52:51.641958+03:00",
"id": "5cceaf781c3f4b6893cc4e8766f79200",
"dateSigned": "2016-05-26T19:12:26.038876+03:00",
"id": "5e58f434fe5245a785b8db082e578e05",
"procuringEntity": {
"contactPoint": {
"name": "Державне управління справами",
Expand All @@ -166,11 +166,11 @@ Content-Type: application/json; charset=UTF-8
"locality": "м. Київ"
}
},
"contractID": "UA-2016-05-20-000001-1",
"contractID": "UA-2016-05-26-000001-1",
"owner": "broker",
"awardID": "2a2e206c07c1454ca24229e2935d7292",
"dateModified": "2016-05-20T19:52:52.582480+03:00",
"tender_id": "f41e80d3d3234f9bb5bf84fcd0f21450"
"awardID": "a6400b3c11df4cb994f78d436b1f9481",
"dateModified": "2016-05-26T19:12:26.963398+03:00",
"tender_id": "345b04bde83c4ea58f157f15f53653c6"
}
}

11 changes: 7 additions & 4 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/5cceaf781c3f4b6893cc4e8766f79200/changes/ad59e18b89aa4ff2b4d4de1f4f98091d?acc_token=5afe1f7f8c204337b8d012df0eb117eb HTTP/1.0
PATCH /api/2.3/contracts/5e58f434fe5245a785b8db082e578e05/changes/06d8fc7770a94ebe93cd60e3c258d2c4?acc_token=c9c47ab906304fb79d2b46395be982cd HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 30
Content-Type: application/json
Expand All @@ -15,11 +15,14 @@ Content-Type: application/json; charset=UTF-8
{
"data": {
"status": "active",
"rationaleType": "volumeCuts",
"rationaleTypes": [
"volumeCuts",
"priceReduction"
],
"rationale_en": "Contract change cause",
"rationale": "Друга і третя поставка має бути розфасована",
"date": "2016-05-20T19:52:54.287842+03:00",
"id": "ad59e18b89aa4ff2b4d4de1f4f98091d"
"date": "2016-05-26T19:12:28.848605+03:00",
"id": "06d8fc7770a94ebe93cd60e3c258d2c4"
}
}

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/5cceaf781c3f4b6893cc4e8766f79200/credentials?acc_token=5be25d565e3546a3ac6084aa4f8c69d6 HTTP/1.0
PATCH /api/2.3/contracts/5e58f434fe5245a785b8db082e578e05/credentials?acc_token=8ee6fddcf48c47fb8e790aba873e1b11 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": "5afe1f7f8c204337b8d012df0eb117eb"
"token": "c9c47ab906304fb79d2b46395be982cd"
},
"data": {
"status": "active",
Expand Down Expand Up @@ -40,10 +40,10 @@ Content-Type: application/json; charset=UTF-8
"locality": "м. Київ"
},
"deliveryDate": {
"startDate": "2016-05-22T19:52:47.082076+03:00",
"endDate": "2016-05-25T19:52:47.082076+03:00"
"startDate": "2016-05-28T19:12:20.406602+03:00",
"endDate": "2016-05-31T19:12:20.406602+03:00"
},
"id": "70b5bf4d32864ab7abac5ae7ac53d0e6",
"id": "6e60744a197c4ffda55355d82b1224fc",
"unit": {
"code": "44617100-9",
"name": "item"
Expand Down Expand Up @@ -72,8 +72,8 @@ Content-Type: application/json; charset=UTF-8
}
}
],
"dateSigned": "2016-05-20T19:52:51.641958+03:00",
"dateModified": "2016-05-20T19:52:52.135372+03:00",
"dateSigned": "2016-05-26T19:12:26.038876+03:00",
"dateModified": "2016-05-26T19:12:26.520530+03:00",
"procuringEntity": {
"contactPoint": {
"name": "Державне управління справами",
Expand All @@ -94,11 +94,11 @@ Content-Type: application/json; charset=UTF-8
"locality": "м. Київ"
}
},
"contractID": "UA-2016-05-20-000001-1",
"contractID": "UA-2016-05-26-000001-1",
"owner": "broker",
"awardID": "2a2e206c07c1454ca24229e2935d7292",
"id": "5cceaf781c3f4b6893cc4e8766f79200",
"tender_id": "f41e80d3d3234f9bb5bf84fcd0f21450"
"awardID": "a6400b3c11df4cb994f78d436b1f9481",
"id": "5e58f434fe5245a785b8db082e578e05",
"tender_id": "345b04bde83c4ea58f157f15f53653c6"
}
}

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/5cceaf781c3f4b6893cc4e8766f79200/documents?acc_token=5afe1f7f8c204337b8d012df0eb117eb HTTP/1.0
GET /api/2.3/contracts/5e58f434fe5245a785b8db082e578e05/documents?acc_token=c9c47ab906304fb79d2b46395be982cd 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/5cceaf781c3f4b6893cc4e8766f79200/documents/fc5be96fb43a4f73b2615186f5708bf1?download=d82843380d224527976eb4edc69c9a1e",
"url": "http://api-sandbox.openprocurement.org/api/2.3/contracts/5e58f434fe5245a785b8db082e578e05/documents/eb3f9d7bf8b44e72a73f880e96ca0c75?download=415458371da44c2da612c4f9a3d639b9",
"format": "application/msword",
"documentOf": "contract",
"datePublished": "2016-05-20T19:52:53.308970+03:00",
"id": "fc5be96fb43a4f73b2615186f5708bf1",
"dateModified": "2016-05-20T19:52:53.309018+03:00"
"datePublished": "2016-05-26T19:12:27.835124+03:00",
"id": "eb3f9d7bf8b44e72a73f880e96ca0c75",
"dateModified": "2016-05-26T19:12:27.835175+03:00"
}
]
}
Expand Down
67 changes: 35 additions & 32 deletions docs/source/tutorial/contract-termination.http
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PATCH /api/2.3/contracts/5cceaf781c3f4b6893cc4e8766f79200?acc_token=5afe1f7f8c204337b8d012df0eb117eb HTTP/1.0
PATCH /api/2.3/contracts/5e58f434fe5245a785b8db082e578e05?acc_token=c9c47ab906304fb79d2b46395be982cd HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 65
Content-Type: application/json
Expand Down Expand Up @@ -26,50 +26,53 @@ Content-Type: application/json; charset=UTF-8
"changes": [
{
"status": "active",
"rationaleType": "volumeCuts",
"rationaleTypes": [
"volumeCuts",
"priceReduction"
],
"rationale_en": "Contract change cause",
"rationale": "Друга і третя поставка має бути розфасована",
"date": "2016-05-20T19:52:54.287842+03:00",
"id": "ad59e18b89aa4ff2b4d4de1f4f98091d"
"date": "2016-05-26T19:12:28.848605+03:00",
"id": "06d8fc7770a94ebe93cd60e3c258d2c4"
}
],
"documents": [
{
"title": "contract.doc",
"url": "http://api-sandbox.openprocurement.org/api/2.3/contracts/5cceaf781c3f4b6893cc4e8766f79200/documents/fc5be96fb43a4f73b2615186f5708bf1?download=d82843380d224527976eb4edc69c9a1e",
"url": "http://api-sandbox.openprocurement.org/api/2.3/contracts/5e58f434fe5245a785b8db082e578e05/documents/eb3f9d7bf8b44e72a73f880e96ca0c75?download=415458371da44c2da612c4f9a3d639b9",
"format": "application/msword",
"documentOf": "contract",
"datePublished": "2016-05-20T19:52:53.308970+03:00",
"id": "fc5be96fb43a4f73b2615186f5708bf1",
"dateModified": "2016-05-20T19:52:53.309018+03:00"
"datePublished": "2016-05-26T19:12:27.835124+03:00",
"id": "eb3f9d7bf8b44e72a73f880e96ca0c75",
"dateModified": "2016-05-26T19:12:27.835175+03:00"
},
{
"title": "contract_additional_docs.doc",
"url": "http://api-sandbox.openprocurement.org/api/2.3/contracts/5cceaf781c3f4b6893cc4e8766f79200/documents/ced0567673ee42f1aebb0f2dca826518?download=7259709391474bccbfc37cc7db3c33d9",
"url": "http://api-sandbox.openprocurement.org/api/2.3/contracts/5e58f434fe5245a785b8db082e578e05/documents/b308f5192e414d63a93db0bb01c289e3?download=322391e57f904d169814eac593e5570d",
"format": "application/msword",
"documentOf": "contract",
"datePublished": "2016-05-20T19:52:53.488851+03:00",
"id": "ced0567673ee42f1aebb0f2dca826518",
"dateModified": "2016-05-20T19:52:53.488902+03:00"
"datePublished": "2016-05-26T19:12:28.003190+03:00",
"id": "b308f5192e414d63a93db0bb01c289e3",
"dateModified": "2016-05-26T19:12:28.003255+03:00"
},
{
"title": "contract_additional_docs.doc",
"url": "http://api-sandbox.openprocurement.org/api/2.3/contracts/5cceaf781c3f4b6893cc4e8766f79200/documents/ced0567673ee42f1aebb0f2dca826518?download=26a9d119df9e4fa5984af02e29a5f73a",
"url": "http://api-sandbox.openprocurement.org/api/2.3/contracts/5e58f434fe5245a785b8db082e578e05/documents/b308f5192e414d63a93db0bb01c289e3?download=e4d0210ae6c446c4b40267942526ffc1",
"format": "application/msword",
"documentOf": "contract",
"datePublished": "2016-05-20T19:52:53.488851+03:00",
"id": "ced0567673ee42f1aebb0f2dca826518",
"dateModified": "2016-05-20T19:52:53.626471+03:00"
"datePublished": "2016-05-26T19:12:28.003190+03:00",
"id": "b308f5192e414d63a93db0bb01c289e3",
"dateModified": "2016-05-26T19:12:28.111336+03:00"
},
{
"title": "contract_changes.doc",
"url": "http://api-sandbox.openprocurement.org/api/2.3/contracts/5cceaf781c3f4b6893cc4e8766f79200/documents/c7f20de393d0438a995894f0d1190531?download=980d099f682d4ac0a40981eca38d245e",
"url": "http://api-sandbox.openprocurement.org/api/2.3/contracts/5e58f434fe5245a785b8db082e578e05/documents/64a0c583943c44f98bb986bb52be0a6b?download=72df8bbd44604537b38bd8d521b6c642",
"format": "application/msword",
"documentOf": "change",
"datePublished": "2016-05-20T19:52:54.081405+03:00",
"id": "c7f20de393d0438a995894f0d1190531",
"relatedItem": "ad59e18b89aa4ff2b4d4de1f4f98091d",
"dateModified": "2016-05-20T19:52:54.081456+03:00"
"datePublished": "2016-05-26T19:12:28.575401+03:00",
"id": "64a0c583943c44f98bb986bb52be0a6b",
"relatedItem": "06d8fc7770a94ebe93cd60e3c258d2c4",
"dateModified": "2016-05-26T19:12:28.575455+03:00"
}
],
"items": [
Expand All @@ -95,10 +98,10 @@ Content-Type: application/json; charset=UTF-8
"locality": "м. Київ"
},
"deliveryDate": {
"startDate": "2016-05-22T19:52:47.082076+03:00",
"endDate": "2016-05-25T19:52:47.082076+03:00"
"startDate": "2016-05-28T19:12:20.406602+03:00",
"endDate": "2016-05-31T19:12:20.406602+03:00"
},
"id": "5a71ea0994f44b4db467ccdac3ee5db0",
"id": "b12e00fb399042839ac9a93e2d29967f",
"unit": {
"code": "44617100-9",
"name": "item"
Expand Down Expand Up @@ -128,11 +131,11 @@ Content-Type: application/json; charset=UTF-8
}
],
"period": {
"startDate": "2016-05-20T19:52:52.252462+03:00",
"endDate": "2016-06-19T19:52:52.252508+03:00"
"startDate": "2016-05-26T19:12:26.636459+03:00",
"endDate": "2016-06-25T19:12:26.636507+03:00"
},
"dateSigned": "2016-05-20T19:52:51.641958+03:00",
"id": "5cceaf781c3f4b6893cc4e8766f79200",
"dateSigned": "2016-05-26T19:12:26.038876+03:00",
"id": "5e58f434fe5245a785b8db082e578e05",
"procuringEntity": {
"contactPoint": {
"name": "Державне управління справами",
Expand All @@ -153,16 +156,16 @@ Content-Type: application/json; charset=UTF-8
"locality": "м. Київ"
}
},
"contractID": "UA-2016-05-20-000001-1",
"contractID": "UA-2016-05-26-000001-1",
"owner": "broker",
"awardID": "2a2e206c07c1454ca24229e2935d7292",
"awardID": "a6400b3c11df4cb994f78d436b1f9481",
"amountPaid": {
"currency": "UAH",
"amount": 430.0,
"valueAddedTaxIncluded": true
},
"dateModified": "2016-05-20T19:52:54.593221+03:00",
"tender_id": "f41e80d3d3234f9bb5bf84fcd0f21450"
"dateModified": "2016-05-26T19:12:29.239138+03:00",
"tender_id": "345b04bde83c4ea58f157f15f53653c6"
}
}

0 comments on commit 83a906f

Please sign in to comment.