All URIs are relative to http://localhost:7777
| Method | HTTP request | Description |
|---|---|---|
| d_elete_api_world_objects_id | DELETE /api/world/objects/{id} | |
| g_et_api_player | GET /api/player | |
| g_et_api_world | GET /api/world | |
| g_et_api_world_doors | GET /api/world/doors | |
| g_et_api_world_doors_id | GET /api/world/doors/{id} | |
| g_et_api_world_objects | GET /api/world/objects | |
| g_et_api_world_objects_id | GET /api/world/objects/{id} | |
| p_atch_api_player | PATCH /api/player | |
| p_atch_api_world | PATCH /api/world | |
| p_atch_api_world_doors_id | PATCH /api/world/doors/{id} | |
| p_atch_api_world_objects_id | PATCH /api/world/objects/{id} | |
| p_ost_api_player_actions | POST /api/player/actions | |
| p_ost_api_world_objects | POST /api/world/objects |
d_elete_api_world_objects_id(id)
Delete the specified map object
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = 'id_example' # str |
try:
api_instance.d_elete_api_world_objects_id(id)
except ApiException as e:
print("Exception when calling DefaultApi->d_elete_api_world_objects_id: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Player g_et_api_player()
Query the player
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.DefaultApi()
try:
api_response = api_instance.g_et_api_player()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->g_et_api_player: %s\n" % e)This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
World g_et_api_world()
Query the current world state
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.DefaultApi()
try:
api_response = api_instance.g_et_api_world()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->g_et_api_world: %s\n" % e)This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Door] g_et_api_world_doors()
Query door items
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.DefaultApi()
try:
api_response = api_instance.g_et_api_world_doors()
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->g_et_api_world_doors: %s\n" % e)This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Door g_et_api_world_doors_id(id)
Query the specified door
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = 'id_example' # str | door id
try:
api_response = api_instance.g_et_api_world_doors_id(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->g_et_api_world_doors_id: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str | door id |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[MapObject] g_et_api_world_objects(distance)
Query map object items
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.DefaultApi()
distance = 'distance_example' # str | Only return items up to this distance from player
try:
api_response = api_instance.g_et_api_world_objects(distance)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->g_et_api_world_objects: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| distance | str | Only return items up to this distance from player |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MapObject g_et_api_world_objects_id(id)
Query the specified map object
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = 'id_example' # str |
try:
api_response = api_instance.g_et_api_world_objects_id(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->g_et_api_world_objects_id: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Player p_atch_api_player(body)
Update the player
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body = swagger_client.Player() # Player |
try:
api_response = api_instance.p_atch_api_player(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->p_atch_api_player: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | Player |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
World p_atch_api_world(body)
Update the current world state
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body = swagger_client.World() # World |
try:
api_response = api_instance.p_atch_api_world(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->p_atch_api_world: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | World |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Door p_atch_api_world_doors_id(id, body)
Update the specified door
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = 'id_example' # str | door id
body = swagger_client.Door() # Door |
try:
api_response = api_instance.p_atch_api_world_doors_id(id, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->p_atch_api_world_doors_id: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str | door id | |
| body | Door |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MapObject p_atch_api_world_objects_id(id, body)
Update the specifed map object
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.DefaultApi()
id = 'id_example' # str |
body = swagger_client.MapObject() # MapObject |
try:
api_response = api_instance.p_atch_api_world_objects_id(id, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->p_atch_api_world_objects_id: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| id | str | ||
| body | MapObject |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
p_ost_api_player_actions(body)
Create an action for the player to perform
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body = swagger_client.PlayerAction() # PlayerAction |
try:
api_instance.p_ost_api_player_actions(body)
except ApiException as e:
print("Exception when calling DefaultApi->p_ost_api_player_actions: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | PlayerAction |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MapObject p_ost_api_world_objects(body)
Spawn a new map object
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.DefaultApi()
body = swagger_client.SpawnMapObject() # SpawnMapObject |
try:
api_response = api_instance.p_ost_api_world_objects(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->p_ost_api_world_objects: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| body | SpawnMapObject |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]