You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| GET /api/users/_:id_/tasks | /api/users/$id/tasks/get.js |
115
-
| GET /api/users/_:id_/tasks/:task| /api/users/$id/tasks/$task/get.js |
114
+
| GET /api/users/_:id_/tasks | /api/users/$id/tasks/post.js |
115
+
| GET /api/users/_:id_/tasks/:task| /api/users/$id/tasks/$task/post.js |
116
116
117
117
### Parametrized path
118
118
119
119
Adding parameters to your URL point handling is pretty simple. Probably, you already noticed from the table above, when we require some parameter, we add its name with $ in front of it in our folder name. Just make sure you don't have duplicating parameters.
| GET /api/users/_:id_/tasks/:task| /api/users/$id/tasks/$task/get.js |
123
+
| GET /api/users/_:id_/tasks/:task| /api/users/$id/tasks/$task/post.js |
124
124
125
125
```
126
126
/foxx/
127
127
--/users/
128
-
----get.js
128
+
----post.js
129
129
----post.js
130
130
----/$id/
131
-
------get.js
131
+
------post.js
132
132
------/tasks/
133
-
--------get.js
133
+
--------post.js
134
134
--------post.js
135
135
--------/$task/
136
-
----------get.js
136
+
----------post.js
137
137
```
138
138
139
139
More on path parameters you can read on [https://www.arangodb.com/docs/stable/foxx-getting-started.html#parameter-validation](https://www.arangodb.com/docs/stable/foxx-getting-started.html#parameter-validation).
@@ -214,7 +214,7 @@ Arguments used for context operations:
0 commit comments