UNPKG

oralify-common

Version:
65 lines (63 loc) 2.31 kB
export const Api_Routes = { auth: { signInWithId: '/auth/signInWithId', //POST signInWithEmail: '/auth/signInwithEmail', //POST authGoogleCalendar: '/auth/googleCalendar', //GET authGoogleCalendarCallback: '/auth/google/callback', //GET }, user: { getUsername: '/getUsername', //POST setRole: '/setRole/:id', // POST users: '/users', // GET curious: '/curious', // GET experts: '/experts', // GET accept query params: {speciality = {SpecialityKey}, availability = boolean, services = boolean, // format = {ServiceFormatKey}, isConnected = boolean, acailableSoon = boolean} setMockdata: '/setMockdata', // GET publicProfile: '/user/:id', // GET setDataUser: '/user/:id', //POST deleteUser: '/user/:id', //DELETE updateUser: '/user/:id', //PUT setOnline: '/user/setOnline/:id', //PATCH setOffline: '/user/setOffline/:id', //PATCH getAllAppointmentsForUser: '/user/getAllAppointments/:id', //GET getAllReviewsForUser: '/user/getAllReviews/:id', //GET privateProfile: '/privateProfile', //GET }, service: { setService: '/service', //POST deleteService: '/service/:id', //DELETE getService: '/service/:id', //GET updateService: '/service/:id' //PUT }, availabilityExpert: { setAvailabilityExpert: '/availabilityExpert', //POST deleteAvailabilityExpert: '/availabilityExpert/:id', //DELETE getAvailabilityExpert: '/availabilityExpert/:id', //GET updateAvailabilityExpert: '/availabilityExpert/:id' //PUT }, appointment: { createAppointment: '/appointment', //POST deleteAppointment: '/appointment/:id', //DELETE getAppointment: '/appointment/:id', //GET updateAppointment: '/appointment/:id' //PUT }, review: { setReview: '/review', //POST deleteReview: '/review/:id', //DELETE getReview: '/review/:id', //GET updateReview: '/review/:id', //PUT }, timeSlot: { getTimeSlot: '/timeSlot/:id', //GET updateTimeSlot: '/timeSlot/:id', //PUT } }; export const DB_TABLE = { users: 'users', services: 'services', time_slots: 'time_slots', availabilityExpert: 'availabilityexpert', appointments: 'appointments', reviews: 'reviews', google_tokens: 'google_tokens' };