Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jorneycr/api-go
- Owner: jorneycr
- Created: 2021-03-03T07:26:37.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-02-16T23:00:40.000Z (almost 3 years ago)
- Last Synced: 2024-06-19T18:02:41.304Z (8 months ago)
- Topics: api-rest, golang
- Language: Go
- Homepage:
- Size: 11.9 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/songsGet by Artist add "Colornoise"
http://localhost:8080/songs/artist/ColornoiseGet by Songs add "Gala"
http://localhost:8080/songs/song/GalaGet by Genres add "Rock"
http://localhost:8080/songs/genre/RockImportant: The server listens on port:8080
If you need to change, open main.go and go to http.ListenAndServe(":8080", mux). Put your port.