code: func ConvertLabel(request *http.Request, lbl label.Label) *app.Label {
  	labelType := label.APIStringTypeLabels
  	spaceID := lbl.SpaceID.String()
  	relatedURL := rest.AbsoluteURL(request, app.LabelHref(spaceID, lbl.ID))
  	spaceRelatedURL := rest.AbsoluteURL(request, app.SpaceHref(spaceID))
  	l := &app.Label{
  		Type: labelType,
  		ID:   &lbl.ID,
  		Attributes: &app.LabelAttributes{
  			TextColor:       &lbl.TextColor,
  			BackgroundColor: &lbl.BackgroundColor,
  			BorderColor:     &lbl.BorderColor,
  			Name:            &lbl.Name,
  			CreatedAt:       &lbl.CreatedAt,
  			UpdatedAt:       &lbl.UpdatedAt,
  			Version:         &lbl.Version,
  		},
  		Relationships: &app.LabelRelations{
  			Space: &app.RelationGeneric{
  				Data: &app.GenericData{
  					Type: &space.SpaceType,
  					ID:   &spaceID,
  				},
  				Links: &app.GenericLinks{
  					Self:    &spaceRelatedURL,
  					Related: &spaceRelatedURL,
  				},
  			},
  		},
  
  		Links: &app.GenericLinks{
  			Self:    &relatedURL,
  			Related: &relatedURL,
  		},
  	}
  	return l
  }
docs: // ConvertLabel converts from internal to external REST representation