@@ -18,7 +18,7 @@ Example:
1818
1919``` bash
2020curl -X POST \
21- http://localhost/index.php/apps/libresign/api/0.1 /webhook/register \
21+ http://localhost/index.php/apps/libresign/api/v1 /webhook/register \
2222 -H ' Accept: application/json' \
2323 -H ' Authorization: Basic YWRtaW46YWRtaW4=' \
2424 -H ' Content-Type: application/json'
@@ -50,7 +50,7 @@ POST /request-signature
5050
5151``` bash
5252curl --request POST \
53- --url http://localhost/apps/libresign/api/0.1 /request-signature \
53+ --url http://localhost/apps/libresign/api/v1 /request-signature \
5454 --header ' Authorization: Basic YWRtaW46YWRtaW4=' \
5555 --header ' Content-Type: application/json' \
5656 --data ' {
@@ -80,7 +80,7 @@ The association between user and file will result on a `fileUserId`. You will ne
8080
8181``` bash
8282curl --request GET \
83- --url http://localhost/apps/libresign/api/0.1 /file/validate/file_id/1995 \
83+ --url http://localhost/apps/libresign/api/v1 /file/validate/file_id/1995 \
8484 --header ' Authorization: Basic YWRtaW46YWRtaW4='
8585```
8686
@@ -90,7 +90,7 @@ List all LibreSign files
9090
9191``` bash
9292curl --request GET \
93- --url http://localhost/apps/libresign/api/0.1 /file/list \
93+ --url http://localhost/apps/libresign/api/v1 /file/list \
9494 --header ' Authorization: Basic YWRtaW46YWRtaW4=' \
9595```
9696
@@ -101,7 +101,7 @@ POST /file/{uuid}/elements
101101
102102``` bash
103103curl --request POST \
104- --url http://localhost/apps/libresign/api/0.1 /file/88968195-6f0a-4036-ac05-9680feb109e4/elements \
104+ --url http://localhost/apps/libresign/api/v1 /file/88968195-6f0a-4036-ac05-9680feb109e4/elements \
105105 --header ' Authorization: Basic YWRtaW46YWRtaW4=' \
106106 --header ' Content-Type: application/json' \
107107 --data ' {
@@ -124,7 +124,7 @@ The UUID you will receive when you will do a request to `POST /request-signature
124124
125125``` bash
126126curl --request PATCH \
127- --url http://localhost/apps/libresign/api/0.1 /file/87e5d5f0-1a9b-48cd-8146-0ee8b3aafd83/elements/1 \
127+ --url http://localhost/apps/libresign/api/v1 /file/87e5d5f0-1a9b-48cd-8146-0ee8b3aafd83/elements/1 \
128128 --header ' Authorization: Basic YWRtaW46YWRtaW4=' \
129129 --header ' Content-Type: application/json' \
130130 --data ' {
@@ -149,7 +149,7 @@ If the system is enabled to sign using password, the user will need to create a
149149
150150``` bash
151151curl --request POST \
152- --url http://localhost/apps/libresign/api/0.1 /account/signature \
152+ --url http://localhost/apps/libresign/api/v1 /account/signature \
153153 --header ' Authorization: Basic YWRtaW46YWRtaW4=' \
154154 --header ' Content-Type: application/json' \
155155 --data ' {
@@ -165,7 +165,7 @@ You will need change the status of a file from draft to able to sign. When you c
165165
166166``` bash
167167curl --request PATCH \
168- --url http://localhost/apps/libresign/api/0.1 /request-signature \
168+ --url http://localhost/apps/libresign/api/v1 /request-signature \
169169 --header ' Authorization: Basic YWRtaW46YWRtaW4=' \
170170 --header ' Content-Type: application/json' \
171171 --data ' {
@@ -182,7 +182,7 @@ This is necessary for all user to store the own signature or initial.
182182
183183``` bash
184184curl --request POST \
185- --url http://localhost/apps/libresign/api/0.1 /account/signature/elements \
185+ --url http://localhost/apps/libresign/api/v1 /account/signature/elements \
186186 --header ' Authorization: Basic YWRtaW46YWRtaW4=' \
187187 --header ' Content-Type: application/json' \
188188 --data ' {
@@ -212,11 +212,11 @@ To sign using SMS you will need install the app `twofactor_gateway` and configur
212212Example:
213213
214214``` bash
215- docker-compose exec --user www-data nextcloud php occ config:app:set libresign sign_method --value=password
215+ docker-compose exec --user www-data nextcloud php occ config:app:set libresign identify_method --value=[ " nextcloud " ]
216216
217- docker-compose exec --user www-data nextcloud php occ config:app:set libresign sign_method --value=email
217+ docker-compose exec --user www-data nextcloud php occ config:app:set libresign identify_method --value=[ " email" ]
218218
219- docker-compose exec --user www-data nextcloud php occ config:app:set libresign sign_method --value=sms
219+ docker-compose exec --user www-data nextcloud php occ config:app:set libresign identify_method --value=[ " sms" ]
220220```
221221
222222#### SMS
@@ -247,7 +247,7 @@ If the sign method is a code, the authenticated user will need request a code to
247247
248248``` bash
249249curl --request POST \
250- --url http://localhost/apps/libresign/api/0.1 /sign/file_id/3051/code \
250+ --url http://localhost/apps/libresign/api/v1 /sign/file_id/3051/code \
251251 --header ' Authorization: Basic YWRtaW46YWRtaW4=' \
252252 --header ' Content-Type: application/json' \
253253```
@@ -257,7 +257,7 @@ To sign you only will need send the code that you received by email or SMS.
257257
258258``` bash
259259curl --request POST \
260- --url http://localhost/apps/libresign/api/0.1 /sign/file_id/1995 \
260+ --url http://localhost/apps/libresign/api/v1 /sign/file_id/1995 \
261261 --header ' Authorization: Basic YWRtaW46YWRtaW4=' \
262262 --header ' Content-Type: application/json' \
263263 --data ' {
0 commit comments