@uzero/rest-path
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

rest-path

Rest path builder.

This library does not have any depencencies.

Usage

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'

Readme

Keywords

none

Package Sidebar

Install

npm i @uzero/rest-path

Weekly Downloads

41

Version

2.0.0

License

none

Unpacked Size

6.87 kB

Total Files

14

Last publish

Collaborators

  • aemrebas.dev