rest_client
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| rest_client [2021/09/29 14:42] – wikiadmin | rest_client [2021/09/29 15:32] (current) – wikiadmin | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| then browse to the file. TransSECS will install the module. | then browse to the file. TransSECS will install the module. | ||
| + | |||
| + | You need to be running the " | ||
| + | |||
| + | {{: | ||
| ===== Adding REST servers ===== | ===== Adding REST servers ===== | ||
| Line 163: | Line 167: | ||
| You can test the sample REST project with the StandAloneGEMTool application that is part of TransSECS, or with the TransSECS [[runningthegeneratedequipmentsimulator|Equipment Simulator]] created from your host project. | You can test the sample REST project with the StandAloneGEMTool application that is part of TransSECS, or with the TransSECS [[runningthegeneratedequipmentsimulator|Equipment Simulator]] created from your host project. | ||
| - | With the StandAloneGEMTool | + | For testing, |
| - | {{:pasted: | + | < |
| + | docker run -p 7000:7000 --name restdemo | ||
| + | </ | ||
| + | Using the " | ||
| + | |||
| + | < | ||
| + | curl -X PUT -H " | ||
| + | </ | ||
| + | |||
| + | With the StandAloneGEMTool you can make the connection from your TransSECS host as normal. | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Once you're connected set the Lot ID field to " | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Select the " | ||
| + | |||
| + | {{: | ||
| + | |||
| + | You will see the event sent to the host, with the recipe " | ||
| + | |||
| + | Choose the " | ||
| + | |||
| + | < | ||
| + | curl -X GET -w " | ||
| + | </ | ||
| + | |||
| + | (If you want to change the value in the REST server to be sure that it's actually chaning on the COMPLETED event, this command will set it to 22: | ||
| + | |||
| + | < | ||
| + | curl -X PUT -H " | ||
| + | </ | ||
| + | ) | ||
rest_client.1632940953.txt.gz · Last modified: by wikiadmin
