haskell-servant/servant

Implement a "CaptureSome" combinator

Open

#962 opened on 2018年5月23日

GitHub で見る
 (3 comments) (0 reactions) (0 assignees)Haskell (1,953 stars) (422 forks)batch import
enhancementhelp wanted

説明

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.

コントリビューターガイド

Implement a "CaptureSome" combinator · haskell-servant/servant#962 | Good First Issue