Skip to content

Commit

Permalink
update request examples
Browse files Browse the repository at this point in the history
  • Loading branch information
vmaksymiv committed May 6, 2016
1 parent 303ec41 commit 6facc6d
Show file tree
Hide file tree
Showing 13 changed files with 138 additions and 228 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/6fcb4217dba94b3bb4a0be2a4f9295e8?acc_token=c3519c536a6949a097b0917669859dc6 HTTP/1.0
PATCH /api/2.3/contracts/be333b5e2b744c46a98d833db05c7f28?acc_token=98846660ed4c42ca901926437178b306 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 30
Content-Type: application/json
Expand Down Expand Up @@ -38,10 +38,10 @@ Content-Type: application/json; charset=UTF-8
"locality": "м. Київ"
},
"deliveryDate": {
"startDate": "2016-05-08T13:05:00.557188+03:00",
"endDate": "2016-05-11T13:05:00.557188+03:00"
"startDate": "2016-05-08T13:24:44.735520+03:00",
"endDate": "2016-05-11T13:24:44.735520+03:00"
},
"id": "f1313c1c4d1b48e0977260ff43b180a0",
"id": "02e4c5f1ff5943449b2758082dfe1e14",
"unit": {
"code": "44617100-9",
"name": "item"
Expand Down Expand Up @@ -70,18 +70,18 @@ Content-Type: application/json; charset=UTF-8
}
}
],
"dateSigned": "2016-05-06T13:05:07.386234+03:00",
"id": "6fcb4217dba94b3bb4a0be2a4f9295e8",
"dateSigned": "2016-05-06T13:24:51.742218+03:00",
"id": "be333b5e2b744c46a98d833db05c7f28",
"value": {
"currency": "UAH",
"amount": 500.0,
"valueAddedTaxIncluded": true
},
"contractID": "UA-2016-05-06-000001-1",
"owner": "broker",
"awardID": "d74d7e2719c7439d9a26bef7177fac11",
"dateModified": "2016-05-06T13:05:07.976869+03:00",
"tender_id": "7bb7573b1cd04f8aa238da49ee9059cb"
"awardID": "0f8c519bac1e48c787440cb54dfada19",
"dateModified": "2016-05-06T13:24:52.342253+03:00",
"tender_id": "78bf608e144e454aa548eb588cb27f75"
}
}

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/6fcb4217dba94b3bb4a0be2a4f9295e8/credentials?acc_token=4254c2346dbf41a9b7729ef251d7d4a0 HTTP/1.0
PATCH /api/2.3/contracts/be333b5e2b744c46a98d833db05c7f28/credentials?acc_token=b7c44924ac5c435882aab616b9288fa8 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": "c3519c536a6949a097b0917669859dc6"
"token": "98846660ed4c42ca901926437178b306"
},
"data": {
"status": "draft",
Expand All @@ -35,10 +35,10 @@ Content-Type: application/json; charset=UTF-8
"locality": "м. Київ"
},
"deliveryDate": {
"startDate": "2016-05-08T13:05:00.557188+03:00",
"endDate": "2016-05-11T13:05:00.557188+03:00"
"startDate": "2016-05-08T13:24:44.735520+03:00",
"endDate": "2016-05-11T13:24:44.735520+03:00"
},
"id": "f1313c1c4d1b48e0977260ff43b180a0",
"id": "02e4c5f1ff5943449b2758082dfe1e14",
"unit": {
"code": "44617100-9",
"name": "item"
Expand Down Expand Up @@ -67,18 +67,18 @@ Content-Type: application/json; charset=UTF-8
}
}
],
"dateSigned": "2016-05-06T13:05:07.386234+03:00",
"id": "6fcb4217dba94b3bb4a0be2a4f9295e8",
"dateSigned": "2016-05-06T13:24:51.742218+03:00",
"id": "be333b5e2b744c46a98d833db05c7f28",
"value": {
"currency": "UAH",
"amount": 500.0,
"valueAddedTaxIncluded": true
},
"contractID": "UA-2016-05-06-000001-1",
"owner": "broker",
"awardID": "d74d7e2719c7439d9a26bef7177fac11",
"dateModified": "2016-05-06T13:05:07.780615+03:00",
"tender_id": "7bb7573b1cd04f8aa238da49ee9059cb"
"awardID": "0f8c519bac1e48c787440cb54dfada19",
"dateModified": "2016-05-06T13:24:52.127326+03:00",
"tender_id": "78bf608e144e454aa548eb588cb27f75"
}
}

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/6fcb4217dba94b3bb4a0be2a4f9295e8/documents?acc_token=c3519c536a6949a097b0917669859dc6 HTTP/1.0
GET /api/2.3/contracts/be333b5e2b744c46a98d833db05c7f28/documents?acc_token=98846660ed4c42ca901926437178b306 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/6fcb4217dba94b3bb4a0be2a4f9295e8/documents/085b12492dad438784bdad25ecea9c34?download=d52861ca683b448cb98a6d29cf0a1f61",
"url": "http://api-sandbox.openprocurement.org/api/2.3/contracts/be333b5e2b744c46a98d833db05c7f28/documents/fed2f3822d0849cb884efbc1a11e054a?download=531cd84ecc2e4e3ab4d4b34e8fb2acea",
"format": "application/msword",
"documentOf": "tender",
"datePublished": "2016-05-06T13:05:08.575843+03:00",
"id": "085b12492dad438784bdad25ecea9c34",
"dateModified": "2016-05-06T13:05:08.575885+03:00"
"datePublished": "2016-05-06T13:24:52.903177+03:00",
"id": "fed2f3822d0849cb884efbc1a11e054a",
"dateModified": "2016-05-06T13:24:52.903219+03:00"
}
]
}
Expand Down
47 changes: 23 additions & 24 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/6fcb4217dba94b3bb4a0be2a4f9295e8?acc_token=c3519c536a6949a097b0917669859dc6 HTTP/1.0
PATCH /api/2.3/contracts/be333b5e2b744c46a98d833db05c7f28?acc_token=98846660ed4c42ca901926437178b306 HTTP/1.0
Authorization: Basic YnJva2VyOg==
Content-Length: 34
Content-Type: application/json
Expand All @@ -18,33 +18,32 @@ Content-Type: application/json; charset=UTF-8
"documents": [
{
"title": "contract.doc",
"url": "http://api-sandbox.openprocurement.org/api/2.3/contracts/6fcb4217dba94b3bb4a0be2a4f9295e8/documents/085b12492dad438784bdad25ecea9c34?download=d52861ca683b448cb98a6d29cf0a1f61",
"url": "http://api-sandbox.openprocurement.org/api/2.3/contracts/be333b5e2b744c46a98d833db05c7f28/documents/fed2f3822d0849cb884efbc1a11e054a?download=531cd84ecc2e4e3ab4d4b34e8fb2acea",
"format": "application/msword",
"documentOf": "tender",
"datePublished": "2016-05-06T13:05:08.575843+03:00",
"id": "085b12492dad438784bdad25ecea9c34",
"dateModified": "2016-05-06T13:05:08.575885+03:00"
"datePublished": "2016-05-06T13:24:52.903177+03:00",
"id": "fed2f3822d0849cb884efbc1a11e054a",
"dateModified": "2016-05-06T13:24:52.903219+03:00"
},
{
"title": "contract_additional_docs.doc",
"url": "http://api-sandbox.openprocurement.org/api/2.3/contracts/6fcb4217dba94b3bb4a0be2a4f9295e8/documents/e5c0d24defe04c849626ae365ec8a2d2?download=afff2bf7f7c945ecaa37b0bb853d16fa",
"url": "http://api-sandbox.openprocurement.org/api/2.3/contracts/be333b5e2b744c46a98d833db05c7f28/documents/c7ee35bb64a84d8689f3572f82ee5e4e?download=af71c8990aa441f4960e44e6b320ff17",
"format": "application/msword",
"documentOf": "tender",
"datePublished": "2016-05-06T13:05:08.746551+03:00",
"id": "e5c0d24defe04c849626ae365ec8a2d2",
"dateModified": "2016-05-06T13:05:08.746596+03:00"
"datePublished": "2016-05-06T13:24:53.086187+03:00",
"id": "c7ee35bb64a84d8689f3572f82ee5e4e",
"dateModified": "2016-05-06T13:24:53.086234+03:00"
},
{
"title": "contract_additional_docs.doc",
"url": "http://api-sandbox.openprocurement.org/api/2.3/contracts/6fcb4217dba94b3bb4a0be2a4f9295e8/documents/e5c0d24defe04c849626ae365ec8a2d2?download=89d45ad994a9449181e953481e043561",
"url": "http://api-sandbox.openprocurement.org/api/2.3/contracts/be333b5e2b744c46a98d833db05c7f28/documents/c7ee35bb64a84d8689f3572f82ee5e4e?download=616adad657e441e2a1e86d1c66a65b5f",
"format": "application/msword",
"documentOf": "tender",
"datePublished": "2016-05-06T13:05:08.746551+03:00",
"id": "e5c0d24defe04c849626ae365ec8a2d2",
"dateModified": "2016-05-06T13:05:08.873422+03:00"
"datePublished": "2016-05-06T13:24:53.086187+03:00",
"id": "c7ee35bb64a84d8689f3572f82ee5e4e",
"dateModified": "2016-05-06T13:24:53.222639+03:00"
}
],
"title": "New Title",
"items": [
{
"description": "футляри до державних нагород",
Expand All @@ -68,10 +67,10 @@ Content-Type: application/json; charset=UTF-8
"locality": "м. Київ"
},
"deliveryDate": {
"startDate": "2016-05-08T13:05:00.557188+03:00",
"endDate": "2016-05-11T13:05:00.557188+03:00"
"startDate": "2016-05-08T13:24:44.735520+03:00",
"endDate": "2016-05-11T13:24:44.735520+03:00"
},
"id": "f1313c1c4d1b48e0977260ff43b180a0",
"id": "02e4c5f1ff5943449b2758082dfe1e14",
"unit": {
"code": "44617100-9",
"name": "item"
Expand Down Expand Up @@ -101,21 +100,21 @@ Content-Type: application/json; charset=UTF-8
}
],
"period": {
"startDate": "2016-05-06T13:05:08.093238+03:00",
"endDate": "2016-06-05T13:05:08.093324+03:00"
"startDate": "2016-05-06T13:24:52.380065+03:00",
"endDate": "2016-06-05T13:24:52.380104+03:00"
},
"dateSigned": "2016-05-06T13:24:51.742218+03:00",
"id": "be333b5e2b744c46a98d833db05c7f28",
"value": {
"currency": "UAH",
"amount": 438.0,
"valueAddedTaxIncluded": true
},
"id": "6fcb4217dba94b3bb4a0be2a4f9295e8",
"dateSigned": "2016-05-06T13:05:07.386234+03:00",
"contractID": "UA-2016-05-06-000001-1",
"owner": "broker",
"awardID": "d74d7e2719c7439d9a26bef7177fac11",
"dateModified": "2016-05-06T13:05:09.072182+03:00",
"tender_id": "7bb7573b1cd04f8aa238da49ee9059cb"
"awardID": "0f8c519bac1e48c787440cb54dfada19",
"dateModified": "2016-05-06T13:24:53.390648+03:00",
"tender_id": "78bf608e144e454aa548eb588cb27f75"
}
}

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/6fcb4217dba94b3bb4a0be2a4f9295e8 HTTP/1.0
GET /api/2.3/contracts/be333b5e2b744c46a98d833db05c7f28 HTTP/1.0
Host: api-sandbox.openprocurement.org

