Skip to content

Instantly share code, notes, and snippets.

Servant Talk 8/5/2020 by Cameron

  • What is Servant and how is it different than Happstack?
    • Per servant.dev, servant is a set of packages for declaring web APIs at the type-level.

    • Per Cameron, super powerful and type safe, yet fairly confusing way to write APIs.

    • It is different than happstack in quite a few ways, but the biggest difference to us is the ability to generate swagger documentation as well as how type safe it is. A large place where Happstack fell short for us was the fact that we didn't have type safety in our routes. What do you mean by that?

          -- sample route from happstack

dirs "api/consumer-web/v2/certificate/"

Amendment Endpoint

Route: /api/supervisor/v1/amendment

Authorization: Required (Same way as Provision Endpoint)

Content-Type: application/json

Body Params:

### Keybase proof
I hereby claim:
* I am gera-cameron on github.
* I am cambo_slice (https://keybase.io/cambo_slice) on keybase.
* I have a public key ASCxBUCMB8YlJKI_BtQTBfwuGr5JChJUz0JSGMy2q0HCKAo
To claim this, I am signing this object: