Path generate path for this resource
()
| 62 | |
| 63 | //Path generate path for this resource |
| 64 | func (resource *Resource) Path() string { |
| 65 | s := resource.Schema() |
| 66 | key := s.URL + "/" + resource.ID() |
| 67 | return key |
| 68 | } |
| 69 | |
| 70 | //Data gets data from resource |
| 71 | func (resource *Resource) Data() map[string]interface{} { |
no test coverage detected