[Project] update PLC doc to mention adding Rest API classes
This commit is contained in:
parent
8f8d09fe0a
commit
46c3ff21a6
|
@ -195,6 +195,25 @@ wsObserverPath: {
|
||||||
}</pre>
|
}</pre>
|
||||||
</li>
|
</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>
|
<li>
|
||||||
<p>Now we need to configure the PLC's runtime by modifying <code>runtime/StrolchConfiguration.xml</code>
|
<p>Now we need to configure the PLC's runtime by modifying <code>runtime/StrolchConfiguration.xml</code>
|
||||||
and adding the following:</p>
|
and adding the following:</p>
|
||||||
|
|
Loading…
Reference in New Issue