[Project] update PLC doc to mention adding Rest API classes

This commit is contained in:
Robert von Burg 2020-04-01 16:14:02 +02:00
parent 8f8d09fe0a
commit 46c3ff21a6
1 changed files with 19 additions and 0 deletions

View File

@ -195,6 +195,25 @@ wsObserverPath: {
}</pre>
</li>
<li>
<p>Don't forget to add the PLC Rest classes to your <code>ResourceConfig</code></p>
<pre>
@ApplicationPath("rest")
public class RestfulApplication extends ResourceConfig {
public RestfulApplication() {
...
// strolch plc services
packages(PlcConnectionsResource.class.getPackage().getName());
...
}
}
</pre>
</li>
<li>
<p>Now we need to configure the PLC's runtime by modifying <code>runtime/StrolchConfiguration.xml</code>
and adding the following:</p>