practicalli / practicalli/clojure-web-services

reitit - capture parameters

Open
#19 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

API reitit
Dominant language
Markdown
Stars
16
Forks
14
PR merge metrics
No merged PRs in 30d

Description

capture params that are multiple path parts
/path/{rest/of/the/path)

/path/{*path} that'll make it available under path

reitit route-syntax is defined here, for future reference: https://cljdoc.org/d/metosin/reitit/CURRENT/doc/basics/route-syntax

in compojure that would just be /path/:stuff and then you'd have that all in stuff (and you can use regex to specify a pattern

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked reitit route-syntax reference and locating the repository's routing setup. Verify how a route such as /path/{*path} should capture multiple path parts under path, then demonstrate the expected behavior in the relevant example and add coverage if routing tests are present.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.