Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api: make census IPFS export async #1392

Merged
merged 2 commits into from
Sep 17, 2024
Merged

api: make census IPFS export async #1392

merged 2 commits into from
Sep 17, 2024

Conversation

p4u
Copy link
Member

@p4u p4u commented Sep 16, 2024

Add new method /censuses/export/ipfs/list to list all exported censuses (runtime).

Copy link

This PR introduces the following changes in the developer-portal documentation:

diff --git a/swaggers/vocdoni-api.yaml b/swaggers/vocdoni-api.yaml
index 1994085..c14c138 100644
--- a/swaggers/vocdoni-api.yaml
+++ b/swaggers/vocdoni-api.yaml
@@ -367,6 +367,22 @@ paths:
       description: >-
         Export the whole census database to a JSON file. Requires Admin Bearer token.
       summary: Export census database
+  /censuses/export/ipfs/list:
+    get:
+      responses:
+        '200':
+          content:
+            application/json:
+              schema:
+                properties:
+                  valid:
+                    type: boolean
+                type: object
+          description: OK
+      tags:
+        - Censuses
+      description: List the IPFS URIs of the census database exports
+      summary: List export census database to IPFS
   /censuses/import:
     post:
       responses:

@p4u p4u requested a review from altergui September 16, 2024 16:24
Copy link
Contributor

@altergui altergui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, tested working

@altergui altergui changed the base branch from release-lts-1 to main September 16, 2024 16:52
altergui and others added 2 commits September 16, 2024 18:53
Add new method /censuses/export/ipfs/list to list all exported censuses (runtime).

Signed-off-by: p4u <[email protected]>
@altergui altergui merged commit eb711f8 into main Sep 17, 2024
7 checks passed
@altergui altergui deleted the f/ipfs_export_async branch September 17, 2024 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants