func ConvertCodebase(request *goa.RequestData, codebase *codebase.Codebase, additional ...CodebaseConvertFunc) *app.Codebase {
	codebaseType := APIStringTypeCodebase
	spaceType := APIStringTypeSpace

	spaceID := codebase.SpaceID.String()

	selfURL := rest.AbsoluteURL(request, app.CodebaseHref(codebase.ID))
	editURL := rest.AbsoluteURL(request, app.CodebaseHref(codebase.ID)+"/edit")
	spaceSelfURL := rest.AbsoluteURL(request, app.SpaceHref(spaceID))

	i := &app.Codebase{
		Type: codebaseType,
		ID:   &codebase.ID,
		Attributes: &app.CodebaseAttributes{
			CreatedAt: &codebase.CreatedAt,
			Type:      &codebase.Type,
			URL:       &codebase.URL,
		},
		Relationships: &app.CodebaseRelations{
			Space: &app.RelationGeneric{
				Data: &app.GenericData{
					Type: &spaceType,
					ID:   &spaceID,
				},
				Links: &app.GenericLinks{
					Self: &spaceSelfURL,
				},
			},
		},
		Links: &app.CodebaseLinks{
			Self: &selfURL,
			Edit: &editURL,
		},
	}
	for _, add := range additional {
		add(request, codebase, i)
	}
	return i
}
// ConvertCodebase converts between internal and external REST representation
ConvertCodebase converts between internal and external REST representation
// ConvertCodebase converts between internal and external REST representation
func ConvertCodebase(request *goa.RequestData, codebase *codebase.Codebase, additional ...CodebaseConvertFunc) *app.Codebase {
	codebaseType := APIStringTypeCodebase
	spaceType := APIStringTypeSpace
	spaceID := codebase.SpaceID.String()
	selfURL := rest.AbsoluteURL(request, app.CodebaseHref(codebase.ID))
	editURL := rest.AbsoluteURL(request, app.CodebaseHref(codebase.ID)+"/edit")
	spaceSelfURL := rest.AbsoluteURL(request, app.SpaceHref(spaceID))
	i := &app.Codebase{
		Type: codebaseType,
		ID:   &codebase.ID,
		Attributes: &app.CodebaseAttributes{
			CreatedAt: &codebase.CreatedAt,
			Type:      &codebase.Type,
			URL:       &codebase.URL,
		},
		Relationships: &app.CodebaseRelations{
			Space: &app.RelationGeneric{
				Data: &app.GenericData{
					Type: &spaceType,
					ID:   &spaceID,
				},
				Links: &app.GenericLinks{
					Self: &spaceSelfURL,
				},
			},
		},
		Links: &app.CodebaseLinks{
			Self: &selfURL,
			Edit: &editURL,
		},
	}
	for _, add := range additional {
		add(request, codebase, i)
	}
	return i
}
func ConvertCodebase ( request * goa . RequestData , codebase * codebase . Codebase , additional ... CodebaseConvertFunc ) * app . Codebase { codebaseType := APIStringTypeCodebase spaceType := APIStringTypeSpace spaceID := codebase . SpaceID . String ( ) selfURL := rest . AbsoluteURL ( request , app . CodebaseHref ( codebase . ID ) ) editURL := rest . AbsoluteURL ( request , app . CodebaseHref ( codebase . ID ) + " " ) spaceSelfURL := rest . AbsoluteURL ( request , app . SpaceHref ( spaceID ) ) i := & app . Codebase { Type : codebaseType , ID : & codebase . ID , Attributes : & app . CodebaseAttributes { CreatedAt : & codebase . CreatedAt , Type : & codebase . Type , URL : & codebase . URL , } , Relationships : & app . CodebaseRelations { Space : & app . RelationGeneric { Data : & app . GenericData { Type : & spaceType , ID : & spaceID , } , Links : & app . GenericLinks { Self : & spaceSelfURL , } , } , } , Links : & app . CodebaseLinks { Self : & selfURL , Edit : & editURL , } , } for _ , add := range additional { add ( request , codebase , i ) } return i }
ConvertCodebase converts between internal and external REST representation
ConvertCodebase converts between internal and external REST representation