Response: 200 OK
Expand Down Expand Up @@ -29,10 +29,10 @@ Content-Type: application/json; charset=UTF-8
"locality": "м. Київ"
},
"deliveryDate": {
"startDate": "2016-05-08T13:05:00.557188+03:00",
"endDate": "2016-05-11T13:05:00.557188+03:00"
"startDate": "2016-05-08T13:24:44.735520+03:00",
"endDate": "2016-05-11T13:24:44.735520+03:00"
},
"id": "f1313c1c4d1b48e0977260ff43b180a0",
"id": "02e4c5f1ff5943449b2758082dfe1e14",
"unit": {
"code": "44617100-9",
"name": "item"
Expand Down Expand Up @@ -61,18 +61,18 @@ Content-Type: application/json; charset=UTF-8
}
}
],
"dateSigned": "2016-05-06T13:05:07.386234+03:00",
"id": "6fcb4217dba94b3bb4a0be2a4f9295e8",
"dateSigned": "2016-05-06T13:24:51.742218+03:00",
"id": "be333b5e2b744c46a98d833db05c7f28",
"value": {
"currency": "UAH",
"amount": 500.0,
"valueAddedTaxIncluded": true
},
"contractID": "UA-2016-05-06-000001-1",
"owner": "broker",
"awardID": "d74d7e2719c7439d9a26bef7177fac11",
"dateModified": "2016-05-06T13:05:07.673053+03:00",
"tender_id": "7bb7573b1cd04f8aa238da49ee9059cb"
"awardID": "0f8c519bac1e48c787440cb54dfada19",
"dateModified": "2016-05-06T13:24:52.028666+03:00",
"tender_id": "78bf608e144e454aa548eb588cb27f75"
}
}

10 changes: 5 additions & 5 deletions docs/source/tutorial/contracts-listing-1.http
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ Response: 200 OK
Content-Type: application/json; charset=UTF-8
{
"next_page": {
"path": "/api/2.3/contracts?offset=2016-05-06T13%3A05%3A07.780615%2B03%3A00",
"uri": "http://api-sandbox.openprocurement.org/api/2.3/contracts?offset=2016-05-06T13%3A05%3A07.780615%2B03%3A00",
"offset": "2016-05-06T13:05:07.780615+03:00"
"path": "/api/2.3/contracts?offset=2016-05-06T13%3A24%3A52.127326%2B03%3A00",
"uri": "http://api-sandbox.openprocurement.org/api/2.3/contracts?offset=2016-05-06T13%3A24%3A52.127326%2B03%3A00",
"offset": "2016-05-06T13:24:52.127326+03:00"
},
"data": [
{
"id": "6fcb4217dba94b3bb4a0be2a4f9295e8",
"dateModified": "2016-05-06T13:05:07.780615+03:00"
"id": "be333b5e2b744c46a98d833db05c7f28",
"dateModified": "2016-05-06T13:24:52.127326+03:00"
}
]
}
Expand Down

0 comments on commit 6facc6d

Please sign in to comment.