haskell-servant/servant

Implement a "CaptureSome" combinator

Open

#962 opened on May 23, 2018

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Haskell (422 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (1,953 stars)
PR merge metrics
 (Avg merge 5h 49m) (2 merged PRs in 30d)

Description

There exist in the wild APIs such as this:

GET /v2/<name>/manifests/<reference>
GET /v2/<name>/tags/list

where <name> comprises one or more path segments. It would be nice to be able to do something like this:

"v2" :> CaptureSome "name" [String] :> "manifests" :> Capture "reference" String :> Get ...
"v2" :> CaptureSome "name" [String] :> "tags" :> "list" :> Get ...

to support them.

Contributor guide