Capture is a Servant combinator for declaring a typed variable segment in an endpoint route. When a route matches, Servant passes the captured value to the endpoint implementation. section 17.1.1
Capturing a route value
The API type `"select" :> Capture "id" String :> Get '[JSON] SomeType` matches `/select/this` and passes `this` to the implementation. Capture can use other types too, such as `Int` in a todo-list toggle route. section 17.1.1
