-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2112 from EDI-N/Kolya_ua
transport_renew
- Loading branch information
Showing
17 changed files
with
292 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
############################################################################################################################ | ||
**Дані транспортного засобу (об'єкт Transport)** | ||
############################################################################################################################ | ||
|
||
**JSON:** | ||
|
||
.. code:: json | ||
{ | ||
"number": "AA0000AA", | ||
"brand": "Тестовий траспорт", | ||
"model": "модель модель", | ||
"type": "Тип", | ||
"color": "брудний", | ||
"isTrailer": 0 | ||
} | ||
Таблиця 1 - Опис параметрів об'єкта **Transport** | ||
|
||
.. csv-table:: | ||
:file: for_csv/Transport.csv | ||
:widths: 1, 5, 12, 41 | ||
:header-rows: 1 | ||
:stub-columns: 0 | ||
|
||
------------------------- | ||
|
||
.. [#] Під визначенням колонки **Тип поля** мається на увазі скорочене позначення: | ||
* M (mandatory) — обов'язкові до заповнення поля; | ||
* O (optional) — необов'язкові (опціональні) до заповнення поля. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,174 @@ | ||
############################################################################################################################ | ||
**Дані знайдених транспортних засобів (масив об'єктів Transport)** | ||
############################################################################################################################ | ||
|
||
**JSON:** | ||
|
||
.. code:: json | ||
[ | ||
{ | ||
"id": 93, | ||
"number": "AA0000AA", | ||
"brand": "Тестовий траспорт", | ||
"model": "модель модель", | ||
"type": "Тип", | ||
"color": "брудний", | ||
"isTrailer": 1 | ||
}, | ||
{ | ||
"id": 104, | ||
"number": "AA0001AA", | ||
"brand": "Trailer", | ||
"model": "Модель", | ||
"type": "Trailer", | ||
"color": "lime", | ||
"isTrailer": 2 | ||
}, | ||
{ | ||
"id": 130, | ||
"number": "AA0020XH", | ||
"brand": "1", | ||
"model": "SCHMITZ", | ||
"type": "рефрижератор", | ||
"isTrailer": 0 | ||
}, | ||
{ | ||
"id": 150, | ||
"number": "AA0000", | ||
"brand": "vv", | ||
"model": "78", | ||
"type": "вантажний", | ||
"isTrailer": 2 | ||
}, | ||
{ | ||
"id": 265, | ||
"number": "AA0099BB", | ||
"brand": "hyundai", | ||
"type": "вантажний", | ||
"isTrailer": 0 | ||
}, | ||
{ | ||
"id": 266, | ||
"number": "AA0098AП", | ||
"brand": "Renault", | ||
"type": "грузовий", | ||
"isTrailer": 0 | ||
}, | ||
{ | ||
"id": 267, | ||
"number": "AA0002BA", | ||
"brand": "Hyundai", | ||
"type": "тестовий", | ||
"isTrailer": 0 | ||
}, | ||
{ | ||
"id": 273, | ||
"number": "AA0011AA", | ||
"brand": "тест", | ||
"model": "тест", | ||
"type": "тягач", | ||
"color": "Синій, Текст,ТекстекстТекстТекстТекст", | ||
"isTrailer": 0 | ||
}, | ||
{ | ||
"id": 274, | ||
"number": "AA0011BB", | ||
"brand": "тест", | ||
"model": "тест", | ||
"type": "тягач", | ||
"isTrailer": 0 | ||
}, | ||
{ | ||
"id": 431, | ||
"number": "AA0003AA", | ||
"brand": "Ferrari", | ||
"model": "F40", | ||
"type": "cabriolet", | ||
"color": "yellow", | ||
"isTrailer": 0 | ||
}, | ||
{ | ||
"id": 435, | ||
"number": "AA0000BB", | ||
"brand": "Марка", | ||
"model": "Модель", | ||
"type": "Тип", | ||
"isTrailer": 0 | ||
}, | ||
{ | ||
"id": 457, | ||
"number": "AA0000123AA", | ||
"brand": "Mazda", | ||
"model": "R8", | ||
"type": "Fast", | ||
"color": "Black", | ||
"isTrailer": 0 | ||
}, | ||
{ | ||
"id": 495, | ||
"number": "AA00000AA", | ||
"brand": "Ferrari", | ||
"model": "F40", | ||
"type": "cabriolet", | ||
"color": "yellow", | ||
"isTrailer": 0 | ||
}, | ||
{ | ||
"id": 501, | ||
"number": "AA001100AA", | ||
"brand": "test1", | ||
"model": "test2", | ||
"type": "test3", | ||
"isTrailer": 0 | ||
}, | ||
{ | ||
"id": 575, | ||
"number": "AA000001AB", | ||
"brand": "testMarka", | ||
"model": "testModel", | ||
"type": "testTypeCar", | ||
"color": "testColorCar", | ||
"isTrailer": 0 | ||
}, | ||
{ | ||
"id": 577, | ||
"number": "AA000002BB", | ||
"brand": "testMarka2", | ||
"model": "testModel2", | ||
"type": "testType2", | ||
"isTrailer": 1 | ||
}, | ||
{ | ||
"id": 579, | ||
"number": "AA000003BB", | ||
"brand": "testMarka3", | ||
"model": "testModel3", | ||
"type": "testType3", | ||
"isTrailer": 1 | ||
}, | ||
{ | ||
"id": 613, | ||
"number": "AA00001AA", | ||
"brand": "AUTO", | ||
"model": "AUTO", | ||
"type": "AUTO", | ||
"color": "AUTO", | ||
"isTrailer": 0 | ||
} | ||
] | ||
Таблиця 1 - Опис параметрів об'єкта **Transport** | ||
|
||
.. csv-table:: | ||
:file: for_csv/Transport.csv | ||
:widths: 1, 5, 12, 41 | ||
:header-rows: 1 | ||
:stub-columns: 0 | ||
|
||
------------------------- | ||
|
||
.. [#] Під визначенням колонки **Тип поля** мається на увазі скорочене позначення: | ||
* M (mandatory) — обов'язкові до заповнення поля; | ||
* O (optional) — необов'язкові (опціональні) до заповнення поля. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Параметр,Тип [1]_,Формат,Опис | ||
.. _Transport:,,Об'єкт **Transport**, | ||
id,,long,ідентифікатор транспортного засобу | ||
number,M,String,номер транспортного засобу (у літеросполученні допускається лише латинниця (case sensitive)) в форматі «AA0001AA» | ||
brand,M,String,марка транспортного засобу («Hyundai») | ||
model,M,String,модель транспортного засобу («HD 78») | ||
type,M,String,тип транспортного засобу («рефрижератор») | ||
color,O,String,колір транспортного засобу | ||
length,O,String,довжина транспортного засобу | ||
width,O,String,ширина транспортного засобу | ||
height,O,String,висота транспортного засобу | ||
weight,O,String,вага транспортного засобу | ||
isTrailer,O,int,"відмітка про тип транспортного засобу: | ||
|
||
* 0 - авто (за замовчуванням) | ||
* 1 - причіп | ||
* 2 - напівпричіп" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
**URL** , | ||
Метод запиту , GET | ||
URL запиту ,**/api/oas/v2/transport?transport_number=AA00** | ||
URL параметри ,"**transport_number** (обов'язково) String - номер транспортного засобу (у літеросполученні допускається лише латинниця) від 4 символів. Так номер **AA0001AA** користувач може знайти за ``AA00, 0001, 01AA, ...``" | ||
**Headers** , | ||
Authorization ,"**SID** - токен, отриманий при `авторизації <https://wiki.edin.ua/uk/latest/integration_2_0/APIv2/Methods/Authorization.html>`__" | ||
Content-Type , *application/json* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
######################################################################################################### | ||
**Пошук транспортного засобу з Вашого довідника транспортних засобів** | ||
######################################################################################################### | ||
|
||
Для роботи з цим методом користувач повинен бути `авторизованим <https://wiki.edin.ua/uk/latest/integration_2_0/APIv2/Methods/Authorization.html>`__. | ||
|
||
.. csv-table:: | ||
:file: GetTransport.csv | ||
:widths: 10, 41 | ||
:stub-columns: 0 | ||
|
||
**RESPONSE** | ||
|
||
У тілі **відповіді** з довідника передаються дані знайдених `транспортних засобів <https://wiki.edin.ua/uk/latest/API_ETTNv3_1/Methods/EveryBody/Transports.html>`__ (масив об'єктів Transport). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
**URL** , | ||
Метод запиту , POST | ||
URL запиту ,**/api/oas/v2/transport** | ||
**Headers** , | ||
Authorization ,"**SID** - токен, отриманий при `авторизації <https://wiki.edin.ua/uk/latest/integration_2_0/APIv2/Methods/Authorization.html>`__" | ||
Content-Type , *application/json* | ||
**REQUEST** , | ||
JSON Body ,"В тілі запиту методу (в json форматі) передаються дані нового `транспортного засобу <https://wiki.edin.ua/uk/latest/API_ETTNv3_1/Methods/EveryBody/Transport.html>`__ (об'єкт Transport)." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
###################################################################################### | ||
**Додати в довідник (створити) новий транспортний засіб** | ||
###################################################################################### | ||
|
||
Для роботи з цим методом користувач повинен бути `авторизованим <https://wiki.edin.ua/uk/latest/integration_2_0/APIv2/Methods/Authorization.html>`__. | ||
|
||
.. csv-table:: | ||
:file: PostTransport.csv | ||
:widths: 10, 41 | ||
:stub-columns: 0 | ||
|
||
**RESPONSE** | ||
|
||
Код сервера 200 (ok). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.