

GitHub - NickGowdy/todo-list-golang: Simple TODO list app using Golang
source link: https://github.com/NickGowdy/todo-list-golang
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

TODO list API written with Golang, Gin and Gorm
To run this API you will need: Docker.
Once this is installed use the command: docker compose up -d
to start up the API and it's Postgres database.
To GET todos, run:
curl localhost:8080/todos
Or to GET a single todo, run:
curl localhost:8080/todos/1
To POST a todo, run:
curl http://localhost:8080/todos \
--include \
--header "Content-Type: application/json" \
--request "POST" \
--data '{"value": "A new TODO", "isComplete": false}'
To PUT a todo, run:
curl http://localhost:8080/todos/1 \
--include \
--header "Content-Type: application/json" \
--request "PUT" \
--data '{"id": 1, "value": "A new TODO 1111","isComplete": true}'
To delete a todo, run:
curl http://localhost:8080/todos/1 \
--include \
--header "Content-Type: application/json" \
--request "DELETE" \'
Recommend
-
37
Todo List (ncurses) Author: Aseem Lalfakawma Screenshot
-
8
Flask实践:待办事项(ToDo-List) 2条回复 这一次我用Flask实现了一个待办事项(To-Do List)应用。这篇文章主要介绍这个应用的大致实现过程和一...
-
23
During the past months, I have been learning and writing about Dynamic Data and how we can use it to handle our collections in a reactive way. In this...
-
8
coinflip-expo This is a very simple app build with React Native using Typescript Visit this link to view web deployment: https://todo-list-lemon-two.vercel.app/ I...
-
11
Todo A Simple Todo List App With React Native Nov 09, 2021...
-
13
-
10
Todo Search plugin Vim plugin to search in three ways all the TODO labels for files. Better served with awelormro/Todo-highlight.vim. Commands The current included commands are: FixmeFilenam...
-
9
Form3 API Client Library This is a client library used to access the Form3 Account API. It provides a common interface for fetching, creating and deleting account records. This code was written by Nick Gowdy, I'm...
-
10
Recipes API This API provides all that you need to create and manage a list of recipes
-
6
Mars Rover Challenge A squad of robotic rovers are to be landed by NASA on a plateau on Mars. This plateau, which is curiously rectangular, must be navigated by the rovers so that their on board cameras can get a complete view of the surr...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK