Example #1
0
func serializeToAPIData(obj g.Refer) apiData {
	return apiData{
		Type:  "",
		ID:    uuid.UUID(obj.RefID()),
		Attrs: obj,
	}
}
Example #2
0
func wrapJSONResponse(obj g.Refer, attrs interface{}) apiJSONAPI {
	return apiJSONAPI{
		Data: apiData{
			Type:  "",
			ID:    uuid.UUID(obj.RefID()),
			Attrs: attrs,
		},
	}
}