Skip to content

tobive/rust_rocket_todo_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Todo List Server with RUST and ROCKET

Homework from RUST class 8/8/2019

Todo list

  • GET list?query="string"
  • POST data=string
  • DELETE by query="string"

Bonus

  • use json
  • save list in file

to start the server:

cargo run

example query:

GET

curl -X GET http://localhost:8000/api/list

curl -X GET http://localhost:8000/api/list?query=one

POST

curl -d '{"title":"ten", "content":"data ten"}' -H "Content-Type:application/json" -X POST http://localhost:8000/api/post

DELETE

curl -X DELETE http://localhost:8000/api/delete?query=ten

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages