Polish | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Pobieranie informacji o dokumentach z procesuŚcieżka do servletu: api/documents/query Metoda: GET Parametry:
Odpowiedź:
Pobieranie rozszerzonych informacji o dokumentach z procesuŚcieżka do servletu: api/documents/view/query Metoda: GET Parametry:
Odpowiedź:
Pobranie dostępnych klas dokumentówŚcieżka do servletu: api/documents/classes Metoda: GET Parametry:
Odpowiedź:
Pobieranie indeksów dla klasy dokumentówŚcieżka do servletu: api/documents/indexes/{documentClassId} Metoda: GET Parametry:
Odpowiedź:
Dodanie dokumentuŚcieżka do servletu: api/documents/upload Metoda: POST enctype: multipart/form-data Parametry:
Treść zapytania: Formularz HTML zawierający definicję dokumentu. Definicja powinna zawierać następujące pole:
Parametry activityId i processId są opcjonalne:
Odpowiedź:
Pobieranie dokumentuŚcieżka do servletu: api/documents/download/{fileId} Metoda: GET Parametry:
Odpowiedź:
Pobieranie dokumentu Ścieżka do servletu: api/documents/get/{filename} Metoda : GET Parametry :
Uwaga, parametr systemowy 'AuthorizeUserForFile' określa czy jest wymagana autoryzacja użytkownika dla tego servletu. Odpowiedź : pobrany plik dokumentu. Pobieranie informacji o podłączonych dokumentach do zadaniaŚcieżka do servletu: api/documents/activity Metoda : GET Parametry :
Odpowiedź : Informacje o dokumentach tj. a więc poza plikami także dodatkowe informacje o dokumencie np. przez kogo został podłączony do archiwum i przez kogo został podłączony do procesu itp. Odłączanie dokumentu od procesuŚcieżka do servletu: api/documents/{fileId}/{processId} Metoda: DELETE Parametry:
Odpowiedź:
Usuwanie dokumentu (od wersji 3.1.31)Metoda usuwa plik z systemu. Jeżeli usuwany plik jest w wersji np.: 2, a cały dokument ma wersji 5, to usunięte zostaną wszystkie wersje w górę, czyli zostanie tylko plik w wersji 1, chyba że parametr {@code deleteAllVersions=true}, to wtedy zostaną usunięte wszystkie wersje. Użytkownik musi posiadać uprawnienia do usunięcia tego pliku.
Ścieżka do servletu: api/documents/{fileId} Metoda: DELETE Parametry:
Odpowiedź:
Zmiana wartości indeksów dokumentu (od wersji 3.1.31)Metoda zmienia przekazane wartości indeksów w podanym dokumencie. Użytkownik musi mieć uprawnienia do modyfikacji dokumentu. Ścieżka do servletu: api/documents/{fileId}/indexes Metoda: PUT Request Content-Type: application/json Parametry:
Odpowiedź:
Wyszukiwanie dokumentów na podstawie filtrów (od wersji 3.1.31)Metoda wyszukuje dokumenty na podstawie podanych filtrów. Brane są pod uwagę uprawnienia użytkownika. Wyszukiwać można w klasie dokumentów (musi być podane id klasy dokumentów w parametrze documentClassId) albo w zestawie dokumentów (musi być podane id zestawu dokumentów w parametrze documentSetId). Nie można wyszukiwać jednocześnie po klasie dokumentów i zestawie dokumentów (tylko jeden parametr może być uzupełniony). Obecnie dodatkowym filtrem są jeszcze indeksy klasy dokumentów/zestawu dokumentów. Jeżeli nie podamy indeksów, to zostaną wyszukane wszystkie dokumenty z podanej klasy dokumentów/zestawu dokumentów. Od wersji 4.1.2: Maksymalna liczba dokumentów zwrócona w jednym wywołaniu: 100 000 Ścieżka do servletu: api/documents/query Metoda: POST Request Content-Type: application/json Parametry:
Odpowiedź:
Wyszukiwanie ilości dokumentów na podstawie filtrów (od wersji 4.1.2)Metoda wyszukuje ilość dokumentów na podstawie podanych filtrów. Brane są pod uwagę uprawnienia użytkownika. Wyszukiwać ilość można w klasie dokumentów (musi być podane id klasy dokumentów w parametrze documentClassId) albo w zestawie dokumentów (musi być podane id zestawu dokumentów w parametrze documentSetId). Nie można wyszukiwać jednocześnie po klasie dokumentów i zestawie dokumentów (tylko jeden parametr może być uzupełniony). Obecnie dodatkowym filtrem są jeszcze indeksy klasy dokumentów/zestawu dokumentów. Jeżeli nie podamy indeksów, to zostanie wyszukana ilość wszystkich dokumentów z podanej klasy dokumentów/zestawu dokumentów. Ścieżka do servletu: api/documents/query/count Metoda: POST Request Content-Type: application/json Parametry:
Odpowiedź:
Pobieranie wszystkich wersji plikuŚcieżka do servletu: api/documents/{fileId}/versions Metoda: GET Parametry:
Odpowiedź:
Zmiana danych w bazie odnośnie pobranego dokumentuZmienia dane w bazie danych odnośnie pobrania dokumentu do zmiany. Ustawia odpowiedni status, datę pobrania dokumentu, oraz użytkownika pobierającego. Ścieżka do servletu: api/documents/{fileId}/checkOut Metoda: PUT Parametry:
Odpowiedź:
Anulowanie wprowadzania zmian do pobranego dokumentu Anuluje wprowadzanie zmian do dokumentu. Ustawia odpowiedni status, resetuje datę pobrania dokumentu, oraz użytkownika pobierającego. Ścieżka do servletu: api/documents/{fileId}/undoCheckOut Metoda: PUT Parametry:
Odpowiedź:
Zapisuje nową wersję pliku Zapisuje nową wersję pliku, który wcześniej pobraliśmy do zmiany. Ścieżka do servletu: api/documents/checkIn Metoda: POST enctype: multipart/form-data Treść zapytania: Formularz HTML zawierający definicję dokumentu. Definicja powinna zawierać następujące pole:
Odpowiedź:
Pobieranie aktualnego statusu dokumentuŚcieżka do servletu: api/documents/{fileId}/status Metoda: GET Parametry:
Odpowiedź:
|
English | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Downloading document information from the processPath to servlet: api/documents/query Method: GET Parameters:
Answer:
Downloading extended document information from the processPath to servlet: api/documents/view/query Method: GET Parameters:
Answer:
Download available document classesPath to servlet: api/documents/classes Method: GET Parameters:
Downloading indexes for a class of documentsPath to servlet: api/documents/indexes/{documentClassId} Metoda: GET Parameters:
Answer:
Add documentPath to servlet: api/documents/upload Method: POST enctype: multipart/form-data Parameters
Query Content: HTML form containing the definition of the document. The definition should contain the following field:
The parameters activityId and processId are optional:
Answer:
Download documentPath to servlet: api/documents/download/{fileId} Method: GET Parameters:
Answer:
Get document Path to servlet: api/documents/get/{filename} Method: GET Parameters:
Note, the system parameter 'AuthorizeUserForFile' determines whether user authorization is required for this servlet. Answer: downloaded document file. Download information about connected documents to a jobPath to servlet: api/documents/activity Method: GET Parameters:
Answer: Information about the documents, i.e. besides the files, also additional information about the document, e.g. by whom it was connected to the archive and by whom it was connected to the process, etc. Disconnecting a document from a processPath to servlet: api/documents/{fileId}/{processId} Method: DELETE Parameters:
Answer:
Delete document (from version 3.1.31)The method removes the file from the system. If the file to be deleted is version ex: 2, and the whole document is version 5, then all versions upwards will be deleted, i.e. only version 1 file will be left, unless the parameter {@code deleteAllVersions=true}, then all versions will be deleted. The user must have permission to delete this file. Path to servlet: api/documents/{fileId} Method: DELETE Parameters:
Answer:
Change of document index values (from version 3.1.31)The method changes the transferred index values in the specified document. The user must have permission to modify the document. Path to servlet: api/documents/{fileId}/indexes Method: PUT Request Content-Type: application/json Parameters:
Answer:
Search for documents based on filters (from version 3.1.31)The method searches for documents based on the specified filters. User rights are taken into account. You can search by document class (the id of the document class must be specified in the documentClassId parameter) or document set (the id of the document set must be specified in the documentSetId parameter). You cannot search by document class and document set at the same time (only one parameter can be completed). Currently, the indexes of the document class/document set are still an additional filter. If you do not specify indexes, all documents from the specified document class/document set will be searched. Path to servlet: api/documents/query Method: POST Request Content-Type: application/json Parameters:
Answer:
Get all versions of the filePath to servlet: api/documents/{fileId}/versions Method: GET Parameters:
Answer:
Changes the data in the database regarding the downloaded documentChanges the data in the database regarding the downloaded document to be changed. Sets the appropriate status, date of downloading the document, and downloading user. Path to servlet: api/documents/{fileId}/checkOut Method: PUT Parameters:
Answer:
Cancels making changes to a downloaded documentCancels making changes to a document. Sets the appropriate status, resets the date the document was downloaded, and the downloading user. Path to servlet: api/documents/{fileId}/undoCheckOut Method: PUT Parameters:
Answer:
Saves a new version of the fileSaves a new version of the file we previously downloaded to change. Path to servlet: api/documents/checkIn Method: POST enctype: multipart/form-data Query Content: HTML form containing the definition of the document. The definition should contain the following field:
Answer:
Download the current status of a documentPath to servlet: api/documents/{fileId}/status Method: GET Parameters:
Answer:
|