eclipse / lyo.designer

lyo.designer
Eclipse Public License 2.0
11 stars 10 forks source link

introduce specifc web services for CRUD resource methods #140

Closed jadelkhoury closed 4 years ago

jadelkhoury commented 4 years ago

So called "Basic Capabilities" under the OSLC-Service have been problematic.

  1. They don't really exist as part of the OSLC model.
  2. They forced resource URIs to share the same URI pattern as other capabilities (such as query, creation factory). This is not always the case.

We can now model resource Read/Update/Delete methods as a separate Jax-rs class.

To make this work, BasicCapabilities need to be deprecated. It is quite messy to generate resource URIs that can support both BasicCapability and WebResources.

  1. If a BasicCapability exist in the model, we show the modeller a note explaining that they should be replaced.
  2. If a modeler tries to create BasicCapability, they get a message that it is no longer supported.
  3. If a modeller tries to create a WebService, yet there is already a BasicCapability, they also get a message that we cannot mix BasicCapability and WebService in the same model.

But existing models will generate fine.

jadelkhoury commented 4 years ago

If reviewing, you can ignore the first commit, since it only includes the java generated code. Only 2nd commit contains relevant code changes.

jadelkhoury commented 4 years ago

Here's a 3 min video that shows the functionality of this feature. https://kth.box.com/s/3kv2ebwc1rkv6saeanycze6ax7w2bber

jadelkhoury commented 4 years ago

Thanks @berezovskyi This will trigger our first update of the application. If it all work as expected, I will update documentations to explain all these new features.