Project

General

Profile

Actions

Bug #2002

closed

API: export_database doesn't export correct json

Added by Enric Rodellas 12 months ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
Start date:
2023-04-10
Estimated time:
Found in version:

Description

http://localhost:8080/api/0.3/export_database/json exports a mixed json and python dict.
Only is correct labels of first level: "entities", "links", "properties", "geometries". Te content of each section is a python dict not converted to json format

{"entities": "[{'id': 1, 'cidoc_class_code': 'E55', 'name': 'Bibliography', 'description': 'Categories for bibliographical entries as used for example in BibTeX, e.g. Book, Inbook, Article etc.', 'created': datetime.datetime(2023, 4, 9, 10, 21, 15, 740843), 'modified': None,

Anyway, you're doing a great job and API. Congratulations. Enric Rodellas

Actions #1

Updated by Alexander Watzinger 12 months ago

  • Target version set to 7.15.0
  • Found in version set to 7.12.0
  • Category set to API
  • Status changed from New to Assigned
  • Assignee set to Bernhard Koschiček-Krombholz
Actions #2

Updated by Bernhard Koschiček-Krombholz 12 months ago

  • Status changed from Assigned to Closed

Thank you very much Enric for reporting this issue and for the nice comment on the API.

I fixed the issue. It is in the develop branch.

Actions #3

Updated by Alexander Watzinger 12 months ago

  • Subject changed from API export_database doesn't export correct json to API: export_database doesn't export correct json
Actions #4

Updated by Alexander Watzinger 11 months ago

  • Target version changed from 7.15.0 to 7.13.0
Actions

Also available in: Atom PDF