From 46c3ff21a69f44f7079b92998a7a29c92bf284d1 Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Wed, 1 Apr 2020 16:14:02 +0200 Subject: [PATCH] [Project] update PLC doc to mention adding Rest API classes --- li.strolch.website/www.strolch.li/plc.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/li.strolch.website/www.strolch.li/plc.html b/li.strolch.website/www.strolch.li/plc.html index 885d9b28b..9b08fb0f4 100644 --- a/li.strolch.website/www.strolch.li/plc.html +++ b/li.strolch.website/www.strolch.li/plc.html @@ -195,6 +195,25 @@ wsObserverPath: { } +
  • +

    Don't forget to add the PLC Rest classes to your ResourceConfig

    +
    +@ApplicationPath("rest")
    +public class RestfulApplication extends ResourceConfig {
    +
    +    public RestfulApplication() {
    +
    +        ...
    +
    +        // strolch plc services
    +        packages(PlcConnectionsResource.class.getPackage().getName());
    +
    +        ...
    +    }
    +}
    +
    +
  • +
  • Now we need to configure the PLC's runtime by modifying runtime/StrolchConfiguration.xml and adding the following: