Skip to content

Commit

Permalink
reveal latest tutorial update
Browse files Browse the repository at this point in the history
  • Loading branch information
vmaksymiv committed May 6, 2016
1 parent c6784de commit a7daadf
Show file tree
Hide file tree
Showing 14 changed files with 156 additions and 141 deletions.
18 changes: 9 additions & 9 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/090b314bec904ab78055d1a55519f99d?acc_token=07c2a6ee8e0f4ca68b20cc2a36e79af5 HTTP/1.0
PATCH /api/2.3/contracts/112a2925d5f64355a04f78ae71e40add?acc_token=c4c1e960ef11492b958715b14d4f4108 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-08T16:20:11.072105+03:00",
"endDate": "2016-05-11T16:20:11.072105+03:00"
"startDate": "2016-05-08T19:38:41.557380+03:00",
"endDate": "2016-05-11T19:38:41.557380+03:00"
},
"id": "5c1ce4b39e78439d854bf87891f16c6e",
"id": "438dca8a73c84dc2bf89a42dc53b9a47",
"unit": {
"code": "44617100-9",
"name": "item"
Expand Down Expand Up @@ -75,8 +75,8 @@ Content-Type: application/json; charset=UTF-8
}
}
],
"dateSigned": "2016-05-06T16:20:17.973174+03:00",
"id": "090b314bec904ab78055d1a55519f99d",
"dateSigned": "2016-05-06T19:38:48.268149+03:00",
"dateModified": "2016-05-06T19:38:48.858485+03:00",
"procuringEntity": {
"contactPoint": {
"name": "Державне управління справами",
Expand All @@ -99,9 +99,9 @@ Content-Type: application/json; charset=UTF-8
},
"contractID": "UA-2016-05-06-000001-1",
"owner": "broker",
"awardID": "217b01d307b24834ad81b4d988638ff5",
"dateModified": "2016-05-06T16:20:18.606553+03:00",
"tender_id": "b29adb69ecbf44b0baa4a90f38625a1f"
"awardID": "ef55ed1e521c41f1a9c950fd1f8689b0",
"id": "112a2925d5f64355a04f78ae71e40add",
"tender_id": "f972af91ab884861b59ecfdfd7c3dae6"
}
}

