-
Notifications
You must be signed in to change notification settings - Fork 0
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 #14 from EDI-N/Kolya
Kolya
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
############################################################# | ||
**Відмітити комплект документів (пекет), як "прочитаний"** | ||
############################################################# | ||
|
||
Для роботи з цим методом користувач повинен бути `авторизованим <https://wiki-df.edin.ua/uk/latest/API_DOCflow/Methods/Authorization.html>`__ . | ||
|
||
+--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------+ | ||
| **Метод запиту** | **HTTP OPTIONS** | | ||
+==============================================================+============================================================================================================+ | ||
| **Content-Type** | application/json (тіло запиту/відповіді в json форматі в тілі HTTP запиту) | | ||
+--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------+ | ||
| **URL запиту** | **https://doc.edin.ua/bdoc/store/package/read_from_api**?package_id=2385 | | ||
+--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------+ | ||
| **Параметри, що передаються в URL (разом з адресою методу)** | В рядку заголовка (Header) "Set-Cookie" обов'язково передається **SID** - токен, отриманий при авторизації | | ||
| | | | ||
| | **Обов'язкові url-параметри:** | | ||
| | | | ||
| | **package_id** - ID комплекта документів (пекета) | | ||
+--------------------------------------------------------------+------------------------------------------------------------------------------------------------------------+ | ||
|
||
.. tip:: Метод зручно використовувати для організованої роботи (фільтрації) отриманих комплектів документів. | ||
|
||
**JSON-параметри в тілі HTTP запиту/відповіді** | ||
******************************************************************* | ||
|
||
``REQUEST`` | ||
|
||
В цьому методі json-тіло **запиту** відсутнє (інші дані передавати не потрібно). | ||
|
||
``RESPONSE`` | ||
|
||
У **відповідь** передається код сервера 200 (ok) | ||
|
||
-------------- | ||
|
||
**Приклади** | ||
***************** | ||
|
||
**При використанні методу json-тіло запиту відсутнє (дані передавати не потрібно)** | ||
|
||
-------------- | ||
|
||
У **відповідь** передається код сервера 200 (ok) | ||
|
||
|
||
|