NestJs CRUD for RESTful APIs
PUT
request handling (#107 )CrudOptions
(docs)@ParsedOptions
, @ParsedParams
, @ParsedQuery
. Add decorator @ParsedRequest
instead.RestfulOptions
from services@nestjsx/crud
to be service (ORM) agnostic@nestjsx/crud-typeorm
(docs)@nestjsx/crud-request
(docs, #53)UsePathInterceptors
decorator that allows to wire up RestfulQueryInterceptor
and RestfulParamsInterceptor
on custom CrudController
routes (those interceptors are already wired up on @Override()
routes) (#45)findOne
and find
methods (link to the repo methods)DELETE
request (#34)PATCH
request bodynumber
, uuid
, string
). Validation and transforming has been addedid
. e.g. providing { params: { slug: 'uuid' } }
will be processed as GET | PATCH | DELETE /:slug
; will validate slug
as uuid
string; and will be making a SELECT
query by slug
column (#11)getManyBase
request (data
, count
, total
, page
, pageCount
). Along with the ability to add interceptors without method overriding, this should totaly fix (#12, #18 )CrudController
(getParamsFilter
and getMergedOptions
). Added helpful custom route decorators instead (@ParsedQuery
, @ParsedParams
, @ParsedOptions
)CrudController
became more ORM agnostic.getFeature
and getAction
helpers for getting metadata from a controller and a route (docs)@Crud()
accepts CrudOptions
that contains options
, params
. Controller properties paramsFilter
, options
are deprecated
cacheId
generation update