In this repository I'm playing around with Kotlin & Spring Boot to get a feel for how it is to develop APIs using those technologies.
I'm initially following Kotlin's official guide for setting this up.
I have checklist of things that I want to try. See below.
- Create a RESTful web service with H2 Database
- Add endpoint for CREATE
- Add endpoint for READ (fetch all or by id)
- Add endpoint for UPDATE
- Add endpoint for DELETE
- Add error handling (404 Not Found added)
- Generate Swagger with OpenAPI
- Add unit testing (Testing with Mockk in PokemonService)
- Add integration testing (Testing with SpringBootTest)
- Explore API mocking in integration tests (when calling external service)
You can find my notes here.
You can find the swagger at http://localhost:8080/swagger-ui/index.html#/ after starting the API.