Rest path builder.
This library does not have any depencencies.
const { ID, PLURAL, RELATION, SINGULAR, UNSTE_RELATION } = new RestPathBuilder({
singular: 'cat',
plural: 'cats',
prefix: 'api',
});
ID; // 'api/cat/:id'
SINGULAR; // 'api/cat'
PLURAL; // 'api/cats'
RELATION; // 'api/cat/:id/:rn/:rid'
UNSTE_RELATION; // 'api/cat/:id/:rn'