Project

General

Profile

Actions

Question #1142

closed

API - issue with references and files

Added by Bernhard Koschiček-Krombholz about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
-
Start date:
2020-02-12
Estimated time:

Description

The Api.get_file functions won't get result with reference entities.

Update:
I tested it with source + file and reference + file. Both show the file as the relation but only the source lists it as depictions. That's because with reference the file is linked in the opposite direction so the get_file functions doesn't "find" it.

Question to Stefan: is this
  • the correct behavior (link is valid and it's ok that the file isn't listed as depiction at the reference) Stefan says: YES
  • or is the link in the wrong direction (but as far as I remember it was on purpose)? Stefan says: NO
  • or should the file be listed as depiction in the GeoJSON of the reference? Stefan says: NO
Suggestion from Stefan:
  • When accessing the reference from the API the files are listed as CRM relations (reference - refers to - file) anyway? If no, this should be implemented somehow.
Actions

Also available in: Atom PDF