Users of Oslonøkkelen get access to doors via keychains. Other systems can an API to push keychains to users who have verified their phone number.
Full documentation: https://oslokommune.github.io/oslonokkelen-keychain-push/
We use Asciidoctor for our documentation. Follow these steps to submit changes. You will need some cli tools installed, but the build tasks will tell you if any of them are missing.
- Update the asciidoc files
- Generate updated html files by running
./gradlew :oslonokkelen-keychain-push-docs:asciidoc
- Commit and push your changes.
Please install the Ktlint git pre-commit hook to auto format changed files before submitting pull requests to this repository.
./gradlew addKtlintFormatGitPreCommitHook
Asciidoc documentation. Run ./gradlew :oslonokkelen-keychain-push-docs:asciidoc
to render the documentation as html
under docs
. It depends on having a few chart / diagram utils available on $PATH
. The build script should detect if
any of those are missing and print instructions on how to install them.
Protobuf messages used in the api. Gradle tasks for compiling .proto
to .java
. Our documentation embeds the protobuf
so please remember to re-generate the docs after updating the protobuf api.
Kotlin client not tied to a specific http client implementation. You can either use the oslonokkelen-keychain-push-client-ktor
implementation for Ktor or provide your own implementation of OslonokkelenKeychainPushClient
if you want to use a
different http client.
Kotlin / Ktor client implementation.
Simple cli application for testing the api.