]> git.ktnx.net Git - mobile-ledger.git/commitdiff
support both 1.14 and 1.15 JSON APIs
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 21 Dec 2019 21:22:14 +0000 (23:22 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 21 Dec 2019 21:23:50 +0000 (23:23 +0200)
this is a major and somewhat messy rework

the idea is that several APIs should be able to co-exist

conversion between MoLe's internal structures and the JSON API is moved
to the version-dependent JSON representations

an 'auto' setting for the version (the default) attempts all available
API versions starting from the latest

HTTP status 400 is interpreted as "version mismatch" (same as 405)


No differences found