Ticket #659 (closed Enhancement: fixed)
expose fetchRelatedComposite=true of Association REST API
Reported by: | Malte | Owned by: | jri |
---|---|---|---|
Priority: | Major | Milestone: | Release 4.6 |
Component: | DeepaMehta Standard Distribution | Version: | 4.3 |
Keywords: | Cc: | dgf, carolina | |
Complexity: | 3 | Area: | Application Framework / API |
Module: | deepamehta-webservice |
Description
..see "false, false" in line 320 in WebservicePlugin?
This is needed to enhance the custom page renderer of the wikidata-search plugin. Thanks for your support!
Change History
comment:3 Changed 10 years ago by Jörg Richter
Core: extend REST API with fetchComposite (#659).
Core REST API: the topic's and association's "get related topics" request takes 2 optional query parameters (boolean): fetch_composite and fetch_relating_composite. As usual they respectively indicate weather the child topics should be included in the response.
- The related topic's child topics (fetch_composite).
- The child topics of the association that connects the related topic (fetch_relating_composite).
Default value for both parameters is false.
GET /core/topic/{id}/related_topics?...&fetch_composite=true&fetch_relating_composite=true GET /core/association/{id}/related_topics?...&fetch_composite=true&fetch_relating_composite=true
See #659.
comment:4 Changed 10 years ago by jri
Unfortunately in the final 4.4 release the fetch_relating_composite query parameter has been dropped again (in the course of globally removing the fetchComposite parameters from the Core APIs). Currently (as of DM 4.5) the REST API only supports the include_childs query parameter but not an include_assoc_childs query parameter.
The REST API should support an include_assoc_childs query parameter (with the same semantics as the former fetch_relating_composite query parameter).
comment:5 Changed 10 years ago by jri
- Priority changed from Minor to Major
- Milestone set to Release 4.6
Background: The custom renderer wants to present the "related topics/What's related area" by the composite-Values of the respective Association (in this case: AssocType? Wikidata Claim is of type Composite).