This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": { | |
"id": 42772, | |
"name": "Charles Navi", | |
"slug": "/artists/42772/charles-navi", | |
"verified": true, | |
"soundcloud_url": "http://www.soundcloud.com/charlesnavi", | |
"image_type": "avatar", | |
"image_url": "https://proton-profile-images.storage.googleapis.com/avatars/artist_42772_1616429469.jpg", | |
"countries": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": 42772, | |
"name": "Charles Navi", | |
"slug": "/artists/42772/charles-navi", | |
"verified": true, | |
"soundcloud_url": "http://www.soundcloud.com/charlesnavi", | |
"image_type": "avatar", | |
"image_url": "https://jc-avatar-test.storage.googleapis.com/avatars/artist_42772_1554234576.jpg", | |
"countries": [ | |
"AR" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": 224075, | |
"album_only": false, | |
"artists": [{ | |
"id": 41419, | |
"name": "SecondNature", | |
"slug": "/artists/41419/secondnature", | |
"soundcloud_url": "http://www.soundcloud.com/wearesecondnature", | |
"image_type": "avatar", | |
"image_url": "https://jc-avatar-test.storage.googleapis.com/avatars/avatars-000452182575-ns5g0l-t500x500.jpg", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": 42772, | |
"name": "Charles Navi", | |
"slug": "/artists/42772/charles-navi", | |
"verified": true, | |
"soundcloud_url": "http://www.soundcloud.com/charlesnavi", | |
"image_type": "avatar", | |
"image_url": "https://jc-avatar-test.storage.googleapis.com/avatars/artist_42772_1548689598.jpg", | |
"countries": [ | |
"AR" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
delete "/api/labels/{label_with_releases_id}/recommended-artists/{artist_id}" (contains a `bio` object of BioWithMembers) | |
get "/api/labels/{label_id}/subscribers" (Bio) | |
get "/api/labels/{label_with_releases_id}/artist-roster" (array of Bio) | |
get "/api/labels/{label_with_releases_id}/artist-roster/full" (array of BioWithMembers) | |
get "/api/labels/{label_with_releases_id}/recommended-artists" (array of Bio) | |
post "/api/labels/{label_id}/subscribers" (Bio) | |
delete "/api/users/{user_id}/artists/{artist_id}/avatar" (BioComplete) | |
delete "/api/users/{user_id}/artists/{artist_id}/connections" (BioComplete) | |
get "/api/users" (contains a `bios` array of Bio) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func Middleware(next http.Handler) http.Handler { | |
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { | |
dump, _ := httputil.DumpRequest(r, true) | |
log.Println("-------------------- Request -------------------->") | |
log.Println(string(dump)) | |
log.Println("<------------------- Request ---------------------") | |
c := httptest.NewRecorder() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
curl -L $(curl -s https://api.github.com/repos/Masterminds/glide/releases/latest | grep 'browser_' | cut -d\" -f4 | grep 'linux-amd64.tar.gz') > glide.tar.gz && | |
tar --strip-components=1 -C /usr/bin -xzf glide.tar.gz linux-amd64/glide && | |
rm glide.tar.gz |