Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jorneycr/api-go

Small API using Go
https://github.com/jorneycr/api-go

api-rest golang

Last synced: 8 days ago
JSON representation

Small API using Go

Awesome Lists containing this project

README

        

# 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.