A simple go API Rest made by following go docs
Clone the project
git clone https://github.com/FabioRocha231/go_simple_apiEnter the project directory
cd go_simple_apiInstall the Dependencies
go get .Start the Server
go run . GET http://localhost:8080/albums GET http://localhost:8080/albums/:id| Query | Type | Description |
|---|---|---|
:id |
number |
Mandatory |
POST http://localhost:8080/albums| Parameter | Type | Description |
|---|---|---|
id |
number |
Mandatory |
title |
string |
Mandatory |
artist |
string |
Mandatory |
price |
number |
Mandatory |