- Application should host a HTTP server - use `yarn add express` HTTP server should have the following endpoints - [ ] `POST /update` accepts a valid DB object, inserts or updates it into the database and generates a file export. Returns the queried ID from the database. - [ ] `GET /cache` returns the in memory database for external application usage. It should not hit the database or a file. - [ ] `GET /generate` regenerates the cache from the database. - [ ] `GET /export` regenerates the files from database. - [ ] `GET /import` regenerates via update and insert the database from the file system. - [ ] `GET /search/:id` returns one specific card based on its id - [ ] `GET /search/:name` returns one specific card based on its name (from any language)
yarn add expressHTTP server should have the following endpoints
POST /updateaccepts a valid DB object, inserts or updates it into the database and generates a file export. Returns the queried ID from the database.GET /cachereturns the in memory database for external application usage. It should not hit the database or a file.GET /generateregenerates the cache from the database.GET /exportregenerates the files from database.GET /importregenerates via update and insert the database from the file system.GET /search/:idreturns one specific card based on its idGET /search/:namereturns one specific card based on its name (from any language)