PageRenderTime 66ms CodeModel.GetById 34ms RepoModel.GetById 0ms app.codeStats 0ms

/rest2ddp/seeds.js

https://gitlab.com/ctaloi/rest2ddp
JavaScript | 14 lines | 14 code | 0 blank | 0 comment | 0 complexity | fe54510c645954fa75628f50d14a8723 MD5 | raw file
  1. EXAMPLE_SEED = [
  2. {
  3. collectionName: "duckDuckGoSearchMeteor",
  4. restUrl: "http://api.duckduckgo.com/?q=meteor&format=json&pretty=1",
  5. jsonPath: "$.RelatedTopics.*",
  6. pollInterval: 5
  7. },
  8. {
  9. collectionName: "weatherForecasts",
  10. restUrl: "https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22Toronto%2C%20CA%22)&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys",
  11. jsonPath: "$.query.results.channel.item.forecast.*",
  12. pollInterval: 5
  13. }
  14. ];