scripting:restcontext
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
scripting:restcontext [2022/08/25 14:35] – created jerryhopper | scripting:restcontext [2022/08/25 15:03] (current) – jerryhopper | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
**Class:** RestContext | **Class:** RestContext | ||
Line 14: | Line 14: | ||
===== Common usage ===== | ===== Common usage ===== | ||
- | The baseworld component is returned on the GetWorld() global command. | + | The restAPI allows interaction with external webresources in JSON format. |
- | + | ||
- | Typical usage : [[scripting: | + | |
- | + | ||
- | GetWorld().FindEntityByName( string entity-name ) | + | |
+ | Typical usage : statistics/ | ||
--- | --- | ||
Line 39: | Line 35: | ||
Return type: [[scripting: | Return type: [[scripting: | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== FILE(); ==== | ||
+ | |||
+ | FILE(RestCallback cb, string request, string filename); | ||
+ | |||
+ | Return type: [[scripting: | ||
+ | |||
+ | |||
+ | ==== FILE_now(); ==== | ||
+ | |||
+ | FILE_now( string request, | ||
+ | |||
+ | Return type: [[scripting: | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ==== POST(); ==== | ||
+ | |||
+ | POST(RestCallback cb, string request, | ||
+ | |||
+ | Return type: [[scripting: | ||
+ | |||
+ | |||
+ | ==== POST_now(); ==== | ||
+ | |||
+ | POST_now( string request, | ||
+ | |||
+ | Return type: [[scripting: | ||
+ | |||
+ | |||
+ | ==== reset(); ==== | ||
+ | |||
+ | reset(); | ||
+ | | ||
+ | Return type: [[scripting: | ||
scripting/restcontext.1661434548.txt.gz · Last modified: 2022/08/25 14:35 by jerryhopper