withUrlForEndpoint
Method
interface ContainerResource { // ... omitted for brevity withUrlForEndpoint( endpointName: string, callback: callback): IResource;}Signature
method
withUrlForEndpoint builderRegisters a callback to update the URL displayed for the endpoint with the specified name.
withUrlForEndpoint(endpointName: string, callback: (obj: ResourceUrlAnnotation) => Promise<void>): IResourceParameters
endpointName stringThe name of the endpoint to customize the URL for.callback(obj: ResourceUrlAnnotation) => Promise<void> The callback that will customize the URL.Returns
IResource Applies to
This method applies to the following types: