## Problem it's easier to make an url with a scientific name based slug --- ## Proposed solution add slug field to plant document. this could be made from the scientific name. i.e. ```sh db.plants.updateMany( { slug: { $exists: false } }, [ { $set: { slug: { $replaceAll: { input: { $toLower: "$identity.scientificName" }, find: " ", replacement: "-" } } } } ] ) ``` --- ## Example (API) ```http GET /plants/:slug ``` ```http GET /plants/allium-cepa ``` --- ## Impact - [x] Domain - [x] Application (use cases) - [x] API (controllers/routes) - [x] Infrastructure
Activity