20 changes: 10 additions & 10 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/090b314bec904ab78055d1a55519f99d/credentials?acc_token=53c61e183201416483409607a66467cc HTTP/1.0
PATCH /api/2.3/contracts/112a2925d5f64355a04f78ae71e40add/credentials?acc_token=01c1c9c7f4be466fb162130904c2124f 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": "07c2a6ee8e0f4ca68b20cc2a36e79af5"
"token": "c4c1e960ef11492b958715b14d4f4108"
},
"data": {
"status": "draft",
Expand Down Expand Up @@ -40,10 +40,10 @@ Content-Type: application/json; charset=UTF-8
"locality": "м. Київ"
},
"deliveryDate": {
"startDate": "2016-05-08T16:20:11.072105+03:00",
"endDate": "2016-05-11T16:20:11.072105+03:00"
"startDate": "2016-05-08T19:38:41.557380+03:00",
"endDate": "2016-05-11T19:38:41.557380+03:00"
},
"id": "5c1ce4b39e78439d854bf87891f16c6e",
"id": "438dca8a73c84dc2bf89a42dc53b9a47",
"unit": {
"code": "44617100-9",
"name": "item"
Expand Down Expand Up @@ -72,8 +72,8 @@ Content-Type: application/json; charset=UTF-8
}
}
],
"dateSigned": "2016-05-06T16:20:17.973174+03:00",
"id": "090b314bec904ab78055d1a55519f99d",
"dateSigned": "2016-05-06T19:38:48.268149+03:00",
"dateModified": "2016-05-06T19:38:48.647392+03:00",
"procuringEntity": {
"contactPoint": {
"name": "Державне управління справами",
Expand All @@ -96,9 +96,9 @@ Content-Type: application/json; charset=UTF-8
},
"contractID": "UA-2016-05-06-000001-1",
"owner": "broker",
"awardID": "217b01d307b24834ad81b4d988638ff5",
"dateModified": "2016-05-06T16:20:18.378361+03:00",
"tender_id": "b29adb69ecbf44b0baa4a90f38625a1f"
"awardID": "ef55ed1e521c41f1a9c950fd1f8689b0",
"id": "112a2925d5f64355a04f78ae71e40add",
"tender_id": "f972af91ab884861b59ecfdfd7c3dae6"
}
}

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/090b314bec904ab78055d1a55519f99d/documents?acc_token=07c2a6ee8e0f4ca68b20cc2a36e79af5 HTTP/1.0
GET /api/2.3/contracts/112a2925d5f64355a04f78ae71e40add/documents?acc_token=c4c1e960ef11492b958715b14d4f4108 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/090b314bec904ab78055d1a55519f99d/documents/8c208728ebe24c3a85952d2f30206d72?download=f2bd83babcfe41a6b0a17c835593323e",
"url": "http://api-sandbox.openprocurement.org/api/2.3/contracts/112a2925d5f64355a04f78ae71e40add/documents/83e3070b4deb452b9d841f31be69e793?download=a7a3c0faebc8415694a876bc344f3dfe",
"format": "application/msword",
"documentOf": "tender",
"datePublished": "2016-05-06T16:20:19.096368+03:00",
"id": "8c208728ebe24c3a85952d2f30206d72",
"dateModified": "2016-05-06T16:20:19.096407+03:00"
"datePublished": "2016-05-06T19:38:49.357409+03:00",
"id": "83e3070b4deb452b9d841f31be69e793",
"dateModified": "2016-05-06T19:38:49.357448+03:00"
}
]
}
Expand Down
46 changes: 23 additions & 23 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/090b314bec904ab78055d1a55519f99d?acc_token=07c2a6ee8e0f4ca68b20cc2a36e79af5 HTTP/1.0
PATCH /api/2.3/contracts/112a2925d5f64355a04f78ae71e40add?acc_token=c4c1e960ef11492b958715b14d4f4108 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 34
Content-Type: application/json
Expand All @@ -23,30 +23,30 @@ Content-Type: application/json; charset=UTF-8
"documents": [
{
"title": "contract.doc",
"url": "http://api-sandbox.openprocurement.org/api/2.3/contracts/090b314bec904ab78055d1a55519f99d/documents/8c208728ebe24c3a85952d2f30206d72?download=f2bd83babcfe41a6b0a17c835593323e",
"url": "http://api-sandbox.openprocurement.org/api/2.3/contracts/112a2925d5f64355a04f78ae71e40add/documents/83e3070b4deb452b9d841f31be69e793?download=a7a3c0faebc8415694a876bc344f3dfe",
"format": "application/msword",
"documentOf": "tender",
"datePublished": "2016-05-06T16:20:19.096368+03:00",
"id": "8c208728ebe24c3a85952d2f30206d72",
"dateModified": "2016-05-06T16:20:19.096407+03:00"
"datePublished": "2016-05-06T19:38:49.357409+03:00",
"id": "83e3070b4deb452b9d841f31be69e793",
"dateModified": "2016-05-06T19:38:49.357448+03:00"
},
{
"title": "contract_additional_docs.doc",
"url": "http://api-sandbox.openprocurement.org/api/2.3/contracts/090b314bec904ab78055d1a55519f99d/documents/3f4d1dc40ca247d39ee82dd7c2d56c5a?download=9990d88d989d40cd97dc349f39363648",
"url": "http://api-sandbox.openprocurement.org/api/2.3/contracts/112a2925d5f64355a04f78ae71e40add/documents/c13e3f975380428f8859d5303a2291e7?download=282706bf41e444b49988f47e7a840956",
"format": "application/msword",
"documentOf": "tender",
"datePublished": "2016-05-06T16:20:19.275966+03:00",
"id": "3f4d1dc40ca247d39ee82dd7c2d56c5a",
"dateModified": "2016-05-06T16:20:19.276007+03:00"
"datePublished": "2016-05-06T19:38:49.559330+03:00",
"id": "c13e3f975380428f8859d5303a2291e7",
"dateModified": "2016-05-06T19:38:49.559384+03:00"
},
{
"title": "contract_additional_docs.doc",
"url": "http://api-sandbox.openprocurement.org/api/2.3/contracts/090b314bec904ab78055d1a55519f99d/documents/3f4d1dc40ca247d39ee82dd7c2d56c5a?download=eb7c247e1b5c407ba1715e84d9c61d4a",
"url": "http://api-sandbox.openprocurement.org/api/2.3/contracts/112a2925d5f64355a04f78ae71e40add/documents/c13e3f975380428f8859d5303a2291e7?download=a0f2d43bcfa24c06bd8d61ef700ebbc3",
"format": "application/msword",
"documentOf": "tender",
"datePublished": "2016-05-06T16:20:19.275966+03:00",
"id": "3f4d1dc40ca247d39ee82dd7c2d56c5a",
"dateModified": "2016-05-06T16:20:19.404881+03:00"
"datePublished": "2016-05-06T19:38:49.559330+03:00",
"id": "c13e3f975380428f8859d5303a2291e7",
"dateModified": "2016-05-06T19:38:49.700923+03:00"
}
],
"items": [
Expand All @@ -72,10 +72,10 @@ Content-Type: application/json; charset=UTF-8
"locality": "м. Київ"
},
"deliveryDate": {
"startDate": "2016-05-08T16:20:11.072105+03:00",
"endDate": "2016-05-11T16:20:11.072105+03:00"
"startDate": "2016-05-08T19:38:41.557380+03:00",
"endDate": "2016-05-11T19:38:41.557380+03:00"
},
"id": "5c1ce4b39e78439d854bf87891f16c6e",
"id": "438dca8a73c84dc2bf89a42dc53b9a47",
"unit": {
"code": "44617100-9",
"name": "item"
Expand Down Expand Up @@ -105,11 +105,11 @@ Content-Type: application/json; charset=UTF-8
}
],
"period": {
"startDate": "2016-05-06T16:20:18.629035+03:00",
"endDate": "2016-06-05T16:20:18.629085+03:00"
"startDate": "2016-05-06T19:38:48.936160+03:00",
"endDate": "2016-06-05T19:38:48.936217+03:00"
},
"dateSigned": "2016-05-06T16:20:17.973174+03:00",
"id": "090b314bec904ab78055d1a55519f99d",
"dateSigned": "2016-05-06T19:38:48.268149+03:00",
"id": "112a2925d5f64355a04f78ae71e40add",
"procuringEntity": {
"contactPoint": {
"name": "Державне управління справами",
Expand All @@ -132,9 +132,9 @@ Content-Type: application/json; charset=UTF-8
},
"contractID": "UA-2016-05-06-000001-1",
"owner": "broker",
"awardID": "217b01d307b24834ad81b4d988638ff5",
"dateModified": "2016-05-06T16:20:19.597933+03:00",
"tender_id": "b29adb69ecbf44b0baa4a90f38625a1f"
"awardID": "ef55ed1e521c41f1a9c950fd1f8689b0",
"dateModified": "2016-05-06T19:38:49.879608+03:00",
"tender_id": "f972af91ab884861b59ecfdfd7c3dae6"
}
}

