diff --git a/README.md b/README.md index 32e0bb98..223d96c0 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ There is [#reitit](https://clojurians.slack.com/messages/reitit/) in [Clojurians All main modules bundled: ```clj -[metosin/reitit "0.7.0-alpha5"] +[fi.metosin/reitit "0.7.0-alpha5"] ``` Optionally, the parts can be required separately. diff --git a/doc/README.md b/doc/README.md index bd862406..df085f95 100644 --- a/doc/README.md +++ b/doc/README.md @@ -41,7 +41,7 @@ There is [#reitit](https://clojurians.slack.com/messages/reitit/) in [Clojurians All bundled: ```clj -[metosin/reitit "0.7.0-alpha5"] +[fi.metosin/reitit "0.7.0-alpha5"] ``` Optionally, the parts can be required separately. diff --git a/doc/basics/error_messages.md b/doc/basics/error_messages.md index 3545c27a..81fe1f82 100644 --- a/doc/basics/error_messages.md +++ b/doc/basics/error_messages.md @@ -22,7 +22,7 @@ The default exception formatting uses `reitit.exception/exception`. It produces ## Pretty Errors ```clj -[metosin/reitit-dev "0.7.0-alpha5"] +[fi.metosin/reitit-dev "0.7.0-alpha5"] ``` For human-readable and developer-friendly exception messages, there is `reitit.dev.pretty/exception` (in the `reitit-dev` module). It is inspired by the lovely errors messages of [ELM](https://elm-lang.org/blog/compiler-errors-for-humans) and [ETA](https://twitter.com/jyothsnasrin/status/1037703436043603968) and uses [fipp](https://github.com/brandonbloom/fipp), [expound](https://github.com/bhb/expound) and [spell-spec](https://github.com/bhauman/spell-spec) for most of heavy lifting. diff --git a/doc/cljdoc.edn b/doc/cljdoc.edn index 5a8cfdc5..54a29ddc 100644 --- a/doc/cljdoc.edn +++ b/doc/cljdoc.edn @@ -1,18 +1,18 @@ {:cljdoc/include-namespaces-from-dependencies - [metosin/reitit - metosin/reitit-core - metosin/reitit-dev - metosin/reitit-ring - metosin/reitit-http - metosin/reitit-middleware - metosin/reitit-interceptors - metosin/reitit-spec - metosin/reitit-schema - metosin/reitit-swagger - metosin/reitit-swagger-ui - metosin/reitit-frontend - metosin/reitit-sieppari - metosin/reitit-pedestal + [fi.metosin/reitit + fi.metosin/reitit-core + fi.metosin/reitit-dev + fi.metosin/reitit-ring + fi.metosin/reitit-http + fi.metosin/reitit-middleware + fi.metosin/reitit-interceptors + fi.metosin/reitit-spec + fi.metosin/reitit-schema + fi.metosin/reitit-swagger + fi.metosin/reitit-swagger-ui + fi.metosin/reitit-frontend + fi.metosin/reitit-sieppari + fi.metosin/reitit-pedestal fi.metosin/reitit-openapi] :cljdoc.doc/tree [["Introduction" {:file "doc/README.md"}] diff --git a/doc/http/default_interceptors.md b/doc/http/default_interceptors.md index 946b8d24..546d0638 100644 --- a/doc/http/default_interceptors.md +++ b/doc/http/default_interceptors.md @@ -1,13 +1,13 @@ # Default Interceptors ```clj -[metosin/reitit-interceptors "0.7.0-alpha5"] +[fi.metosin/reitit-interceptors "0.7.0-alpha5"] ``` Just like the [ring default middleware](../ring/default_middleware.md), but for interceptors. ### Parameters handling -* `reitit.http.interceptors.parameters/parameters-interceptor` +* `reitit.http.interceptors.parameters/parameters-interceptor` ### Exception handling * `reitit.http.interceptors.exception/exception-interceptor` diff --git a/doc/http/interceptors.md b/doc/http/interceptors.md index aeca65bc..f03048b1 100644 --- a/doc/http/interceptors.md +++ b/doc/http/interceptors.md @@ -5,7 +5,7 @@ Reitit has also support for [interceptors](http://pedestal.io/reference/intercep ## Reitit-http ```clj -[metosin/reitit-http "0.7.0-alpha5"] +[fi.metosin/reitit-http "0.7.0-alpha5"] ``` A module for http-routing using interceptors instead of middleware. Builds on top of the [`reitit-ring`](../ring/ring.md) module having all the same features. diff --git a/doc/http/pedestal.md b/doc/http/pedestal.md index 3c21b5bd..7f268928 100644 --- a/doc/http/pedestal.md +++ b/doc/http/pedestal.md @@ -3,7 +3,7 @@ [Pedestal](http://pedestal.io/) is a backend web framework for Clojure. `reitit-pedestal` provides an alternative routing engine for Pedestal. ```clj -[metosin/reitit-pedestal "0.7.0-alpha5"] +[fi.metosin/reitit-pedestal "0.7.0-alpha5"] ``` Why should one use reitit instead of the Pedestal [default routing](http://pedestal.io/reference/routing-quick-reference)? @@ -26,8 +26,8 @@ A minimalistic example on how to to swap the default-router with a reitit router ```clj ; [io.pedestal/pedestal.service "0.5.5"] ; [io.pedestal/pedestal.jetty "0.5.5"] -; [metosin/reitit-pedestal "0.7.0-alpha5"] -; [metosin/reitit "0.7.0-alpha5"] +; [fi.metosin/reitit-pedestal "0.7.0-alpha5"] +; [fi.metosin/reitit "0.7.0-alpha5"] (require '[io.pedestal.http :as server]) (require '[reitit.pedestal :as pedestal]) diff --git a/doc/http/sieppari.md b/doc/http/sieppari.md index 9f7e341e..2a7683ab 100644 --- a/doc/http/sieppari.md +++ b/doc/http/sieppari.md @@ -1,7 +1,7 @@ # Sieppari ```clj -[metosin/reitit-sieppari "0.7.0-alpha5"] +[fi.metosin/reitit-sieppari "0.7.0-alpha5"] ``` [Sieppari](https://github.com/metosin/sieppari) is a new and fast interceptor implementation for Clojure, with pluggable async supporting [core.async](https://github.com/clojure/core.async), [Manifold](https://github.com/ztellman/manifold) and [Promesa](http://funcool.github.io/promesa/latest). diff --git a/doc/http/transforming_interceptor_chain.md b/doc/http/transforming_interceptor_chain.md index 1ca869b9..d232daf1 100644 --- a/doc/http/transforming_interceptor_chain.md +++ b/doc/http/transforming_interceptor_chain.md @@ -65,7 +65,7 @@ There is an extra option in http-router (actually, in the underlying interceptor ### Printing Context Diffs ```clj -[metosin/reitit-interceptors "0.7.0-alpha5"] +[fi.metosin/reitit-interceptors "0.7.0-alpha5"] ``` Using `reitit.http.interceptors.dev/print-context-diffs` transformation, the context diffs between each interceptor are printed out to the console. To use it, add the following router option: diff --git a/doc/ring/default_middleware.md b/doc/ring/default_middleware.md index 2f501d2c..51f35fb1 100644 --- a/doc/ring/default_middleware.md +++ b/doc/ring/default_middleware.md @@ -1,7 +1,7 @@ # Default Middleware ```clj -[metosin/reitit-middleware "0.7.0-alpha5"] +[fi.metosin/reitit-middleware "0.7.0-alpha5"] ``` Any Ring middleware can be used with `reitit-ring`, but using data-driven middleware is preferred as they are easier to manage and in many cases yield better performance. `reitit-middleware` contains a set of common ring middleware, lifted into data-driven middleware. diff --git a/doc/ring/exceptions.md b/doc/ring/exceptions.md index a4376a5a..bd4865b0 100644 --- a/doc/ring/exceptions.md +++ b/doc/ring/exceptions.md @@ -1,7 +1,7 @@ # Exception Handling with Ring ```clj -[metosin/reitit-middleware "0.7.0-alpha5"] +[fi.metosin/reitit-middleware "0.7.0-alpha5"] ``` Exceptions thrown in router creation can be [handled with custom exception handler](../basics/error_messages.md). By default, exceptions thrown at runtime from a handler or a middleware are not caught by the `reitit.ring/ring-handler`. A good practice is to have a top-level exception handler to log and format errors for clients. diff --git a/doc/ring/ring.md b/doc/ring/ring.md index f94db5f7..52c6e5ca 100644 --- a/doc/ring/ring.md +++ b/doc/ring/ring.md @@ -5,7 +5,7 @@ Read more about the [Ring Concepts](https://github.com/ring-clojure/ring/wiki/Concepts). ```clj -[metosin/reitit-ring "0.7.0-alpha5"] +[fi.metosin/reitit-ring "0.7.0-alpha5"] ``` ## `reitit.ring/router` diff --git a/doc/ring/swagger.md b/doc/ring/swagger.md index d9bdad0b..fcd0bc24 100644 --- a/doc/ring/swagger.md +++ b/doc/ring/swagger.md @@ -1,7 +1,7 @@ # Swagger Support ``` -[metosin/reitit-swagger "0.7.0-alpha5"] +[fi.metosin/reitit-swagger "0.7.0-alpha5"] ``` Reitit supports [Swagger2](https://swagger.io/) documentation, thanks to [schema-tools](https://github.com/metosin/schema-tools) and [spec-tools](https://github.com/metosin/spec-tools). Documentation is extracted from route definitions, coercion `:parameters` and `:responses` and from a set of new documentation keys. @@ -47,7 +47,7 @@ If you need to post-process the generated spec, just wrap the handler with a cus [Swagger-ui](https://github.com/swagger-api/swagger-ui) is a user interface to visualize and interact with the Swagger specification. To make things easy, there is a pre-integrated version of the swagger-ui as a separate module. ``` -[metosin/reitit-swagger-ui "0.7.0-alpha5"] +[fi.metosin/reitit-swagger-ui "0.7.0-alpha5"] ``` `reitit.swagger-ui/create-swagger-ui-handler` can be used to create a ring-handler to serve the swagger-ui. It accepts the following options: diff --git a/doc/ring/transforming_middleware_chain.md b/doc/ring/transforming_middleware_chain.md index ff742c80..f8a01859 100644 --- a/doc/ring/transforming_middleware_chain.md +++ b/doc/ring/transforming_middleware_chain.md @@ -59,7 +59,7 @@ There is an extra option in the Ring router (actually, in the underlying middlew ### Printing Request Diffs ```clj -[metosin/reitit-middleware "0.7.0-alpha5"] +[fi.metosin/reitit-middleware "0.7.0-alpha5"] ``` Using `reitit.ring.middleware.dev/print-request-diffs` transformation, the request diffs between each middleware are printed out to the console. To use it, add the following router option: