Project

General

Profile

Question #1142

Updated by Stefan Eichert over 4 years ago

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 purpose) 
 * 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 anyway? If no, this should be implemented somehow. 

Back