Alan Plum
b76f8adc0f
Add SyntheticRequest#auth ( #8750 )
...
* Add SyntheticRequest#auth
* Fix tests
2019-04-12 21:18:35 +02:00
Heiko
def7b613db
code now fits to the documentation of the arangoUser object inside th… ( #8352 )
...
* code now fits to the documentation of the arangoUser object inside the foxx request object
* more tests
2019-03-11 12:43:59 +01:00
Alan Plum
c74583b089
Fix windows test for Foxx socket request URL ( #7536 )
...
* Fix windows test for Foxx socket request URL
* Fix unix abs path test
2018-12-10 15:44:00 +01:00
Alan Plum
c36c8c48ee
Teach Foxx req.makeAbsolute about unix sockets ( #7327 )
...
* Expose rawReq.server.endpoint in JS
* Make rawReq.portType enumerable
This is not strictly necessary but we don't gain much from hiding its existence.
* Allow using http: protocol in local requests
This helps distinguishing local request URLs from file paths in ambiguous contexts.
The alternative would require the user to specify the local endpoint but this doesn't work with
sockets (and for non-sockets would incur the penalty of a real network roundtrip).
* Teach Foxx req.makeAbsolute about unix sockets
* Add Foxx socket tests
2018-11-20 14:20:56 +01:00
Andreas Streichardt
49328dcecb
Add authorizedflag fixing cluster internal foxx requests
2017-05-17 18:14:11 +02:00
Alan Plum
5d017d733c
Improve Foxx cluster resilience ( #2479 )
...
* Improve Foxx cluster resilience
Fixes #2083
Fixes #2384
Fixes #2408
Addresses #1892
* Port old Foxx API
* Implement single-file services
* Add console.errorStack/warnStack/infoStack helpers
* Simplify serviceInfo validation
* Extract github/upload logic into Aardvark and old FM API
* Move generator logic into Aardvark
* Move zip/js buffer logic into FM core
* Add Foxxmanager tests
* Send empty response when no README
* Disambiguate script arg format
Historically we allow passing an array of positional arguments or an arbitrary first argument.
This is surprising behaviour, so we should just always treat the value as a first argument.
* Rebuild bundle in development mode
* Nicer HTTP docs formatting
* Create Foxx HTTP docs
* Simplify service upload handling
* Remove inline swagger docs
* Implement public download route
* Consistency
* Rebuild aardvark
* Move bundle route into /_api/foxx/_local
* Rebuild Swagger API docs
* Add changes to CHANGELOG
* More docs
2017-05-16 17:41:29 +02:00
Alan Plum
c919cb7be8
Add Foxx res.type helper
2017-03-15 20:09:27 +01:00
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