18 changes: 9 additions & 9 deletions docs/source/tutorial/contract-view.http
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GET /api/2.3/contracts/090b314bec904ab78055d1a55519f99d HTTP/1.0
GET /api/2.3/contracts/112a2925d5f64355a04f78ae71e40add HTTP/1.0
Host: api-sandbox.openprocurement.org

Response: 200 OK
Expand Down Expand Up @@ -34,10 +34,10 @@ Content-Type: application/json; charset=UTF-8
"locality": "м. Київ"
},
"deliveryDate": {
"startDate": "2016-05-08T16:20:11.072105+03:00",
"endDate": "2016-05-11T16:20:11.072105+03:00"
"startDate": "2016-05-08T19:38:41.557380+03:00",
"endDate": "2016-05-11T19:38:41.557380+03:00"
},
"id": "5c1ce4b39e78439d854bf87891f16c6e",
"id": "438dca8a73c84dc2bf89a42dc53b9a47",
"unit": {
"code": "44617100-9",
"name": "item"
Expand Down Expand Up @@ -66,8 +66,8 @@ Content-Type: application/json; charset=UTF-8
}
}
],
"dateSigned": "2016-05-06T16:20:17.973174+03:00",
"id": "090b314bec904ab78055d1a55519f99d",
"dateSigned": "2016-05-06T19:38:48.268149+03:00",
"dateModified": "2016-05-06T19:38:48.553686+03:00",
"procuringEntity": {
"contactPoint": {
"name": "Державне управління справами",
Expand All @@ -90,9 +90,9 @@ Content-Type: application/json; charset=UTF-8
},
"contractID": "UA-2016-05-06-000001-1",
"owner": "broker",
"awardID": "217b01d307b24834ad81b4d988638ff5",
"dateModified": "2016-05-06T16:20:18.281193+03:00",
"tender_id": "b29adb69ecbf44b0baa4a90f38625a1f"
"awardID": "ef55ed1e521c41f1a9c950fd1f8689b0",
"id": "112a2925d5f64355a04f78ae71e40add",
"tender_id": "f972af91ab884861b59ecfdfd7c3dae6"
}
}

