Closed elchicodepython closed 4 years ago
Namespaces are already resolved in feature/just-testing-ideas-for-the-structure branch that will be merged to develop soon. Each namespace will be defined in the manifest.json file of the level.
Levels does'nt need to define urls or views, just actions and the game sdk will provide the endpoints and business logic.
Namespacing API
As its described here #5 , there is a need of having a way to define a namespace inside game level configuration.
High level idea of implementation (Not final)
settings.py
urls.py
from .settings import namespace from .views import openDoor
path = Path(namespace)
urlpatterns = [ path('actions/openDoor', openDoor), ]