Skip to content

@pod-os/core


@pod-os/core / UriService

Class: UriService

Defined in: uri/UriService.ts:4

Constructors

Constructor

new UriService(store): UriService

Defined in: uri/UriService.ts:7

Parameters

store

Store

Returns

UriService

Methods

proposeUriForNewThing()

proposeUriForNewThing(referenceUri, name): string

Defined in: uri/UriService.ts:17

Proposes a URI for a new thing based on what the referenceUri identifies: - if a container, the new URI is in this container - if a file, the new URI is in the same container as said file - if a non-information-resource, the new URI is in the same container as that resource

Parameters

referenceUri

string

name

string

(will be slugified)

Returns

string