Skip to content

jorneycr/API-GO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API GOLANG

Install

Glide (To managment package) I install with Visual Studio Code (VS code Glide), then Open terminal on VS Code >Glide:Install.

go build

go run *.go

Rutas

All Songs http://localhost:8080/songs

Get by Artist add "Colornoise" http://localhost:8080/songs/artist/Colornoise

Get by Songs add "Gala" http://localhost:8080/songs/song/Gala

Get by Genres add "Rock" http://localhost:8080/songs/genre/Rock

Important: The server listens on port:8080

If you need to change, open main.go and go to http.ListenAndServe(":8080", mux). Put your port.