Skip to content

Commit ce82ecb

Browse files
committed
Update of tutorial samples with API 0.3 responses
1 parent f187e31 commit ce82ecb

18 files changed

Lines changed: 226 additions & 148 deletions
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
$ http http://api-sandbox.openprocurement.org/api/0/tenders/b65397298b2e4d9b987adf576d13b9f5/bidders/8b10e0c38c0747739515b420123d94a8/documents
2-
GET /api/0/tenders/b65397298b2e4d9b987adf576d13b9f5/bidders/8b10e0c38c0747739515b420123d94a8/documents HTTP/1.1
1+
$ http http://api-sandbox.openprocurement.org/api/0/tenders/e1c4e54be2314868bab3ecfcf6241cba/bids/991bfd3d936b43c4bd129b3a23c4fa85/documents
2+
GET /api/0/tenders/e1c4e54be2314868bab3ecfcf6241cba/bids/991bfd3d936b43c4bd129b3a23c4fa85/documents HTTP/1.1
33

44

55

@@ -9,12 +9,12 @@ Content-Type: application/json; charset=UTF-8
99
{
1010
"data": [
1111
{
12-
"datePublished": "2014-11-08T00:09:37.274444",
12+
"dateModified": "2014-11-22T04:28:01.016428+02:00",
13+
"datePublished": "2014-11-22T04:28:01.016385+02:00",
1314
"format": "text/plain",
14-
"id": "16a9eab495de4f1ebb747a0804384422",
15-
"modified": "2014-11-08T00:09:37.274477",
15+
"id": "619d3552bb984221a06977b00caa6388",
1616
"title": "Proposal.pdf",
17-
"url": "http://api-sandbox.openprocurement.org/api/0/tenders/b65397298b2e4d9b987adf576d13b9f5/bidders/8b10e0c38c0747739515b420123d94a8/documents/16a9eab495de4f1ebb747a0804384422?download=b18c49f26d7b4e5a988f8955552b12fd"
17+
"url": "http://api-sandbox.openprocurement.org/api/0/tenders/e1c4e54be2314868bab3ecfcf6241cba/bids/991bfd3d936b43c4bd129b3a23c4fa85/documents/619d3552bb984221a06977b00caa6388?download=56d715375f374153be706e74c1b983b6"
1818
}
1919
]
2020
}
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
$ http http://api-sandbox.openprocurement.org/api/0/tenders/f66b5a7d00504245b26961bda8d90ba6
2-
GET /api/0/tenders/f66b5a7d00504245b26961bda8d90ba6 HTTP/1.1
1+
$ http http://api-sandbox.openprocurement.org/api/0/tenders/ad41df97f2364911a27a7c744a8e3e62
2+
GET /api/0/tenders/ad41df97f2364911a27a7c744a8e3e62 HTTP/1.1
33

44

55

@@ -8,9 +8,12 @@ Content-Type: application/json; charset=UTF-8
88

99
{
1010
"data": {
11-
"id": "f66b5a7d00504245b26961bda8d90ba6",
12-
"modified": "2014-11-08T00:09:28.530198",
11+
"dateModified": "2014-11-22T04:27:50.716220+02:00",
12+
"enquiryPeriod": {
13+
"startDate": "2014-11-22T04:27:50.716220+02:00"
14+
},
15+
"id": "ad41df97f2364911a27a7c744a8e3e62",
1316
"status": "enquiries",
14-
"tenderID": "UA-f66b5a7d00504245b26961bda8d90ba6"
17+
"tenderID": "UA-ad41df97f2364911a27a7c744a8e3e62"
1518
}
1619
}

docs/source/tutorial/confirm-qualification.http

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
$ http -j POST http://api-sandbox.openprocurement.org/api/0/tenders/b65397298b2e4d9b987adf576d13b9f5/awards data:={"awardStatus":"pending"}
2-
POST /api/0/tenders/b65397298b2e4d9b987adf576d13b9f5/awards HTTP/1.1
1+
$ http -j POST http://api-sandbox.openprocurement.org/api/0/tenders/d2d03d6abc5e49708e73b97236b61945/awards data:={"awardStatus":"pending"}
2+
POST /api/0/tenders/d2d03d6abc5e49708e73b97236b61945/awards HTTP/1.1
33
Content-Type: application/json; charset=utf-8
44

