haskell-servant/servant

Implement a "CaptureSome" combinator

Open

#962 aperta il 23 mag 2018

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)Haskell (422 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (1953 star)
Metriche merge PR
 (Merge medio 23h 44m) (4 PR mergiate in 30 g)

Descrizione

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.

Guida contributor