Story
As a loopback4 user, I would like to run a CLI command to generate a default set of CRUD API methods based on a model and its associated datasource(s) so that I can avoid hand-writing each of these functions manually.
Acceptance Criteria
async create(obj: T) : Promise<T>
count(where: Where) : Promise<number>
find(filter: Filter) : Promise<T[]>
updateAll(where: Where, obj: T) : Promise<number>
deleteAll(where: Where): Promise<number>
findById(id: ID) : Promise<T>
updateById(id: ID, obj: T) : Promise<boolean>
deleteById(id: ID) : Promise<boolean>
Story
As a loopback4 user, I would like to run a CLI command to generate a default set of CRUD API methods based on a model and its associated datasource(s) so that I can avoid hand-writing each of these functions manually.
Acceptance Criteria