Categorygithub.com/Kivanc10/task-app-for-westerOps
modulepackage
0.0.0-20220213175152-70988a543747
Repository: https://github.com/kivanc10/task-app-for-westerops.git
Documentation: pkg.go.dev

# README

task-app-for-westerOps

Todo app for company named WesterOps

base_url = http://143.198.109.111:8080/

add new todo

  • POST --> http://143.198.109.111:8080/addTodo

  • curl -X POST http://143.198.109.111:8080/addTodo -H "Content-Type: application/json" -d '{"owner": "user_westerops", "context": "from web","completed" : "false"}'

get all todos

  • GET ---> http://143.198.109.111:8080/todos
  • curl -X GET http://143.198.109.111:8080/todos

get all completed todos

  • GET ---> http://143.198.109.111:8080/todos/completed
  • curl -X GET http://143.198.109.111:8080/todos/completed

get all uncompleted todos

  • GET ---> http://143.198.109.111:8080/todos/uncompleted
  • curl -X GET http://143.198.109.111:8080/todos/uncompleted

delete todo by id

  • DELETE --> http://143.198.109.111:8080/delete/{id}
  • curl -X DELETE http://143.198.109.111:8080/delete/3

update todo's state of complete

  • POST ---> http://143.198.109.111:8080/update/{id}
  • curl -X POST http://143.198.109.111:8080/update/3 -H "Content-Type: application/json" -d '{"completed" : "true"}'

# Packages

No description provided by the author
No description provided by the author
No description provided by the author