1
0
Fork
You've already forked polls
0
Anonymous polls api with Servant and Persistent. It was written for practice and learning
  • Haskell 87.3%
  • Nix 12.7%
Find a file
2026年05月19日 20:31:44 +05:00
app feat: structure is ready 2026年05月04日 19:46:16 +05:00
src chore: current stage 2026年05月19日 20:31:44 +05:00
.gitignore feat: structure is ready 2026年05月04日 19:46:16 +05:00
CHANGELOG.md feat: structure is ready 2026年05月04日 19:46:16 +05:00
flake.lock feat: structure is ready 2026年05月04日 19:46:16 +05:00
flake.nix feat: structure is ready 2026年05月04日 19:46:16 +05:00
LICENSE feat: structure is ready 2026年05月04日 19:46:16 +05:00
poll-learning-xfeusw.cabal chore: current stage 2026年05月19日 20:31:44 +05:00
README.md refactor: /create to / 2026年05月11日 00:23:28 +05:00
shell.nix feat: structure is ready 2026年05月04日 19:46:16 +05:00

Polls API

Simple Haskell API for managing polls and options.

Run

cabal run poll-learning-xfeusw -- -d "postgresql://postgres:postgres@localhost:4456/postgres"

Server runs at http://localhost:4004.

API

Polls

  • POST /polls/ – Create poll
  • GET /polls/:id – Get poll with options
  • GET /polls – List all polls with options

Options

  • POST /options/ – Create option
  • GET /options/:id – Get option
  • GET /options – List all options

All responses are JSON.