55
{
@@ -13,8 +13,8 @@ Content-Type: application/json; charset=UTF-8
1313

1414
{
1515
"data": {
16-
"awardDate": "2014-11-08T00:09:38.405176",
17-
"awardID": "013c5278db3d4ef7a3fa1452cbd0ab69",
16+
"awardDate": "2014-11-18T14:06:41.505869+00:00",
17+
"awardID": "4bf007cb7e424ec09c71ccc809393e10",
1818
"awardStatus": "pending"
1919
}
2020
}

docs/source/tutorial/create-tender-procuringEntity.http

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,28 @@ Content-Type: application/json; charset=utf-8
1212
"region": "м. Вінниця",
1313
"streetAddress": "вул. Стахурського. 22"
1414
},
15-
"id": {
16-
"name": "Заклад \"Загальноосвітня школа І-ІІІ ступенів № 10 Вінницької міської ради\"",
15+
"identifier": {
16+
"id": "21725150",
17+
"legalName": "Заклад \"Загальноосвітня школа І-ІІІ ступенів № 10 Вінницької міської ради\"",
1718
"scheme": "https://ns.openprocurement.org/ua/edrpou",
18-
"uid": "21725150",
1919
"uri": "http://sch10.edu.vn.ua/"
20-
}
20+
},
21+
"name": "ЗОСШ #10 м.Вінниці"
2122
}
2223
}
2324
}
2425

2526
HTTP/1.1 201 Created
2627
Content-Type: application/json; charset=UTF-8
27-
Location: http://api-sandbox.openprocurement.org/api/0/tenders/b65397298b2e4d9b987adf576d13b9f5
28+
Location: http://api-sandbox.openprocurement.org/api/0/tenders/e1c4e54be2314868bab3ecfcf6241cba
2829

2930
{
3031
"data": {
31-
"id": "b65397298b2e4d9b987adf576d13b9f5",
32-
"modified": "2014-11-08T00:09:30.047639",
32+
"dateModified": "2014-11-22T04:27:52.011949+02:00",
33+
"enquiryPeriod": {
34+
"startDate": "2014-11-22T04:27:52.011949+02:00"
35+
},
36+
"id": "e1c4e54be2314868bab3ecfcf6241cba",
3337
"procuringEntity": {
3438
"address": {
3539
"countryName": "Україна",
@@ -38,14 +42,15 @@ Location: http://api-sandbox.openprocurement.org/api/0/tenders/b65397298b2e4d9b9
3842
"region": "м. Вінниця",
3943
"streetAddress": "вул. Стахурського. 22"
4044
},
41-
"id": {
42-
"name": "Заклад \"Загальноосвітня школа І-ІІІ ступенів № 10 Вінницької міської ради\"",
45+
"identifier": {
46+
"id": "21725150",
47+
"legalName": "Заклад \"Загальноосвітня школа І-ІІІ ступенів № 10 Вінницької міської ради\"",
4348
"scheme": "https://ns.openprocurement.org/ua/edrpou",
44-
"uid": "21725150",
4549
"uri": "http://sch10.edu.vn.ua/"
46-
}
50+
},
51+
"name": "ЗОСШ #10 м.Вінниці"
4752
},
4853
"status": "enquiries",
49-
"tenderID": "UA-b65397298b2e4d9b987adf576d13b9f5"
54+
"tenderID": "UA-e1c4e54be2314868bab3ecfcf6241cba"
5055
}
5156
}

docs/source/tutorial/initial-tender-listing.http

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Content-Type: application/json; charset=UTF-8
99
{
1010
"data": [],
1111
"next_page": {
12-
"offset": "2014-11-08T00:09:27.097664",
13-
"path": "/api/0/tenders?offset=2014-11-08T00%3A09%3A27.097664",
14-
"uri": "http://api-sandbox.openprocurement.org/api/0/tenders?offset=2014-11-08T00%3A09%3A27.097664"
12+
"offset": "2014-11-22T04:27:49.300971+02:00",
13+
"path": "/api/0/tenders?offset=2014-11-22T04%3A27%3A49.300971%2B02%3A00",
14+
"uri": "http://api-sandbox.openprocurement.org/api/0/tenders?offset=2014-11-22T04%3A27%3A49.300971%2B02%3A00"
1515
}
1616
}

