/Valex

Primary LanguageTypeScript

valex

About the project

  • Backend Project
  • database: postgresSQL
  • card services

Routes

cardRouter

  • POST : "/create-card" => x-api-key (header), employeeId (body), type (body);
  • POST : "/activate-card" => cardId (body), password (body), CVC (body);
  • GET : "/view-transections/:id" => cardId (params);
  • POST : "/block-card" => cardId (body), password (body);
  • POST : "/unlock-card" => cardId (body), password (body);

rechargeRouter

  • POST : "/recharge-card/:id" => cardId (params), x-api-key (header), amount (body);

shoppingRouter

  • POST : "/shopping/:id" => cardId (params), password (body), amount (body), businessId (body);

build with