Skip to content

Instantly share code, notes, and snippets.

{
"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": [
{
"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"
{
"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",
@ivancevich
ivancevich / Bio.json
Last active March 21, 2019 16:58
Artist responses
{
"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"
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)
@ivancevich
ivancevich / middleware.go
Last active July 26, 2016 15:03
Golang Logging Middleware
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()
@ivancevich
ivancevich / install_glide.sh
Created April 20, 2016 14:08
Install Glide (Golang Package Manager - https://glide.sh) on Linux AMD64
#!/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