currently we use the /entity/{id} and /entities_linked_to_entity/{id} endpoints and merge their relations in the frontend. still some relations (like actors or events in a place detail view) are not returned.
for developing we need an endpoint that returns every tab-item of the backend's entry. for example here: https://demo-dev.openatlas.eu/entity/128117 and abstracts the complex data model like object_location --> physical thing (place) further requirements would be:
Thank you Olivia and Katharina for starting this issues. We just talked with Christoph and got a lot good input from him too. Best would be to sit down together (Olivia, Katharina, Bernhard and Christoph) to discuss general strategies how to deal with API requests for presentation sites.
/entities_linked_to_entity/ should also return the entity itself. I will implement this, so you only need one call.
For the further abstraction of the data model, we need another plan. Either we use the Linked Places Format and "fork" it, or we create a completely new JSON output format better suited for presentation sites, which is not bases on a LOD standard. This would be my preferred way because we overloaded LPF quite a lot and still got not everything you need.
Nevertheless, a in person meeting would be great to discuss this. I will reach out to you.
A new endpoint will be created under the proposal tag to get information about one entity for the presentation site. This should expose all the needed information about the entity and all linked or relevant other entities.
I will start to implement the API.json for the new endpoint. After that, we will go through different use cases to see if everything is covered.
I made a custom endpoint names /entity_presentation_view/{entityId} with the respective template. The OpenAPI definition should also up to date. One further suggestion, we should also put the references into an own special field, because the "relation" to a reference is also the same, and the information needed from a reference is lesser than from other entities.
Please test it. I will make a new ticket for improvement suggestions.