oslc-op / sysml-oslc-server

Sample code to demonstrate how to use Lyo Designer to create an OSLC server for the SysML v2 REST API.
Apache License 2.0
10 stars 2 forks source link

Redirect GET of html pages to the specific subclass of Element #2

Closed jadelkhoury closed 4 years ago

jadelkhoury commented 4 years ago

After querying on - say - all SubSettings, the list of URIs of the elements result with the fact that a GET on any SubSetting resource is represented by the GET operation on Element (Because ALL resources have hte same URL pattern pointing to Element services)

This means the html-pages (DUI and debugging pages) of all resources are the most generic Element one, and user does not get to see the specific attributes of the sub-classes.

Note that this is not an issue when requesting RDF formats, since JMH elegently returns the java instances of the correct sub-class of Element. The only problem is that the Element operations always point to element.jsp.

jadelkhoury commented 4 years ago

Solved.