Please enable JavaScript.
Coggle requires JavaScript to display documents.
BACKEND, if possible add PayPal email to send payment to tour agency -…
BACKEND
Models
User
firstName
lastName
email
phone
address
city
state
country
gender
dob
bookingHistory
inboxNotification
userAvatarUrl
encry_password
userName
password :robot_face:
authenticate :star:
salt
Agency
agencyName
agencyOverview
agencyAvatarUrl
email
phone
officeAddress
city
state
country
toursProvides
reviews
rating
isVerified
agencyCertifications
inboxNotification
bookings
totalEarning
encry_password
authenticate :star:
password :robot_face:
role (for Admin)
Tours ( Tour Info. )
tourTitle
tourOverview
coordinates (lat, long)
highlights
images
itinerary
included
tourDuration
languages
location (location / area / city / state / etc name)
faq
reviews
providerAgency
category
noOfBooking
tourPrice
child > 5
adult >18
infant
excluded
Tour Category
categoryName
categoryImageUrl
categoryDescription
Booking
agencyId
tourists
tourId
startingDate
endingDate
totalAmount
bookedOn
status
transaction_id
Blogs / Article
AgencyID
blogTitle
blogContent
review
rating
noOfViews
addReview :star:
Review
userId
message
stars
timestamp
InboxNotification
title
message
timestamp
Contriollers
Authentication
signin
signup
signout
isSignin :zap:
isAuthenticated :zap:
isAdmin :zap:
isAgencyVarified :zap:
agencySignup
agencySignin
agencySignOut
User
getUserById :explode:
getUser
updateUser
updateUserAvatar
addUserBooking
getUserBookings
getUserInbox
addUserInbox
updateUserPassword
checkforUserName
Agency
getAgencyById :explode:
getAgency
updateAgency
updateAgencyAvatar
getAllAgencies
getAgencyTours
updateAgencyTour
removeAgencyTout
addAgencyInbox
getAgencyInbox
addAgencyReview
getAgencyReview
getAgencyCertificates
addAgencyCertificates
removeAgencyCertificates
addAgencyBooking :zap:
getAgencyBooking
updateAgencyPassword
Tour
getProductById :explode:
getTour
updateTour
removeTour :zap:
addTourReview
updateNoOfBooking :zap:
getAllTours
getSearchTours
getAllToursTitle
getTourByCategory
createTour :zap:
Category
getCategoryById :explode:
getCategory
getAllCategory
updateCategory
removeCategory
createCategory
getActiveCategories
Booking
getBookingById :explode:
getBooking
createBooking :zap:
getAllBookings for admin
Admin
verifyAgency
viewAllBookings
getAllAgencyDetails
Routes
Authentication
/signup POST
/signin POST
/signout GET
/agency/signin POST
/agency/signup POST
/agency/signout GET
User
parameterExtracter PARAMS :red_flag:
/user/:userId GET
/user/update/:userId POST
/user/booking/add/:userId POST
/user/inbox/notify/:userId POST
/user/update/avatar/:userId POST
/user/inbox/:userId GET
/user/booking/:userId GET
/user/update/password/:userId POST
/user/check/username/:userId Post
Agency
/agency/:agencyId GET
parameterExtracter PARAMS :red_flag:
/agency/update/:agencyId PUT
/agency/update/avatar/:agencyId PUT
/agency/tours/:agency GET
/agency/tours/add/:agencyId POST
/agencies GET
/agency/inbox/:agencyId GET
/agency/inbox/Notify/:agencyId POST
/agency/tours/update/:agencyId/:tourId PUT
/agency/tours/remove/:agencyId/:tourId GET
/agency/review/add/:agencyId/:userId POST
/agency/certificates/:agencyId GET
/agency/certificates/add/:agencyId POST
/agency/certificates/remove/:agencyId DELETE
/agency/booking/:agencyId GET
/agency/boooking/add/:agencyId POST
/agency/update/password/:agencyId PUT
Tour
/tour/:tourId GET
parameterExtracter PARAMS :red_flag:
/tour/create/:agencyId POST
/tour/update/:agencyId/:tourId PUT
/tour/remove/:agencyId/:tourId DELETE
/tour/review/add/:tourId/:userId POST
/tour/:categoryId GET
/tour/allTours?
Category
/category/:categoryId GET
parameterExtracter PARAMS :red_flag:
/category/create/:agencyId POST
/category/update/:agencyId/:categoryId POST
/category/remove/:agencyId/:categoryId GET
/categories GET
/categories/active GET
Booking
/booking/:bookingId GET
parameterExtracter PARAMS :red_flag:
/booking/create/:userId POST
/booking/:agencyId GET
/booking/update/status/:agencyId/:bookingId PUT
Admin
/admin/verify/agency/:adminId/:agencyId PUT
/admin/allbooking/:agencyId GET
/admin/agencies/:agencyId GET
if possible add PayPal email to send payment to tour agency