Tommi Reiman
055a03c793
prepare
2018-07-27 15:10:02 +03:00
Tommi Reiman
bf3007bfe1
Support for sequential child routes
2018-07-26 10:07:49 +03:00
Juho Teperi
ba10470fbb
Merge pull request #118 from metosin/frontend-routing-3
...
Frontend routing 3
2018-07-24 14:02:53 +03:00
Juho Teperi
08156f6a6d
Replace Closure Html5History
...
- Create History protocol and two implementations: FragmentHistory and
Html5History
- API follows now Html5 history, i.e. push-state and replace-state
- path-prefix is removed
2018-07-24 13:58:22 +03:00
Juho Teperi
d54c05426c
Share router between history tests
2018-07-24 11:45:51 +03:00
Matthew Davidson
f6054a7c40
Add URL-decoding support
...
Enables matching URLs with %-encoded chars, and decodes path params.
Currently Reitit cannot handle %-encoded paths, even though they can be
quite common (like `/search/my random search string`)
E.g.:
Successfully match `/space in path` to `/space%20in%20path`
Match `/path/:param1` to `/path/foo%20bar` and see
`:param1` => `"foo bar"` in path params
Does not apply %-decoding to routes, only URLs
Does not guarantee decoding '+' into a space. (Java's URLDecoder
supports it, but it shouldn't for URL path part.)
2018-07-23 00:53:53 -04:00
Tommi Reiman
16856749b1
handle name conflicts in router
2018-07-21 09:48:07 +03:00
Tommi Reiman
8b6bc9bb80
[:swagger :id] defaults to :reitit.swagger/default
2018-07-21 09:38:44 +03:00
Tommi Reiman
d6d2ee478c
r/routes & r/compiled-routes
2018-07-18 12:17:16 +03:00
Tommi Reiman
346fbad775
Fix #109
2018-07-16 09:34:52 +03:00
Juho Teperi
5024223280
Fix capture-console on node
2018-07-12 12:49:14 +03:00
Juho Teperi
8971c8fd2b
Add tests for missing route and params warnings
2018-07-12 12:49:14 +03:00
Juho Teperi
aeadfad880
Add path and query params to frontend example
2018-07-12 12:49:14 +03:00
Juho Teperi
06b641398a
Run history tests only on browser
2018-07-12 12:49:14 +03:00
Juho Teperi
245902bd4d
Use query-string fn in core
2018-07-12 12:49:14 +03:00
Juho Teperi
50faacab25
Fix tests
2018-07-12 12:48:20 +03:00
Juho Teperi
6553795cb5
Add some frontend history tests
2018-07-12 12:46:45 +03:00
Juho Teperi
3611a1bafe
Fix frontend routing tests, add controller ns
2018-07-12 12:46:45 +03:00
Juho Teperi
417f35a318
Create example
2018-07-12 12:46:41 +03:00
Tommi Reiman
1993dee5f2
demo normal swagger-responses
2018-06-25 10:18:40 +03:00
Tommi Reiman
1bab89b1a0
more tests
2018-06-24 19:28:50 +03:00
Tommi Reiman
3af1bd2083
Allow empty response :body for Swagger
2018-06-24 19:20:22 +03:00
Tommi Reiman
f6c460d05c
If response body is not defined, response is passed as-is
2018-06-24 18:36:55 +03:00
Tommi Reiman
15c12dfb83
fix tests
2018-06-14 18:14:15 +03:00
Tommi Reiman
1923f2d08e
handle query-parameters in reverse routing
2018-06-14 17:57:36 +03:00
Tommi Reiman
26be209d3a
handle nil with IntoString
2018-06-14 17:50:24 +03:00
Tommi Reiman
771128c281
Support all parameter types
2018-06-14 13:40:32 +03:00
Tommi Reiman
bcc2564498
default coercion format reads from Muuntaja keys
2018-06-11 08:52:53 +03:00
Tommi Reiman
0cafb9639d
.
2018-06-06 10:34:23 +03:00
Tommi Reiman
4a4cd5ae9e
response/redirect
2018-06-06 10:34:23 +03:00
Tommi Reiman
80283dbbd2
Better tests for the static files
2018-06-06 10:34:23 +03:00
Tommi Reiman
7a544cd52d
Better handling of nil in routing
2018-06-06 10:34:23 +03:00
Tommi Reiman
d48515e084
Strip nil routes from all positions
2018-06-06 10:34:23 +03:00
Kirill Chernyshov
43f5a9ebe8
Fixes after review
...
* Support catch-all-param as a swagger path template part
2018-05-29 01:07:22 +02:00
Kirill Chernyshov
b7341265e9
Fix paths in swagger.json for endpoints with path parameters
2018-05-28 18:09:03 +02:00
Tommi Reiman
e295861fe5
Test all working paths with static-handlers
2018-05-20 21:51:54 +03:00
Tommi Reiman
11ef36652c
cljdoc
2018-05-18 18:42:10 +03:00
Tommi Reiman
8a320164a4
welcome swagger-ui!
2018-05-14 08:21:47 +03:00
Tommi Reiman
e137b8baec
linear-router serves unnamed catch-all paths
2018-05-14 08:21:03 +03:00
Tommi Reiman
027d46508b
Update deps
2018-05-14 08:20:29 +03:00
Tommi Reiman
0b711b2560
Support :index-files in create-resource-handler
2018-04-29 16:51:53 +03:00
Tommi Reiman
15719a798c
Assert that Last-Modified is set
2018-04-25 08:39:06 +03:00
Tommi Reiman
c25da60053
ring/create-resource-handler
2018-04-22 22:51:14 +03:00
Tommi Reiman
acbef8527c
ring/routes, fix async default handling
2018-04-22 22:50:17 +03:00
Tommi Reiman
f66850dacb
swagger-spec-handler => create-swagger-handler
2018-04-22 21:39:38 +03:00
Tommi Reiman
d0f0189647
swagger works now
2018-04-21 20:45:50 +03:00
Tommi Reiman
1c026569d9
Cleanup tests
2018-03-21 08:18:52 +02:00
Tommi Reiman
f547576a44
Support also booleans, more tests
2018-03-21 07:48:56 +02:00
Tommi Reiman
5ef30443ef
Initial take on IntoString
2018-03-20 16:30:53 +02:00
Tommi Reiman
f3058b90fe
Fix tests for cljs
2018-03-17 14:35:28 +02:00
Tommi Reiman
9a2a8a1f16
Tests for swagger
2018-03-17 14:19:23 +02:00
Tommi Reiman
32fb3ca294
:responses have :body, not :schema
2018-02-11 21:38:15 +02:00
Tommi Reiman
54b24be28e
:params => :path-params
2018-02-01 16:23:44 +02:00
Tommi Reiman
fda6a1e06f
Support not-found with ring
2018-01-23 20:29:22 +02:00
Tommi Reiman
fb99b4f9fd
Parameter & Response Coercion with specs
2017-12-31 11:34:37 +02:00
Tommi Reiman
07bcd2ea59
Cleanup
2017-12-31 11:34:13 +02:00
Tommi Reiman
708fa24590
rename package
2017-12-31 11:30:55 +02:00
Tommi Reiman
b7b0b7c81d
Docs for Ring spec validation
2017-12-29 11:56:01 +02:00
Tommi Reiman
9273f99806
Middleware can also contribute to router specs
2017-12-28 22:41:02 +02:00
Tommi Reiman
db77b53831
Fix tests
2017-12-27 21:37:04 +02:00
Tommi Reiman
388de03ead
Exclude chain
2017-12-26 22:42:12 +02:00
Tommi Reiman
1a9583b31b
Support ring-route-data validation
2017-12-26 22:41:17 +02:00
Tommi Reiman
06cb1301cd
Support route data validation in router
2017-12-26 22:40:34 +02:00
Tommi Reiman
b5d1ecc453
Middleware & Interceptor perf tests
2017-12-17 21:24:21 +02:00
Tommi Reiman
fd6a39aefc
Implement Interceptors like Middlewar
2017-12-12 22:27:50 +02:00
Tommi Reiman
927d4d4389
Remove middleware/create & polish stuff
2017-12-12 22:27:36 +02:00
Tommi Reiman
715968a5d2
Coercion docs
2017-12-10 16:57:09 +02:00
Tommi Reiman
a2063587b1
dead code
2017-12-09 23:32:45 +02:00
Tommi Reiman
dbe40e0145
coerce! with tests
2017-12-09 23:07:33 +02:00
Tommi Reiman
b9f032a5ce
Cleanup Coercion
2017-12-09 22:49:32 +02:00
Tommi Reiman
4b3a4110ab
Fix (cljs) tests
2017-12-05 08:58:55 +02:00
Tommi Reiman
5fdaf609c2
Guard for infinite middleware compilation
2017-12-05 08:52:53 +02:00
Tommi Reiman
259c8e01bb
Test for deeply compiled middleware
2017-12-05 08:40:21 +02:00
Tommi Reiman
22bbe38b8c
reitit.ring.middleware => reitit.middleware
2017-12-04 23:58:05 +02:00
Tommi Reiman
164473cc75
:gel-wrap => :compile
2017-12-04 22:44:13 +02:00
Tommi Reiman
e56dc4ef70
.
2017-12-04 09:02:46 +02:00
Tommi Reiman
7167c76af8
Cleanup example
2017-12-04 08:49:15 +02:00
Tommi Reiman
ba78008d90
expand the transformed mw
2017-12-04 08:36:06 +02:00
Tommi Reiman
368850b6ab
:reitit.ring.middleware/transform!
2017-12-03 21:16:23 +02:00
Tommi Reiman
8bbf2eb78c
Polish tests
2017-12-03 21:07:41 +02:00
Tommi Reiman
59aa364932
middleware/chain
2017-12-03 17:42:47 +02:00
Tommi Reiman
a436b32729
gen-wrap-* => *-middleware
2017-12-03 17:28:24 +02:00
Tommi Reiman
becd30386d
Works with ClojureScript!
2017-11-27 08:00:27 +02:00
Tommi Reiman
03d4e8c4bf
Implement coercion error handling
2017-11-26 21:51:43 +02:00
Tommi Reiman
293274fb68
implement catch-all params for segment-router
2017-11-24 18:58:48 +02:00
Tommi Reiman
e0786b73f0
Remove prefix-tree router as it's broken
2017-11-24 09:45:52 +02:00
Tommi Reiman
4490fc1685
Test the segment-router. prefix-tree fails on complex tests...
2017-11-24 09:42:53 +02:00
Tommi Reiman
5d7670de60
Welcome segment-router!
2017-11-24 09:01:05 +02:00
Tommi Reiman
2dd91d91d6
BREAKING: route :meta => :data
2017-11-18 12:47:16 +02:00
Tommi Reiman
63848838d5
respond with nil if async ring route doesn't match
...
* relates to #45
2017-11-11 22:12:06 +02:00
Tommi Reiman
44867fbcf5
:gen -> :gem-wrap in middleware
...
* as preparation for support of interceptors
2017-11-11 17:30:17 +02:00
Tommi Reiman
8bde6aefa2
Test that different routers work correctly
2017-11-11 16:46:43 +02:00
Tommi Reiman
5d7786936c
prefix-tree-router!
2017-11-10 18:12:00 +00:00
Tommi Reiman
f93a452209
Re-package & re-module
2017-10-29 09:31:28 +02:00
Tommi Reiman
8afbbee813
fast-router -> single-static-path-router
2017-10-02 17:54:37 +03:00
Tommi Reiman
e9c0639914
Fast-router if only 1 static path.
...
* 200x faster on basic benchmark than the slowest one
2017-10-02 17:54:37 +03:00
Tommi Reiman
dc5768d3cd
Fix tests
2017-10-02 08:25:10 +03:00
Tommi Reiman
a2b04f0677
Cleanup
2017-10-02 08:05:42 +03:00
Tommi Reiman
8e2e0c07f6
Polish errors
2017-09-18 08:29:52 +03:00
Tommi Reiman
07c96d2b0d
Disable spec instrumentation tests, don't work with :advanced
2017-09-08 11:25:53 +03:00