/crud-api

Primary LanguageTypeScript

node-nodejs-CRUD-API

INITIAL

POSTMAN

  • http://localhost:3000/api/users - working url

SCRIPTS TO SERVER RUN

  • npm run start:dev - Run server in development mode;
  • npm run start:prod - Build server app and run in production mode;
  • npm run start:multi - Run multiple instances of server app;
  • npm run test - Run tests for server app;

ENDPOINTS

  • GET api/users get all users;
  • GET api/users/${userId} get one user by id;
  • POST api/users create new user;
  • PUT api/users/{userId} update existing user;
  • DELETE api/users/${userId} delete existing user;