{"id":15147489,"url":"https://github.com/gjensidige/bsf-client-example","last_synced_at":"2026-01-30T21:03:08.368Z","repository":{"id":255367312,"uuid":"839253007","full_name":"gjensidige/bsf-client-example","owner":"gjensidige","description":"Example code for consuming Gjensidiges Boligselgerforsikring API.","archived":false,"fork":false,"pushed_at":"2025-10-23T20:14:59.000Z","size":85,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":16,"default_branch":"main","last_synced_at":"2025-10-24T03:39:16.883Z","etag":null,"topics":["documentation","gradle","kotlin"],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gjensidige.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-07T08:44:03.000Z","updated_at":"2025-08-14T14:08:17.000Z","dependencies_parsed_at":"2025-02-09T04:32:17.423Z","dependency_job_id":"030ce5e5-9bdb-4e46-adb6-576484c3229e","html_url":"https://github.com/gjensidige/bsf-client-example","commit_stats":null,"previous_names":["gjensidige/bsf-client-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gjensidige/bsf-client-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gjensidige%2Fbsf-client-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gjensidige%2Fbsf-client-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gjensidige%2Fbsf-client-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gjensidige%2Fbsf-client-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gjensidige","download_url":"https://codeload.github.com/gjensidige/bsf-client-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gjensidige%2Fbsf-client-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28919362,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T20:25:28.696Z","status":"ssl_error","status_checked_at":"2026-01-30T20:25:13.426Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["documentation","gradle","kotlin"],"created_at":"2024-09-26T12:41:47.014Z","updated_at":"2026-01-30T21:03:08.351Z","avatar_url":"https://github.com/gjensidige.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gjensidige Eiendomsmegling API Client Example\n\nExample configuration and code to consume Gjensidiges eiendomsmegling API.\n\nMain.kt contains code to execute the send-self-declaration step against Gjensidiges test environment.\nThe tests provide a more complete example of api usage/flow, but the underlying api is mocked to make the tests pass.\n\n## How to run\n\nMake sure the client id and client secret in TokenStorage.kt is changed to real values before running the example.\n\n### IDE\n\nOpen Main.kt in your favorite IDE and run the file. Depending on your editor you might have to install a kotlin/gradle\nplugin in order to run the file. For Intellij this comes out-of-the-box.\n\n### Terminal\n#### macos / linux\n\nIn your favorite shell/terminal, run:\n\n```shell\n./gradlew run\n```\n\n#### Windows\n\nFrom the Windows Command Prompt, run:\n\n```shell\ngradlew.bat run\n```\n\n## Technology overview\n\nNote that these can be swapped out with ones own desired suite of technologies, the exception being OpenAPI, the \nessential part of this example documentation.\n\n### OpenAPI\n\n\u003chttps://learn.openapis.org/\u003e\n\nOpenAPI is a strict specification language for HTTP APIs. If an openapi document is provided both client and server\ncode can be generated from it.\n\n### OpenAPI Generator\n\n\u003chttps://openapi-generator.tech/\u003e\n\nAn unofficial, but widely adopted tool used to generate server and client code from openapi documents. Target languages\nare many, including kotlin, javascript, C#, and many more.\n\nIn this project it is part of the build, specifically in the 'openApiGenerate' gradle task. This build stage will\ngenerate the module 'no.gjensidige.bsf.api.client' which you can see is imported in Main.kt. The module contains the\napi client object as well as DTO classes.\n\nFor a full list of configuration options available for the kotlin generator used, see\nhttps://openapi-generator.tech/docs/generators/kotlin/\n\n### Gradle\n\n\u003chttps://docs.gradle.org/current/userguide/userguide.html\u003e\n\nGradle is a build automation tool. It provides a means to generate, compile and run the example code.\n\n### Kotlin\n\n\u003chttps://kotlinlang.org/docs/home.html\u003e\n\nKotlin is a multiparadigmal language that can used to build appliations on the JVM.\n\n### Ktor\n\n\u003chttps://ktor.io/docs/welcome.html\u003e\n\nKtor is a framework for building both server-side and client-side kotlin applications. Here it is used as the backbone\nfor the client implementation.\n\n### Kotlinx\n\n\u003chttps://kotlinlang.org/docs/serialization.html#example-json-serialization\u003e\n\nKotlinx Serialization is an official kotlin serialization library, and is used as the client serializer and deserializer.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgjensidige%2Fbsf-client-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgjensidige%2Fbsf-client-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgjensidige%2Fbsf-client-example/lists"}