Skip to content

bopbi/simple-todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-todo

A Simple REST Server app, using golang and sqlite, build for testing client app, the SQLITE file already contain some example data

precondition

go-sqlite3

go get github.com/mattn/go-sqlite3

pat (for routing)

go get github.com/bmizerany/pat

REST API

  • GET ALL

      GET todos
    
  • GET BY ID, example id is 12

      GET todos/12
    
  • INSERT, it will return the json for new todo

      POST todos
    
  • UPDATE BY ID, example id is 12 and it will return the json for new todo

      PUT todos/12
    
  • DELETE BY ID, example id is 12

      DELETE todos/12
    

About

A Simple REST Server app, using golang and sqlite

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages