StandardUriDesign constructor

StandardUriDesign(
  1. Uri base
)

Creates an instance of UriDesign recommended by JSON:API standard. The base URI will be used as a prefix for the generated URIs.

Implementation

StandardUriDesign(Uri base)
    : base = base.path.endsWith('/')
          ? base
          : base.replace(path: '${base.path}/');