Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7597453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:09:38+00:00 2026-05-30T22:09:38+00:00

I have a Clojure service that I’m exposing via REST. I have a page

  • 0

I have a Clojure service that I’m exposing via REST. I have a page defined as:

(defpage "/package_versions/:id" {:keys [id]}
  (do
    (println "ID: " id)
    (if-let [pv (pv/fetch-one (db/keyspace) id)]
      (response/json pv)
      (response/status 404 nil))))

What characters are allowed for id? The slugs 1-2-3, 1|2|3, 1_2_3 all work, but 1.2.3 doesn’t. Is there a way to make slugs which contain . work? What are the allowed characters in noir routes? Which code is responsible for this behavior: noir, ring, compojure?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T22:09:40+00:00Added an answer on May 30, 2026 at 10:09 pm

    Have a look at the Clout test cases.

    The slugs used in the tests don’t really have special characters in them so I don’t know what characters are legal, but at the end of the file there’s an example of how to define a custom route matcher that presumably can be used to match dots if you so desire.

    I would expect that you can plug the custom route matcher into Noir with either noir.core/compojure-route or noir.core/custom-handler.

    Also, there are tests with literal dots in them, e.g. "/foo.:ext that matches URLs like /foo.txt, so I wouldn’t be surprised if it was a feature, not a bug, to not allow dots in slugs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a couple of questions about Hello World in Clojure: (println Hello, world!)
I have a clojure project that uses the slick 2d game engine that I
I have Clojure function that returns a LazySeq. When I run this function from
I have Clojure function that takes a sequence of numbers chops it into the
I have some Clojure code that seems maddeningly simple and yet is throwing an
In clojure I have lines like this that define default values: (def *http-port* 8080)
Rich Hickey and others have mentioned that Clojure will not get a significant improvement
I have a clojure program that at some point executes a function called db-rebuild-files-table
I've noticed that Java, Python, Perl, and Haskell/Clojure have distinctively different treatment of static
I have a basic Clojure script containing: (def test (future (loop [] (println Running)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.