team-genny / genny

0 stars 1 forks source link

API endpoint generates and persists generated data #79

Closed incogzino closed 2 months ago

incogzino commented 2 months ago

Created the following asynchronous functions:

'generatePersistentData' which acts as validation for data inputted into fields "schema", "count" and "slug" found in the 'dataController.ts' file 'persitData' that persists generated data in the 'dataService.ts' file 'findPersistData' that finds persistent data in the mongo database found in the dataService.ts file

Added post router '/persistent' in the routes in 'data.ts' file

Created a data schema in the models folder named 'Data.ts'