@entur/shamash-gen
Create a shamash URL from raw graphql response or en-tur.no URL
Last updated a year ago by matsbyr .
EUPL-1.2 · Original npm · Tarball · package.json
$ cnpm install @entur/shamash-gen -g
SYNC missed versions from official npm registry.

shamash-gen

Generer URL til shamash basert på rå respons fra f.eks. Chrome.

npm install --global @entur/shamash-gen

Bruk:

Usage: shamash-gen [options] <source>

Create a shamash URL from raw graphql response

Options:

  -V, --version  output the version number
  -d, --dev      Use dev environment
  -s, --staging  Use staging environment
  -h, --help     output usage information

Eksempel:

shamash-gen '{"query":"\n    query StopPlaces($id:String!) {\n        stopPlace(id:$id) {\n          id\n          name\n          latitude\n          longitude\n        }\n    }\n    ","variables":{"id":"NSR:StopPlace:6493"}}'

Gir følgende svar:

https://api.entur.io/journey-planner/v2/ide/?variables={"id":"NSR:StopPlace:6493"}&query=query StopPlaces($id:String!) {  stopPlace(id:$id) {  id  name  latitude  longitude  }  }

Current Tags

  • 2.0.0                                ...           latest (a year ago)

6 Versions

  • 2.0.0                                ...           a year ago
  • 1.1.3                                ...           2 years ago
  • 1.1.2                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 7
Last Day 0
Last Week 7
Last Month 1
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |