Skip to content

ZhongMeiZhou/Final_webAPI_TraViz

Repository files navigation

#TraViz Webservice Codeship Status for ZhongMeiZhou/Final_webAPI_TraViz

Endpoint

[https://dynamozmz.herokuapp.com/] (https://dynamozmz.herokuapp.com/)

Description

A simple web service that scrapes Lonely Planet tours based on several parameters using the lonely_planet_tours gem

Recent Changes

  • Added functionality to generate the number of tours per country based on tour categories and price range which will be used to generate a visualization of tour results

Usage and Examples

Handles:

  • GET /

  • GET /api/v2/taiwan_tours (deprecated)

  • GET /api/v2/tours/[:param].json

  • GET /api/v2/tours/[:id]

  • POST /api/v2/tours

    • ACCEPTS => country name in JSON format
    • RETURNS => JSON
    • SAMPLE REQUEST => curl -v -H "Accept: application/json" -H "Content-type: application/json" \ -X POST -d "{"country":"Honduras"}" http://localhost:3000/api/v2/tours
  • POST /api/v2/tour_compare

    • ACCEPTS => multiple countries, categories and a price range
    • RETURNS => JSON
    • SAMPLE REQUEST => curl -v -H "Accept: application/json" -H "Content-type: application/json" \ -X POST -d "{"tour_countries":["Honduras", "Belize"], "tour_categories":["Cycling", "Small Group Tours"], "inputPriceRange":"200;800"}" http://localhost:3000/api/v2/tour_compare

About

TraViz API service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •