Sep 9, 2024
User Management
Contact Management
Address Management
/api/users
/api/users/login
/api/users/current
/api/users/current
/api/users/current
/api/contacts
/api/contacts/{id}
/api/contacts/{id}
/api/contacts/{id}
/api/contacts/search
/api/contacts/{contactId}/addresses
/api/contacts/{contactId}/addresses/{id}
/api/contacts/{contactId}/addresses/{id}
/api/contacts/{contactId}/addresses/{id}
/api/contacts/{contactId}/addresses
nest new belajar-nestjs-restful-api
Register User
/api/users
{ username, password, name }Login User
/api/users/login
{ username, password }Get User
/api/users/current
Update User
/api/users/current
{ name (optional), password (optional) }Logout User
/api/users/current
Create Contact
/api/contacts
{ firstName, lastName (optional), email (optional), phone (optional) }Get Contact
/api/contacts/{id}
Update Contact
/api/contacts/{id}
{ firstName (optional), lastName (optional), email (optional), phone (optional) }Remove Contact
/api/contacts/{id}
Search Contact
/api/contacts/search
{ query params: name, email, phone, page, size }Create Address
/api/contacts/{contactId}/addresses
{ street, city, province, country (required), postalCode (required) }Get Address
/api/contacts/{contactId}/addresses/{id}
Update Address
/api/contacts/{contactId}/addresses/{id}
{ street, city, province, country, postalCode }Remove Address
/api/contacts/{contactId}/addresses/{id}
List Addresses
/api/contacts/{contactId}/addresses
npm run build
.npm run start:prod
.