-
-
Notifications
You must be signed in to change notification settings - Fork 1
Routes
Manolo Cantón edited this page Aug 20, 2024
·
13 revisions
SceneManagerRoute
is a custom resource that defines a route for a client with the following properties:
-
client
. It cannot benull
for now. See Clients. -
uri_pattern
. Request URI. It should start with/
. Example:/posts/{id}/{edit?}
. Ifid
is a key instart
method param, then{id}
is replaced by its value. Ifedit
key does not exist, URI is/posts/{id}
. -
headers
. Default headers for requests created with this route. -
method
. Request method: GET, POST, PUT... -
priority
. Request priority in the client. A lower priority value is requesting before. -
auth_type
. Authorization type. It is used to add headers. -
auth_route
. Route to request authorization.
The routes folder has some examples.