UNPKG

tipi-services

Version:

Node.js library to access wrapping REST API of tipi backend services

11 lines (9 loc) 605 B
const Endpoint = require('../../../helpers/Endpoint') module.exports = (baseUrl) => ({ details: Endpoint.base(baseUrl).get('/integrations/:ownerId/reservations/:id'), checkIn: Endpoint.base(baseUrl).post('/integrations/:ownerId/reservations/:id/checkIn'), pull: Endpoint.base(baseUrl).post('/integrations/:ownerId/reservations/pull'), batchDetails: Endpoint.base(baseUrl).post('/reservations/batchDetails'), getCheckInStatus: Endpoint.base(baseUrl).post('/reservations/getCheckInStatus'), batchGetCheckInStatus: Endpoint.base(baseUrl).post('/reservations/batchGetCheckInStatus') })