13 changes: 4 additions & 9 deletions docs/source/tutorial/contracts-listing-1.http
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,10 @@ Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
"next_page": {
"path": "/api/2.3/contracts?offset=2016-05-06T16%3A20%3A18.378361%2B03%3A00",
"uri": "http://api-sandbox.openprocurement.org/api/2.3/contracts?offset=2016-05-06T16%3A20%3A18.378361%2B03%3A00",
"offset": "2016-05-06T16:20:18.378361+03:00"
"path": "/api/2.3/contracts?offset=",
"uri": "http://api-sandbox.openprocurement.org/api/2.3/contracts?offset=",
"offset": ""
},
"data": [
{
"id": "090b314bec904ab78055d1a55519f99d",
"dateModified": "2016-05-06T16:20:18.378361+03:00"
}
]
"data": []
}

20 changes: 20 additions & 0 deletions docs/source/tutorial/contracts-listing-2.http
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
GET /api/2.3/contracts HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
"next_page": {
"path": "/api/2.3/contracts?offset=2016-05-06T19%3A38%3A48.858485%2B03%3A00",
"uri": "http://api-sandbox.openprocurement.org/api/2.3/contracts?offset=2016-05-06T19%3A38%3A48.858485%2B03%3A00",
"offset": "2016-05-06T19:38:48.858485+03:00"
},
"data": [
{
"id": "112a2925d5f64355a04f78ae71e40add",
"dateModified": "2016-05-06T19:38:48.858485+03:00"
}
]
}

