Changes between Version 6 and Version 7 of RepQuickStart
- Timestamp:
- Oct 7, 2010, 5:42:25 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RepQuickStart
v6 v7 22 22 [[Image(runTest.png)]] 23 23 24 If everything went well the R estletserver should be listening on HTTP port 8188.24 If everything went well the REST server should be listening on HTTP port 8188. 25 25 26 26 [[Image(runningTestServer.png)]] 27 27 28 By default REPTest.java creates a REP listening on HTTP port 8185. It attaches a RAIHandler of type SensorType for a dummy light sensor. 29 The hard coded light value is read from the file xml/sensors/light.rdf. It can be requested by a REST GET method call on http://localhost:8185/rep/s/light. 28 5. The REP can now be tested with a suitable REST client. 29 To request a value from a dummy light sensor reading from the file xml/sensors/light.rdf 30 use a REST GET method call on http://localhost:8188/rep/s/light 30 31 31 The response is the Observation and Measurement value in XML-RDF syntax. 32 [[Image(GETlight.png)]] 33 34 The response is the Observation and Measurement value in XML-RDF syntax, which is returned in the Response body. 32 35 33 36 {{{ … … 50 53 }}} 51 54 55 The example REP also offers value from a dummy temperature sensor reading from the file xml/sensors/temp.rdf 56 57 [[Image(GETtemp.png)]] 58 59 52 60 == REST client tools == 53 61