Skip to content

AndySakov/alist-api

Repository files navigation

ALIST API

A demo todo list api written in Scala with ZIO, zio-http and Slick

The app just models CRUD operations and stores the data in an in-memory database

API Reference

Gets all available todo items

  GET /api/v1/todos

Gets a specific todo item with id id

  GET /api/v1/todos/<id>

Create a new todo item name

  POST /api/v1/todos?name=<name>

Update a todo item id with newName

  PUT /api/v1/todos/<id>?newName=<newName>

Delete todo item id

  DELETE /api/v1/todos/<id>

Run Locally

Clone the project

  git clone https://github.com/AndySakov/alist-api.git

Go to the project directory

  cd alist-api

Start the server

  sbt run

Make a request

  curl -i http://localhost:8080/api/test/hello

About

A ZIO demo api for todo list CRUD operations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages