func setupMetadata() (result map[string]*metadata.Resource) {
	result = make(map[string]*metadata.Resource)
	for n, r := range ssd.GenMetadata {
		result[n] = r
		for _, a := range r.Actions {
			for _, p := range a.PathPatterns {
				// remove "/api/designer" prefix
				p.Regexp = removePrefixes(p.Regexp, 2)
			}
		}
	}
	for n, r := range ssc.GenMetadata {
		result[n] = r
		for _, a := range r.Actions {
			for _, p := range a.PathPatterns {
				// remove "/api/catalog" prefix
				p.Regexp = removePrefixes(p.Regexp, 2)
			}
		}
	}
	for n, r := range ssm.GenMetadata {
		result[n] = r
		for _, a := range r.Actions {
			for _, p := range a.PathPatterns {
				// remove "/api/manager" prefix
				p.Regexp = removePrefixes(p.Regexp, 2)
			}
		}
	}
	return
}
func setupMetadata() (result map[string]*metadata.Resource) {
	result = make(map[string]*metadata.Resource)
	for n, r := range ssd.GenMetadata {
		result[n] = r
		for _, a := range r.Actions {
			for _, p := range a.PathPatterns {
				// remove "/api/designer" prefix
				p.Regexp = removePrefixes(p.Regexp, 2)
			}
		}
	}
	for n, r := range ssc.GenMetadata {
		result[n] = r
		for _, a := range r.Actions {
			for _, p := range a.PathPatterns {
				// remove "/api/catalog" prefix
				p.Regexp = removePrefixes(p.Regexp, 2)
			}
		}
	}
	for n, r := range ssm.GenMetadata {
		result[n] = r
		for _, a := range r.Actions {
			for _, p := range a.PathPatterns {
				// remove "/api/manager" prefix
				p.Regexp = removePrefixes(p.Regexp, 2)
			}
		}
	}
	return
}
func setupMetadata ( ) ( result map [ string ] * metadata . Resource ) { result = make ( map [ string ] * metadata . Resource ) for n , r := range ssd . GenMetadata { result [ n ] = r for _ , a := range r . Actions { for _ , p := range a . PathPatterns { // remove "/api/designer" prefix p . Regexp = removePrefixes ( p . Regexp , 2 ) } } } for n , r := range ssc . GenMetadata { result [ n ] = r for _ , a := range r . Actions { for _ , p := range a . PathPatterns { // remove "/api/catalog" prefix p . Regexp = removePrefixes ( p . Regexp , 2 ) } } } for n , r := range ssm . GenMetadata { result [ n ] = r for _ , a := range r . Actions { for _ , p := range a . PathPatterns { // remove "/api/manager" prefix p . Regexp = removePrefixes ( p . Regexp , 2 ) } } } return }
// Initialize GenMetadata from each SS API generated metadata
Initialize GenMetadata from each SS API generated metadata