{"id":22337567,"url":"https://github.com/mkdika/spring5-kotlin-api","last_synced_at":"2025-09-06T18:42:28.493Z","repository":{"id":102259026,"uuid":"150103139","full_name":"mkdika/spring5-kotlin-api","owner":"mkdika","description":"Spring 5 Kotlin REST API demo with Spring Boot 2 stacks.","archived":false,"fork":false,"pushed_at":"2018-09-25T05:44:11.000Z","size":77,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T08:27:00.923Z","etag":null,"topics":["h2-database","kotlin","poc","rest-api","spring-boot-2","spring-framework-5"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"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/mkdika.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-24T13:00:54.000Z","updated_at":"2023-02-19T19:22:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"7e909841-d19f-4e5c-8265-cd6f4f215e1c","html_url":"https://github.com/mkdika/spring5-kotlin-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mkdika/spring5-kotlin-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkdika%2Fspring5-kotlin-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkdika%2Fspring5-kotlin-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkdika%2Fspring5-kotlin-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkdika%2Fspring5-kotlin-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mkdika","download_url":"https://codeload.github.com/mkdika/spring5-kotlin-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mkdika%2Fspring5-kotlin-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273947715,"owners_count":25196391,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-06T02:00:13.247Z","response_time":2576,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["h2-database","kotlin","poc","rest-api","spring-boot-2","spring-framework-5"],"created_at":"2024-12-04T06:10:33.004Z","updated_at":"2025-09-06T18:42:28.437Z","avatar_url":"https://github.com/mkdika.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring Kotlin REST API\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](/LICENSE)\n[![Build Status](https://travis-ci.org/mkdika/spring5-kotlin-api.svg?branch=master)](https://travis-ci.org/mkdika/spring5-kotlin-api)\n[![codecov](https://codecov.io/gh/mkdika/spring5-kotlin-api/branch/master/graph/badge.svg)](https://codecov.io/gh/mkdika/spring5-kotlin-api)\n[![codebeat badge](https://codebeat.co/badges/6d2b15f0-63b8-4a44-be7a-3a9c0e077040)](https://codebeat.co/projects/github-com-mkdika-spring5-kotlin-api-master)\n\nSpring 5 Kotlin REST API demo with Spring Boot 2 stacks. This project is consist of CRUD Web endpoint. \n\n![Imgur](https://i.imgur.com/F1ySiaN.png)\n\n\n## Tech Stack\n\n- Java8 (JDK 8 update 171)\n- [Kotlin 1.2.70](https://kotlinlang.org/)\n- [Spring Boot 2.0.5](http://spring.io/projects/spring-boot)\n- [Gradle 4.8.1](https://gradle.org/)\n- [H2DB](http://www.h2database.com/html/main.html)\n- [Undertow Web Server](http://undertow.io/)\n- [Jacoco](https://www.eclemma.org/jacoco/)\n\n## Build, Test \u0026 Run the Application\n\n### Build\n\n```console\ngradlew clean build\n```\n\nFind the built result at `/build/libs/spring-kotlin-api-1.0.0.jar`\n\n### Automatic Test\n\n```console\n# run all test\ngradlew test\n\n# run coverage test report\ngradlew jacocoTestReport\n```\n\nFind the test result report at `/build/reports/test/` for __test__ result, and `/build/reports/jacoco` \nfor __Jacoco__ coverage test result report.\n\n### Run the Application\n\n```console\ngradlew bootRun\n```\n\nAccess from local url: `http://localhost:8080`\n\n\n### Test REST API Locally\n\nTest the REST API locally with [Curl](https://curl.haxx.se/download.html) or alternatively \nyou can use [Insomnia](https://insomnia.rest/) Web API Test, feel free to download my \nInsomnia Workspace at [Here](https://goo.gl/Ck8L2J) and import into yours.\n\n\n### REST API Endpoints\n\n| HTTP Method | Path               | Description                          |\n| ----------- | ------------------ | ------------------------------------ |\n| GET         | /api/customer      | Get all existing customer data.      |\n| GET         | /api/customer/{id} | Get existing customer data by Id.    |\n| POST        | /api/customer      | Insert new customer data.            |\n| PUT         | /api/customer/{id} | update existing customer data by Id. |\n| DELETE      | /api/customer/{id} | Delete existing customer data by Id. |\n\n\n## Reference\n\n- [Spring Boot and Kotlin](https://www.baeldung.com/spring-boot-kotlin)\n- [Creating a RESTful Web Service with Spring Boot](https://kotlinlang.org/docs/tutorials/spring-boot-restful.html)\n- [Building Restful APIs with Kotlin, Spring Boot, Mysql, JPA and Hibernate](https://www.callicoder.com/kotlin-spring-boot-mysql-jpa-hibernate-rest-api-tutorial/)\n- [Creating and Testing a Kotlin RESTful Web Services using Spring Boot](https://medium.com/@crsandeep/creating-and-testing-a-kotlin-restful-web-services-using-spring-boot-1a11aeda279e)\n- [More readable tests with Kotlin](https://www.tengio.com/blog/more-readable-tests-with-kotlin/)\n- [Test coverage in Kotlin with Jacoco](https://kevcodez.de/index.php/2018/08/test-coverage-in-kotlin-with-jacoco/)\n- [Codecov Kotlin Example](https://github.com/codecov/example-kotlin)\n\n## Copyright and License\n\nCopyright 2018 Maikel Chandika (mkdika@gmail.com). Code released under the\nMIT License. See [LICENSE](/LICENSE) file.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkdika%2Fspring5-kotlin-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmkdika%2Fspring5-kotlin-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmkdika%2Fspring5-kotlin-api/lists"}