Support a basic API
Use Servant to create a REST API supporting the following routes: - GET /number - POST /other The server interacts with a SQLite database.
This commit is contained in:
parent
ec90748b82
commit
660b8d43e5
4 changed files with 50 additions and 0 deletions
|
|
@ -3,6 +3,11 @@ let
|
|||
in pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
(haskellPackages.ghcWithPackages (hpkgs: with hpkgs; [
|
||||
hpkgs.servant-server
|
||||
hpkgs.aeson
|
||||
hpkgs.resource-pool
|
||||
hpkgs.sqlite-simple
|
||||
hpkgs.warp
|
||||
]))
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue