Category
We'll now create the Category
model, following the same protocol.
Then generate and run the migration, as the relations cannot be set yet.
Create the categories resource
And perform the steps to finish its assembly
Exclude the entities folder
In the controller, use the
IdDto
whereverid
is being usedRemove the number conversion operator (
+
) below each occurrenceUse
PaginationDto
in thefindAll()
method (and also in the service)Default page size - 30
Commit - Creating category model
Last updated