tools: add transport-apis submodule & pull-profile-base-data.sh

This commit is contained in:
Jannis R 2021-01-14 20:18:27 +01:00
parent ba27f54952
commit 3df3a7b73d
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
3 changed files with 29 additions and 0 deletions

4
.gitmodules vendored Normal file
View file

@ -0,0 +1,4 @@
[submodule "tools/transport-apis"]
path = tools/transport-apis
url = https://github.com/public-transport/transport-apis.git
branch = v1

24
tools/pull-profile-base-data.sh Executable file
View file

@ -0,0 +1,24 @@
#!/bin/sh
set -e
cd $(realpath $(dirname $0))
src="transport-apis/data"
query="{\
auth: {
type: \"AID\",
aid: .options.auth.aid?, \
}, \
salt: .options.checksumSalt, \
client: {
type: .options.client.type?, \
id: .options.client.id?, \
v: .options.client.v?, \
name: .options.client.name?, \
}, \
endpoint: .options.endpoint, \
ext: .options.ext, \
ver: .options.version, \
}"

1
tools/transport-apis Submodule

@ -0,0 +1 @@
Subproject commit d15fa68b3b4703ee172d706ea39b148e9dd8bd47