Add some new API point that produce some CSV #50

Closed
opened 2023-10-17 16:03:42 +00:00 by juminet · 1 comment
Owner

If the latest issue #49 is not feasible/ not satisfactory, we could add some API endpoint that produce some CSV. We can export CSV from the admin, but the problem is that sites and visits are split into 2 different tables.

The idea is thus to "change the format of the API endpoint to json to csv". It can be easy or quite complicated.

Ex, the https://biomap.champs-libres.be/api/sites/programs/1 API point is from 27d392c06a/backend/gncitizen/core/sites/routes.py (L233)

If the latest issue #49 is not feasible/ not satisfactory, we could add some API endpoint that produce some CSV. We can export CSV from the admin, but the problem is that sites and visits are split into 2 different tables. The idea is thus to "change the format of the API endpoint to json to csv". It can be easy or quite complicated. Ex, the https://biomap.champs-libres.be/api/sites/programs/1 API point is from https://github.com/Champs-Libres/GeoNature-citizen/blob/27d392c06a0d9c6248c142c04e54c7a0e6b7c130/backend/gncitizen/core/sites/routes.py#L233
Author
Owner

OK. See 194368f6f7

OK. See https://github.com/Champs-Libres/GeoNature-citizen/commit/194368f6f79bba0c698bd23b69d734dd5c7c0532
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: champs-libres/biommap#50
No description provided.