Skip to content

krivcikfilip/go-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GO Api

my first touch with go language

Technologies

How to run

Docker

docker compose up

With Air

air

Without Air

go run main.go

Endpoints

prefix /api

Categories

Method Route Body
GET /categories
GET /categories/:id
POST /categories {"name": "scifi" }
PUT /categories/:id {"name": "drama" }

Books

Method Route Body
GET /books
GET /books/:id
POST /books {"name": "harry potter"
PUT /books/:id {"name": "harry potter 2", "categories": [1, 2] } }

About

First touch with go language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors