Skip to content

ТЗ на golang

Notifications You must be signed in to change notification settings

LaFut/go-todos-api

Repository files navigation

go-todos-api

docker-composer up -d

swagger: http://localhost:8080/doc/swagger.json

get todos

curl -v -H "Content-Type: application/json"  localhost:8080/api/todos

get todo

curl -v -H "Content-Type: application/json"  localhost:8080/api/todos/:id

add

curl -d '{  "name": "test",   "parentid": 0 }' -H 'Content-Type: application/json'  localhost:8080/api/todos

change

curl -d '{  "name": "test",   "parentid": 0 }' -H 'Content-Type: application/json' -X PUT  localhost:8080/api/todos/:id

delete

curl -X DELETE  localhost:8080/api/todos/:id

About

ТЗ на golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published