26 changes: 13 additions & 13 deletions docs/source/tutorial/contracts-patch.http
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PATCH /api/2.3/contracts/090b314bec904ab78055d1a55519f99d?acc_token=07c2a6ee8e0f4ca68b20cc2a36e79af5 HTTP/1.0
PATCH /api/2.3/contracts/112a2925d5f64355a04f78ae71e40add?acc_token=c4c1e960ef11492b958715b14d4f4108 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 144
Content-Type: application/json
Expand All @@ -7,8 +7,8 @@ DATA:
{
"data": {
"period": {
"startDate": "2016-05-06T16:20:18.629035+03:00",
"endDate": "2016-06-05T16:20:18.629085+03:00"
"startDate": "2016-05-06T19:38:48.936160+03:00",
"endDate": "2016-06-05T19:38:48.936217+03:00"
},
"value": {
"amount": 438
Expand Down Expand Up @@ -49,10 +49,10 @@ Content-Type: application/json; charset=UTF-8
"locality": "м. Київ"
},
"deliveryDate": {
"startDate": "2016-05-08T16:20:11.072105+03:00",
"endDate": "2016-05-11T16:20:11.072105+03:00"
"startDate": "2016-05-08T19:38:41.557380+03:00",
"endDate": "2016-05-11T19:38:41.557380+03:00"
},
"id": "5c1ce4b39e78439d854bf87891f16c6e",
"id": "438dca8a73c84dc2bf89a42dc53b9a47",
"unit": {
"code": "44617100-9",
"name": "item"
Expand Down Expand Up @@ -82,11 +82,11 @@ Content-Type: application/json; charset=UTF-8
}
],
"period": {
"startDate": "2016-05-06T16:20:18.629035+03:00",
"endDate": "2016-06-05T16:20:18.629085+03:00"
"startDate": "2016-05-06T19:38:48.936160+03:00",
"endDate": "2016-06-05T19:38:48.936217+03:00"
},
"dateSigned": "2016-05-06T16:20:17.973174+03:00",
"id": "090b314bec904ab78055d1a55519f99d",
"dateSigned": "2016-05-06T19:38:48.268149+03:00",
"id": "112a2925d5f64355a04f78ae71e40add",
"procuringEntity": {
"contactPoint": {
"name": "Державне управління справами",
Expand All @@ -109,9 +109,9 @@ Content-Type: application/json; charset=UTF-8
},
"contractID": "UA-2016-05-06-000001-1",
"owner": "broker",
"awardID": "217b01d307b24834ad81b4d988638ff5",
"dateModified": "2016-05-06T16:20:18.728059+03:00",
"tender_id": "b29adb69ecbf44b0baa4a90f38625a1f"
"awardID": "ef55ed1e521c41f1a9c950fd1f8689b0",
"dateModified": "2016-05-06T19:38:49.026202+03:00",
"tender_id": "f972af91ab884861b59ecfdfd7c3dae6"
}
}

14 changes: 7 additions & 7 deletions docs/source/tutorial/example_contract.http
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GET /api/2.3/tenders/b29adb69ecbf44b0baa4a90f38625a1f/contracts/090b314bec904ab78055d1a55519f99d HTTP/1.0
GET /api/2.3/tenders/f972af91ab884861b59ecfdfd7c3dae6/contracts/112a2925d5f64355a04f78ae71e40add HTTP/1.0
Authorization: Basic YnJva2VyOg==
Host: api-sandbox.openprocurement.org

Expand Down Expand Up @@ -30,10 +30,10 @@ Content-Type: application/json; charset=UTF-8
"locality": "м. Київ"
},
"deliveryDate": {
"startDate": "2016-05-08T16:20:11.072105+03:00",
"endDate": "2016-05-11T16:20:11.072105+03:00"
"startDate": "2016-05-08T19:38:41.557380+03:00",
"endDate": "2016-05-11T19:38:41.557380+03:00"
},
"id": "5c1ce4b39e78439d854bf87891f16c6e",
"id": "438dca8a73c84dc2bf89a42dc53b9a47",
"unit": {
"code": "44617100-9",
"name": "item"
Expand Down Expand Up @@ -67,9 +67,9 @@ Content-Type: application/json; charset=UTF-8
"amount": 500.0,
"valueAddedTaxIncluded": true
},
"dateSigned": "2016-05-06T16:20:17.973174+03:00",
"awardID": "217b01d307b24834ad81b4d988638ff5",
"id": "090b314bec904ab78055d1a55519f99d",
"dateSigned": "2016-05-06T19:38:48.268149+03:00",
"awardID": "ef55ed1e521c41f1a9c950fd1f8689b0",
"id": "112a2925d5f64355a04f78ae71e40add",
"contractID": "UA-2016-05-06-000001-1"
}
}
Expand Down

0 comments on commit a7daadf

Please sign in to comment.