torikatsupg / rust_todo_server

This is todo server with actix-web.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TODO server

getting start

$ cargo run

endpoints

description show all tasks.

curl

$ curl 'http://127.0.0.1:8080/tasks'

description create new task.

header

Content-Type:application/json

body

{
  "name": ${task name}
}

curl

$ curl 'http://127.0.0.1:8080/tasks'\
-H 'Content-Type:application/json'\
-d '{"name":"finish homework"}'

description toggle task status.

params

${task_id}: target task id.

curl

$ curl -X PATCH 'http://127.0.0.1:8080/tasks/8695086d-943f-4313-a9a0-41bdecd17e9a'

description deelte task.

params

${task_id}: target task id.

curl

$ curl -X DELETE 'http://127.0.0.1:8080/tasks/8695086d-943f-4313-a9a0-41bdecd17e9a'

About

This is todo server with actix-web.


Languages

Language:Rust 100.0%