Creates a random URL. Add a classnme (e.g. 'persons') to make a nicer name
(className?: string)
| 82 | |
| 83 | /** Creates a random URL. Add a classnme (e.g. 'persons') to make a nicer name */ |
| 84 | createSubject(className?: string): string { |
| 85 | const random = Math.random().toString(36).substring(2); |
| 86 | className = className ? className : 'things'; |
| 87 | return `${this.getServerUrl()}/${className}/${random}`; |
| 88 | } |
| 89 | |
| 90 | /** Fetches a resource by URL and adds it to the store. */ |
| 91 | async fetchResource( |
no test coverage detected