RESTful_API projects based Express js, Example of implementation for creating a personal website and mobile app backend.
- Open cmd and cd your project root directory
- Run
npm init
- Run
npm run start
Methods | Endpoints | Description |
---|---|---|
GET |
/users | Get all user data when logged in |
POST |
/users | Register account must given name ,email ,password & confPassword to body request |
POST |
/login | login account must given email & password to body request |
DELETE |
/logout | Logout |
GET |
/token | Get refresh token |
GET |
/portofolio | Get all portofolio |
GET |
/portofolio/{id} | Get specific portofolio by giver id |