-
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 #2055 from EDI-N/Kolya_ua
api_CertificateV2
- Loading branch information
Showing
32 changed files
with
678 additions
and
26 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
8 changes: 8 additions & 0 deletions
8
docs/Certificate/EDIN_2_0/APIv2/Methods/ArchiveCertificate.csv
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** , | ||
Метод запиту , PUT | ||
URL запиту ,**/api/ecs/archive?gln=9864232613879&uuid=3ff444f4-7594-4a43-a151-90e14ee92b0c** | ||
URL параметри ,"**gln** (обов'язково) String - GLN власної Компанії; | ||
|
||
**uuid** (обов'язково) UUID - унікальний ідентифікатор сертифіката" | ||
**Headers** , | ||
Authorization ,"**SID** - токен, отриманий при `авторизації <https://wiki.edin.ua/uk/latest/integration_2_0/APIv2/Methods/Authorization.html>`__" |
23 changes: 23 additions & 0 deletions
23
docs/Certificate/EDIN_2_0/APIv2/Methods/ArchiveCertificate.rst
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,23 @@ | ||
######################################################################################################### | ||
**Архівувати / розархівувати сертифікат** | ||
######################################################################################################### | ||
|
||
Для роботи з цим методом користувач повинен бути `авторизованим <https://wiki.edin.ua/uk/latest/integration_2_0/APIv2/Methods/Authorization.html>`__. | ||
|
||
.. note:: | ||
Архівувати можливо лише опубліковані сертифікати з обмеженим доступом! | ||
|
||
.. hint:: | ||
Дія "архівувати" / "розархівувати" залежить від того, де перебуває сертифікат до виконання метода: | ||
|
||
* якщо сертифікат в **Архіві**, то виконається розархівування; | ||
* якщо сертифікат в **Опублікованих**, то виконається архівування. | ||
|
||
.. csv-table:: | ||
:file: ArchiveCertificate.csv | ||
:widths: 10, 41 | ||
:stub-columns: 0 | ||
|
||
**RESPONSE** | ||
|
||
Код сервера 200 (ok). |
12 changes: 12 additions & 0 deletions
12
docs/Certificate/EDIN_2_0/APIv2/Methods/CertificateBodyDel.csv
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,12 @@ | ||
**URL** , | ||
Метод запиту , DELETE | ||
URL запиту ,**/api/ecs/body?gln=9864232613879&uuid=3ff444f4-7594-4a43-a151-90e14ee92b0c&body_type=1** | ||
URL параметри ,"**gln** (обов'язково) String - GLN власної Компанії; | ||
|
||
**uuid** (обов'язково) UUID - унікальний ідентифікатор сертифіката | ||
|
||
**body_type** (обов'язково) int - тип тіла: | ||
|
||
* 1 - вкладення до сертифіката" | ||
**Headers** , | ||
Authorization ,"**SID** - токен, отриманий при `авторизації <https://wiki.edin.ua/uk/latest/integration_2_0/APIv2/Methods/Authorization.html>`__" |
16 changes: 16 additions & 0 deletions
16
docs/Certificate/EDIN_2_0/APIv2/Methods/CertificateBodyDel.rst
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,16 @@ | ||
######################################################################################################### | ||
**Видалити всі вкладення сертифіката** | ||
######################################################################################################### | ||
|
||
Для роботи з цим методом користувач повинен бути `авторизованим <https://wiki.edin.ua/uk/latest/integration_2_0/APIv2/Methods/Authorization.html>`__. | ||
|
||
.. csv-table:: | ||
:file: CertificateBodyDel.csv | ||
:widths: 10, 41 | ||
:stub-columns: 0 | ||
|
||
**RESPONSE** | ||
|
||
Код сервера 200 (ok). | ||
|
||
|
13 changes: 13 additions & 0 deletions
13
docs/Certificate/EDIN_2_0/APIv2/Methods/CertificateBodyDownload.csv
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,13 @@ | ||
**URL** , | ||
Метод запиту , GET | ||
URL запиту ,**/api/ecs/body/download?gln=9864232613879&uuid=3ff444f4-7594-4a43-a151-90e14ee92b0c&body_type=1** | ||
URL параметри ,"**gln** (обов'язково) String - GLN власної Компанії; | ||
|
||
**uuid** (обов'язково) UUID - унікальний ідентифікатор сертифіката | ||
|
||
**body_type** (обов'язково) int - тип тіла: | ||
|
||
* 1 - вкладення до сертифіката" | ||
**Headers** , | ||
Authorization ,"**SID** - токен, отриманий при `авторизації <https://wiki.edin.ua/uk/latest/integration_2_0/APIv2/Methods/Authorization.html>`__" | ||
Content-Type , application/pdf |
16 changes: 16 additions & 0 deletions
16
docs/Certificate/EDIN_2_0/APIv2/Methods/CertificateBodyDownload.rst
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,16 @@ | ||
######################################################################################################### | ||
**Отримати вкладення до сертифіката в PDF** | ||
######################################################################################################### | ||
|
||
Для роботи з цим методом користувач повинен бути `авторизованим <https://wiki.edin.ua/uk/latest/integration_2_0/APIv2/Methods/Authorization.html>`__. | ||
|
||
.. csv-table:: | ||
:file: CertificateBodyDownload.csv | ||
:widths: 10, 41 | ||
:stub-columns: 0 | ||
|
||
**RESPONSE** | ||
|
||
У тілі **відповіді** передається pdf файл з вкладеннями. | ||
|
||
|
12 changes: 12 additions & 0 deletions
12
docs/Certificate/EDIN_2_0/APIv2/Methods/CertificateBodyGet.csv
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,12 @@ | ||
**URL** , | ||
Метод запиту , GET | ||
URL запиту ,**/api/ecs/body?gln=9864232613879&uuid=3ff444f4-7594-4a43-a151-90e14ee92b0c&body_type=1** | ||
URL параметри ,"**gln** (обов'язково) String - GLN власної Компанії; | ||
|
||
**uuid** (обов'язково) UUID - унікальний ідентифікатор сертифіката | ||
|
||
**body_type** (обов'язково) int - тип тіла: | ||
|
||
* 1 - вкладення до сертифіката" | ||
**Headers** , | ||
Authorization ,"**SID** - токен, отриманий при `авторизації <https://wiki.edin.ua/uk/latest/integration_2_0/APIv2/Methods/Authorization.html>`__" |
16 changes: 16 additions & 0 deletions
16
docs/Certificate/EDIN_2_0/APIv2/Methods/CertificateBodyGet.rst
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,16 @@ | ||
######################################################################################################### | ||
**Отримати контент вкладення до сертифіката** | ||
######################################################################################################### | ||
|
||
Для роботи з цим методом користувач повинен бути `авторизованим <https://wiki.edin.ua/uk/latest/integration_2_0/APIv2/Methods/Authorization.html>`__. | ||
|
||
.. csv-table:: | ||
:file: CertificateBodyGet.csv | ||
:widths: 10, 41 | ||
:stub-columns: 0 | ||
|
||
**RESPONSE** | ||
|
||
У тілі **відповіді** передається контент сформованого pdf файлу з вкладеннями у вигляді base64 рядка. | ||
|
||
|
15 changes: 15 additions & 0 deletions
15
docs/Certificate/EDIN_2_0/APIv2/Methods/CertificateBodyPost.csv
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 @@ | ||
**URL** , | ||
Метод запиту , POST | ||
URL запиту ,**/api/ecs/body?gln=9864232613879&uuid=3ff444f4-7594-4a43-a151-90e14ee92b0c&body_type=1** | ||
URL параметри ,"**gln** (обов'язково) String - GLN власної Компанії; | ||
|
||
**uuid** (обов'язково) UUID - унікальний ідентифікатор сертифіката | ||
|
||
**body_type** (обов'язково) int - тип тіла: | ||
|
||
* 1 - вкладення до сертифіката" | ||
**Headers** , | ||
Authorization ,"**SID** - токен, отриманий при `авторизації <https://wiki.edin.ua/uk/latest/integration_2_0/APIv2/Methods/Authorization.html>`__" | ||
Content-Type , `multipart/form-data <https://tools.ietf.org/html/rfc7578>`__ | ||
**REQUEST** , | ||
Form-data ,"В тілі запиту передаються файли вкладень в форматі PDF, JPG, JPEG, PNG, TIFF. Всі файли, що передаються будуть автоматично об'єднані в один PDF файл." |
37 changes: 37 additions & 0 deletions
37
docs/Certificate/EDIN_2_0/APIv2/Methods/CertificateBodyPost.rst
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,37 @@ | ||
######################################################################################################### | ||
**Створити вкладення до сертифіката** | ||
######################################################################################################### | ||
|
||
Для роботи з цим методом користувач повинен бути `авторизованим <https://wiki.edin.ua/uk/latest/integration_2_0/APIv2/Methods/Authorization.html>`__. | ||
|
||
.. note:: | ||
Максимальний розмір файлу для завантаження - 7,5 МБ | ||
|
||
.. csv-table:: | ||
:file: CertificateBodyPost.csv | ||
:widths: 10, 41 | ||
:stub-columns: 0 | ||
|
||
Приклад запиту: | ||
|
||
.. code:: json | ||
-----------------------------28001198861666343170695798896 | ||
Content-Disposition: form-data; name="files[]"; filename="istockphoto-1154370446-612x612.png" | ||
Content-Type: image/png | ||
(data) | ||
-----------------------------28001198861666343170695798896 | ||
Content-Disposition: form-data; name="files[]"; filename="photo-1518020382113-a7e8fc38eac9.jpeg" | ||
Content-Type: image/jpeg | ||
(data) | ||
-----------------------------28001198861666343170695798896-- | ||
**RESPONSE** | ||
|
||
У тілі **відповіді** передається контент сформованого pdf файлу з вкладеннями у вигляді base64 рядка. | ||
|
||
|
15 changes: 15 additions & 0 deletions
15
docs/Certificate/EDIN_2_0/APIv2/Methods/CertificateBodyPut.csv
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 @@ | ||
**URL** , | ||
Метод запиту , POST | ||
URL запиту ,**/api/ecs/body?gln=9864232613879&uuid=3ff444f4-7594-4a43-a151-90e14ee92b0c&body_type=1** | ||
URL параметри ,"**gln** (обов'язково) String - GLN власної Компанії; | ||
|
||
**uuid** (обов'язково) UUID - унікальний ідентифікатор сертифіката | ||
|
||
**body_type** (обов'язково) int - тип тіла: | ||
|
||
* 1 - вкладення до сертифіката" | ||
**Headers** , | ||
Authorization ,"**SID** - токен, отриманий при `авторизації <https://wiki.edin.ua/uk/latest/integration_2_0/APIv2/Methods/Authorization.html>`__" | ||
Content-Type , `multipart/form-data <https://tools.ietf.org/html/rfc7578>`__ | ||
**REQUEST** , | ||
Form-data ,"В тілі запиту передаються файли вкладень в форматі PDF, JPG, JPEG, PNG, TIFF. Всі файли, що передаються будуть автоматично об'єднані в один PDF файл." |
37 changes: 37 additions & 0 deletions
37
docs/Certificate/EDIN_2_0/APIv2/Methods/CertificateBodyPut.rst
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,37 @@ | ||
######################################################################################################### | ||
**Додати нові вкладення до сертифіката** | ||
######################################################################################################### | ||
|
||
Для роботи з цим методом користувач повинен бути `авторизованим <https://wiki.edin.ua/uk/latest/integration_2_0/APIv2/Methods/Authorization.html>`__. | ||
|
||
.. note:: | ||
Максимальний розмір файлу для завантаження - 7,5 МБ | ||
|
||
.. csv-table:: | ||
:file: CertificateBodyPut.csv | ||
:widths: 10, 41 | ||
:stub-columns: 0 | ||
|
||
Приклад запиту: | ||
|
||
.. code:: json | ||
-----------------------------28001198861666343170695798896 | ||
Content-Disposition: form-data; name="files[]"; filename="istockphoto-1154370446-612x612.png" | ||
Content-Type: image/png | ||
(data) | ||
-----------------------------28001198861666343170695798896 | ||
Content-Disposition: form-data; name="files[]"; filename="photo-1518020382113-a7e8fc38eac9.jpeg" | ||
Content-Type: image/jpeg | ||
(data) | ||
-----------------------------28001198861666343170695798896-- | ||
**RESPONSE** | ||
|
||
У тілі **відповіді** передається контент сформованого pdf файлу з вкладеннями у вигляді base64 рядка. | ||
|
||
|
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
11 changes: 11 additions & 0 deletions
11
docs/Certificate/EDIN_2_0/APIv2/Methods/CertificateProducts.csv
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,11 @@ | ||
**URL** , | ||
Метод запиту , PUT | ||
URL запиту ,**/api/ecs/products?gln=9864232613879&uuid=3ff444f4-7594-4a43-a151-90e14ee92b0c** | ||
URL параметри ,"**gln** (обов'язково) String - GLN власної Компанії; | ||
|
||
**uuid** (обов'язково) UUID - унікальний ідентифікатор сертифіката" | ||
**Headers** , | ||
Authorization ,"**SID** - токен, отриманий при `авторизації <https://wiki.edin.ua/uk/latest/integration_2_0/APIv2/Methods/Authorization.html>`__" | ||
Content-Type , *application/json* | ||
**REQUEST** , | ||
JSON Body ,"В тілі запиту методу передаються `дані товарів <https://wiki.edin.ua/uk/latest/Certificate/EDIN_2_0/APIv2/Methods/EveryBody/CertificateProductsRequest.html>`__, що прив'язуються до сертифіката (масив об’єктів XCertificateProduct)." |
17 changes: 17 additions & 0 deletions
17
docs/Certificate/EDIN_2_0/APIv2/Methods/CertificateProducts.rst
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 @@ | ||
######################################################################################################### | ||
**Додати (пов'язати) товари до сертифіката** | ||
######################################################################################################### | ||
|
||
Для роботи з цим методом користувач повинен бути `авторизованим <https://wiki.edin.ua/uk/latest/integration_2_0/APIv2/Methods/Authorization.html>`__. | ||
|
||
.. note:: | ||
Якщо продукт уже прив'язаний до сертифіката і в тілі передано його ідентифікатор (XCertificateProduct.id), то дані товару будуть оновлені, в іншому випадку буде створено новий товар. | ||
|
||
.. csv-table:: | ||
:file: CertificateProducts.csv | ||
:widths: 10, 41 | ||
:stub-columns: 0 | ||
|
||
**RESPONSE** | ||
|
||
Код сервера 200 (ok). |
Oops, something went wrong.