1
0
Fork 0
Commit Graph

109 Commits

Author SHA1 Message Date
Alan Plum 0f4b932717
Fix Foxx routing 2017-02-14 16:36:40 +01:00
Alan Plum 2eb8f30c7f
Spring cleaning
Also removed actions.rewriteRouting as it is not actually used anywhere.
2017-02-14 16:36:40 +01:00
Alan Plum 99ba80a542
Fix off-by-one in Foxx route 2016-12-20 01:43:14 +01:00
Alan Plum 3e93980ae9
Generate unique Swagger operationIds 2016-12-12 02:32:50 +01:00
Alan Plum 9a81d2cb63
Add support for Swagger tags 2016-12-12 02:32:50 +01:00
Alan Plum f2a6864db4
Require at least one arg in route def 2016-12-12 02:32:49 +01:00
Alan Plum 8f6f022616
Unescape parts during Foxx routing 2016-11-15 17:38:15 +01:00
Alan Plum ccb251e1f5
Better handling of routers & middleware in Swagger
Fixes #2148.
2016-11-04 20:06:08 +01:00
Alan Plum f630020269
Expose static req.reverse as module.context.reverse 2016-10-31 17:38:11 +01:00
Alan Plum 33b6a2b8eb
Fix failing swagger test
Adds missing signature variant for endpoint.response method.
2016-10-26 21:06:19 +02:00
Alan Plum 0950520eb5
Implement inline middleware 2016-10-26 18:16:18 +02:00
Alan Plum fe4c4d166f
Handle multiple request body models 2016-09-29 14:16:42 +02:00
Alan Plum 4b43993eda
Port express-graphql to Foxx 2016-07-05 19:38:25 +02:00
Andreas Streichardt 6ee1f6d14a Reformat code 2016-06-30 16:57:17 +02:00
Alan Plum 24074069f9
Finalize Router/Response.md 2016-06-21 00:13:01 +02:00
Alan Plum e77e18bbc9
Fix swagger a litle bit 2016-06-20 21:41:14 +02:00
Alan Plum ab296ac829
Check trustedProxies lazily 2016-06-20 18:57:42 +02:00
Alan Plum a0b67ae7ad
Handle false-y TRUSTED_PROXIES as null 2016-06-20 18:03:48 +02:00
Alan Plum 50b8873d7c
More docs 2016-06-20 17:37:45 +02:00
Max Neunhoeffer 11adb777ca Merge branch 'devel' of ssh://github.com/ArangoDB/ArangoDB into devel 2016-06-20 00:42:00 -07:00
Max Neunhoeffer 11e3de54a1 Repair reverse proxy absolute path rewriting business. 2016-06-20 00:40:45 -07:00
Alan Plum c55f6df799
Finalize Router/Endpoints.md 2016-06-19 19:54:04 +02:00
Frank Celler 7bcc7b33f3 removed debug log messages 2016-06-17 11:42:22 +02:00
Alan Plum b289f666db
More detailed error messages in Foxx API 2016-06-16 19:52:27 +02:00
Alan Plum f593734233
Fix mounting with pathParams 2016-06-16 14:04:12 +02:00
Alan Plum c9be12eb37
If a param is declared make sure it is recognized 2016-06-16 12:08:57 +02:00
Alan Plum 48d1048f2d
Fix validateParam with auto path params 2016-06-16 11:54:24 +02:00
Alan Plum e880cd6ec3
trustProxy should be null by default
If neither ArangoDB itself nor the Foxx service specify whether proxies should be trusted, the default should not be true.
2016-06-16 11:08:37 +02:00
Alan Plum 4b65779cc4
Add req.trustProxy, req.arangoUser, req.arangoVersion 2016-06-15 17:11:57 +02:00
Alan Plum 7c40d6d58d
Don't expose internal request user to Foxx 2016-06-15 16:32:35 +02:00
Alan Plum a8219b4818
Unbreak the build I say 2016-06-14 17:20:06 +02:00
Alan Plum 0f5b4624ea
Unbreak the build 2016-06-14 17:18:40 +02:00
Alan Plum 0867e8aa87
Validate request headers also 2016-06-14 16:29:36 +02:00
Alan Plum 4466925398
Remove redundant quotes
[skip ci]
2016-06-14 16:29:33 +02:00
Alan Plum 45488ef615
Make param validation errors more descriptive 2016-06-14 16:29:31 +02:00
Alan Plum 8639ebb4cf
Rename 'reason' to 'description'
[skip ci]
2016-06-14 16:29:29 +02:00
Alan Plum 3ac6139fdc
Also format JSON body in res.write & res.body 2016-06-13 18:30:38 +02:00
Andreas Streichardt 021b71a7c1 Frontend is working 2016-06-01 17:51:39 +02:00
Alan Plum 63ccfa22a9
request.params -> request.param 2016-05-31 12:55:04 +02:00
Alan Plum 94462c90c0
Fall back to Infinity for request.range max value 2016-05-31 12:55:04 +02:00
Alan Plum d51a8bd1d6
let -> const 2016-05-24 13:12:21 +02:00
Alan Plum f758c4764e
Use yield* syntax 2016-05-24 13:12:20 +02:00
Alan Plum e7e457b560
ES6ify 2016-04-20 18:34:46 +02:00
Alan Plum a3d5c64532
Object.extend is not a function 2016-04-20 18:13:04 +02:00
Alan Plum 0529471cdc
Allow passing an error to res.throw as reason 2016-04-20 18:11:49 +02:00
Alan Plum 96aa1d9129
Add req.json 2016-04-20 17:18:51 +02:00
Alan Plum 7065d29975
Don't add default bodies 2016-04-20 17:18:51 +02:00
Alan Plum 2b0c1f6f9a
_.extend -> Object.assign 2016-04-20 15:23:03 +02:00
Alan Plum 50ae4804f6
Spacing 2016-04-20 15:23:00 +02:00
Alan Plum 7b76519bbe
Allow res.throw(status, args) 2016-04-19 18:16:18 +02:00