Skip to content

Commit fd55ba3

Browse files
authored
Merge pull request #300 from LibreSign/feat/api-article
chore: add article about how to use the API
2 parents ea2dc58 + 56e5d80 commit fd55ba3

File tree

6 files changed

+54
-5
lines changed

6 files changed

+54
-5
lines changed

config.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@
122122
'comment' => "A simple and complete solution. It speeds up processes and can eliminate the use of paper. We integrated it with our public management system or e-Cidade, it was absurdly good. Congratulations.",
123123
'author' => 'Igor Afonso Oliveira Ruas'
124124
],
125-
126-
125+
126+
127127
],
128128
'getFromCategory' => function($page, $category) {
129129
$files = array_merge(
@@ -312,6 +312,15 @@
312312
'linkedin' => 'https://www.linkedin.com/in/daianealvesrj/',
313313
]
314314
],
315+
[
316+
'name' => 'Vitor Mattos',
317+
'gravatar' => '2656fb55188f5a28ee7a99db0b9e6d8f4b91c7f6b88eead05c57386a3a05ff49' ,
318+
'bio' => 'With over 20 years of experience as CTO of LibreCode, is a Zend Certified Engineer and expert in PHP, Linux, and FLOSS solutions. Passionate about technology, is an entrepreneur in the IT field and an activist for privacy. As a strong advocate for open-source software, frequently speaks at regional and national events, demonstrating his commitment to sharing knowledge, promoting the adoption of open technologies, and emphasizing the importance of privacy.',
319+
'role' => 'CTO',
320+
'social' => [
321+
'linkedin' => 'https://www.linkedin.com/in/vitormattos/',
322+
]
323+
],
315324
],
316325
],
317326
],

lang/en/main.json

Lines changed: 5 additions & 3 deletions
Large diffs are not rendered by default.

lang/fr/main.json

Lines changed: 3 additions & 0 deletions
Large diffs are not rendered by default.

lang/nb-NO/main.json

Lines changed: 3 additions & 0 deletions
Large diffs are not rendered by default.

lang/pt-BR/main.json

Lines changed: 3 additions & 0 deletions
Large diffs are not rendered by default.

source/_posts/api-documentation.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
extends: _layouts.post
3+
title: LibreSign API Guide
4+
author: Vitor Mattos
5+
date: 2024-10-10
6+
description: Provides a practical guide on how to use the LibreSign API, including querying endpoints and understanding usage flows by observing requests in the application.
7+
categories: [features]
8+
icon: dashboard
9+
---
10+
11+
# LibreSign API: Endpoints and usage flows
12+
13+
## API Endpoints
14+
15+
To find out which endpoints are available in the LibreSign API, follow these steps:
16+
17+
1. **Install the OCS API Viewer App**: Start by installing the [OCS API Viewer](https://apps.nextcloud.com/apps/ocs_api_viewer) in your Nextcloud environment.
18+
2. **Access the API Documentation**: In the Nextcloud menu, locate the OCS app. Here, you will find the documentation for the LibreSign API, as well as other Nextcloud APIs.
19+
20+
## Understanding the LibreSign API usage flows
21+
22+
To understand how to perform specific operations, such as requesting a signature, you can use the LibreSign application itself as a reference. Here’s how to do it:
23+
24+
1. **Open Developer Tools**: Press the F12 key in your browser to access the developer tools.
25+
2. **Go to the Network Tab**: Navigate to the "Network" tab to monitor the API requests.
26+
3. **Filter the requests**: Use the filter to show only the requests related to LibreSign by typing "libresign."
27+
4. **Perform actions in LibreSign**: Execute the desired actions in the LibreSign application. Observe the requests sent to the API at each step and analyze how they are structured.
28+
29+
By following these steps, you will be able to query the available endpoints of the LibreSign API and understand the usage flows by monitoring the requests made by the application. This will help you integrate and use the API in your projects.

0 commit comments

Comments
 (0)