haskell-servant/servant

Implement a "CaptureSome" combinator

Open

#962 aberto em 23 de mai. de 2018

Ver no GitHub
 (3 comments) (0 reactions) (0 assignees)Haskell (422 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (1.953 stars)
Métricas de merge de PR
 (Mesclagem média 23h 44m) (4 fundiu PRs em 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.

Guia do colaborador