docs/source/tutorial/patch-items-value-periods.http

Lines changed: 44 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,44 @@
1-
$ http -j PATCH http://api-sandbox.openprocurement.org/api/0/tenders/b65397298b2e4d9b987adf576d13b9f5 data:=@./school-tender-patch.json
2-
PATCH /api/0/tenders/b65397298b2e4d9b987adf576d13b9f5 HTTP/1.1
1+
$ http -j PATCH http://api-sandbox.openprocurement.org/api/0/tenders/e1c4e54be2314868bab3ecfcf6241cba data:=@./school-tender-patch.json
2+
PATCH /api/0/tenders/e1c4e54be2314868bab3ecfcf6241cba HTTP/1.1
33
Content-Type: application/json; charset=utf-8
44

55
{
66
"data": {
77
"enquiryPeriod": {
88
"endDate": "2015-05-29T00:00:00"
99
},
10-
"itemsToBeProcured": [
10+
"items": [
1111
{
12-
"additionalClassification": [
12+
"additionalClassifications": [
1313
{
1414
"description": "Послуги шкільних їдалень",
1515
"id": "55.51.10.300",
1616
"scheme": "ДКПП"
1717
}
1818
],
19-
"description": "Послуги шкільних їдалень",
20-
"primaryClassification": {
19+
"classification": {
2120
"description": "Послуги з харчування у школах",
2221
"id": "55523100-3",
2322
"scheme": "CPV"
2423
},
24+
"description": "Послуги шкільних їдалень",
2525
"quantity": 5,
26-
"unitOfMeasure": "item"
26+
"unit": {
27+
"name": "item"
28+
}
2729
}
2830
],
31+
"minimalStep": {
32+
"amount": 35000,
33+
"currency": "UAH",
34+
"valueAddedTaxIncluded": true
35+
},
2936
"tenderPeriod": {
3037
"endDate": "2015-06-07T10:00:00",
3138
"startDate": "2014-11-03T00:00:00"
3239
},
33-
"totalValue": {
34-
"amount": 50000,
40+
"value": {
41+
"amount": 500000,
3542
"currency": "UAH",
3643
"valueAddedTaxIncluded": true
3744
}
@@ -43,34 +50,38 @@ Content-Type: application/json; charset=UTF-8
4350

4451
{
4552
"data": {
53+
"dateModified": "2014-11-22T04:27:52.922493+02:00",
4654
"enquiryPeriod": {
47-
"endDate": "2015-05-29T00:00:00.000000",
48-
"startDate": null
55+
"endDate": "2015-05-29T00:00:00+02:02",
56+
"startDate": "2014-11-22T04:27:52.011949+02:00"
4957
},
50-
"id": "b65397298b2e4d9b987adf576d13b9f5",
51-
"itemsToBeProcured": [
58+
"id": "e1c4e54be2314868bab3ecfcf6241cba",
59+
"items": [
5260
{
53-
"additionalClassification": [
61+
"additionalClassifications": [
5462
{
5563
"description": "Послуги шкільних їдалень",
5664
"id": "55.51.10.300",
57-
"scheme": "ДКПП",
58-
"uri": null
65+
"scheme": "ДКПП"
5966
}
6067
],
61-
"description": "Послуги шкільних їдалень",
62-
"primaryClassification": {
68+
"classification": {
6369
"description": "Послуги з харчування у школах",
6470
"id": "55523100-3",
65-
"scheme": "CPV",
66-
"uri": null
71+
"scheme": "CPV"
6772
},
73+
"description": "Послуги шкільних їдалень",
6874
"quantity": 5,
69-
"unitOfMeasure": "item",
70-
"valuePerUnit": null
75+
"unit": {
76+
"name": "item"
77+
}
7178
}
7279
],
73-
"modified": "2014-11-08T00:09:31.090792",
80+
"minimalStep": {
81+
"amount": 35000.0,
82+
"currency": "UAH",
83+
"valueAddedTaxIncluded": true
84+
},
7485
"procuringEntity": {
7586
"address": {
7687
"countryName": "Україна",
@@ -79,21 +90,22 @@ Content-Type: application/json; charset=UTF-8
7990
"region": "м. Вінниця",
8091
"streetAddress": "вул. Стахурського. 22"
8192
},
82-
"id": {
83-
"name": "Заклад \"Загальноосвітня школа І-ІІІ ступенів № 10 Вінницької міської ради\"",
93+
"identifier": {
94+
"id": "21725150",
95+
"legalName": "Заклад \"Загальноосвітня школа І-ІІІ ступенів № 10 Вінницької міської ради\"",
8496
"scheme": "https://ns.openprocurement.org/ua/edrpou",
85-
"uid": "21725150",
8697
"uri": "http://sch10.edu.vn.ua/"
87-
}
98+
},
99+
"name": "ЗОСШ #10 м.Вінниці"
88100
},
89101
"status": "enquiries",
90-
"tenderID": "UA-b65397298b2e4d9b987adf576d13b9f5",
102+
"tenderID": "UA-e1c4e54be2314868bab3ecfcf6241cba",
91103
"tenderPeriod": {
92-
"endDate": "2015-06-07T10:00:00.000000",
93-
"startDate": "2014-11-03T00:00:00.000000"
104+
"endDate": "2015-06-07T10:00:00+02:02",
105+
"startDate": "2014-11-03T00:00:00+02:02"
94106
},
95-
"totalValue": {
96-
"amount": 50000.0,
107+
"value": {
108+
"amount": 500000.0,
97109
"currency": "UAH",
98110
"valueAddedTaxIncluded": true
99111
}
Lines changed: 61 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,73 @@
1-
$ http -j POST http://api-sandbox.openprocurement.org/api/0/tenders/b65397298b2e4d9b987adf576d13b9f5/bidders data:={}
2-
POST /api/0/tenders/b65397298b2e4d9b987adf576d13b9f5/bidders HTTP/1.1
1+
$ http -j POST http://api-sandbox.openprocurement.org/api/0/tenders/e1c4e54be2314868bab3ecfcf6241cba/bids data:=@./catering-bid.json
2+
POST /api/0/tenders/e1c4e54be2314868bab3ecfcf6241cba/bids HTTP/1.1
33
Content-Type: application/json; charset=utf-8
44

55
{
6-
"data": {}
6+
"data": {
7+
"tenderers": [
8+
{
9+
"address": {
10+
"countryName": "Україна",
11+
"locality": "м. Вінниця",
12+
"postalCode": "21100",
13+
"region": "м. Вінниця",
14+
"streetAddress": "вул. Островського, 33"
15+
},
16+
"contactPoint": {
17+
"email": "soleksuk@gmail.com",
18+
"name": "Сергій Олексюк",
19+
"telephone": "+380 (432) 21-69-30"
20+
},
21+
"identifier": {
22+
"id": "13313462",
23+
"legalName": "Державне комунальне підприємство громадського харчування «Школяр»",
24+
"scheme": "https://ns.openprocurement.org/ua/edrpou",
25+
"uri": "http://sch10.edu.vn.ua/"
26+
},
27+
"name": "ДКП «Школяр»"
28+
}
29+
],
30+
"value": {
31+
"amount": 475000
32+
}
33+
}
734
}
835

936
HTTP/1.1 201 Created
1037
Content-Type: application/json; charset=UTF-8
11-
Location: http://api-sandbox.openprocurement.org/api/0/tenders/b65397298b2e4d9b987adf576d13b9f5/bidders/8b10e0c38c0747739515b420123d94a8
38+
Location: http://api-sandbox.openprocurement.org/api/0/tenders/e1c4e54be2314868bab3ecfcf6241cba/bids/991bfd3d936b43c4bd129b3a23c4fa85
1239

1340
{
1441
"data": {
15-
"date": "2014-11-08T00:09:36.418180",
16-
"id": "8b10e0c38c0747739515b420123d94a8"
42+
"date": "2014-11-22T04:28:00.219641+02:00",
43+
"id": "991bfd3d936b43c4bd129b3a23c4fa85",
44+
"tenderers": [
45+
{
46+
"address": {
47+
"countryName": "Україна",
48+
"locality": "м. Вінниця",
49+
"postalCode": "21100",
50+
"region": "м. Вінниця",
51+
"streetAddress": "вул. Островського, 33"
52+
},
53+
"contactPoint": {
54+
"email": "soleksuk@gmail.com",
55+
"name": "Сергій Олексюк",
56+
"telephone": "+380 (432) 21-69-30"
57+
},
58+
"identifier": {
59+
"id": "13313462",
60+
"legalName": "Державне комунальне підприємство громадського харчування «Школяр»",
61+
"scheme": "https://ns.openprocurement.org/ua/edrpou",
62+
"uri": "http://sch10.edu.vn.ua/"
63+
},
64+
"name": "ДКП «Школяр»"
65+
}
66+
],
67+
"value": {
68+
"amount": 475000.0,
69+
"currency": "UAH",
70+
"valueAddedTaxIncluded": true
71+
}
1772
}
1873
}
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
$ http http://api-sandbox.openprocurement.org/api/0/tenders/b65397298b2e4d9b987adf576d13b9f5/documents
2-
GET /api/0/tenders/b65397298b2e4d9b987adf576d13b9f5/documents HTTP/1.1
1+
$ http http://api-sandbox.openprocurement.org/api/0/tenders/e1c4e54be2314868bab3ecfcf6241cba/documents
2+
GET /api/0/tenders/e1c4e54be2314868bab3ecfcf6241cba/documents HTTP/1.1
33

44

55

@@ -9,20 +9,20 @@ Content-Type: application/json; charset=UTF-8
99
{
1010
"data": [
1111
{
12-
"datePublished": "2014-11-08T00:09:32.514615",
12+
"dateModified": "2014-11-22T04:27:54.268654+02:00",
13+
"datePublished": "2014-11-22T04:27:54.268610+02:00",
1314
"format": "text/plain",
14-
"id": "bab5d3c784314800aee9aa7c0b01730c",
15-
"modified": "2014-11-08T00:09:32.514648",
15+
"id": "7c98d9830fee4dcabc4e470afb9add7e",
1616
"title": "Notice.pdf",
17-
"url": "http://api-sandbox.openprocurement.org/api/0/tenders/b65397298b2e4d9b987adf576d13b9f5/documents/bab5d3c784314800aee9aa7c0b01730c?download=e0061dc88a16413c805aa14f84554dfc"
17+
"url": "http://api-sandbox.openprocurement.org/api/0/tenders/e1c4e54be2314868bab3ecfcf6241cba/documents/7c98d9830fee4dcabc4e470afb9add7e?download=8d7b8ef98462408c9cb824c4168f3a5b"
1818
},
1919
{
20-
"datePublished": "2014-11-08T00:09:33.912790",
20+
"dateModified": "2014-11-22T04:27:55.536314+02:00",
21+
"datePublished": "2014-11-22T04:27:55.536271+02:00",
2122
"format": "text/plain",
22-
"id": "9f0828ca0769401bb6965fdf8f363a12",
23-
"modified": "2014-11-08T00:09:33.912822",
23+
"id": "31da6e5d23464cff9e5f016871865480",
2424
"title": "AwardCriteria.pdf",
25-
"url": "http://api-sandbox.openprocurement.org/api/0/tenders/b65397298b2e4d9b987adf576d13b9f5/documents/9f0828ca0769401bb6965fdf8f363a12?download=ded38f8ffd7e4fd0bfbbe33dcaff0e1c"
25+
"url": "http://api-sandbox.openprocurement.org/api/0/tenders/e1c4e54be2314868bab3ecfcf6241cba/documents/31da6e5d23464cff9e5f016871865480?download=dd718ccc5033495b82e36d9efcef5882"
2626
}
2727
]
2828
}

0 commit comments

Comments
 (0)