Spring-kotlin - Learning API Rest with Kotlin, Spring and PostgreSQL

Overview

Kotlin, Spring, PostgreSQL and Liquibase Database Migrations

Learning Kotlin for backend with Spring, Database Migrations Liquibase and PostgreSQL

Usage

Tools:

Run:

docker-compose up -d
mvn spring-boot:run

Usage:

Examples in directory requests

POST a new Game

http --json POST :8090/api/games < requests/postANewGame.json

GET All games

http --json GET :8090/api/games offset==0 limit==50

GET a single game by ID

http --json GET :8090/api/games/89d36599-3af7-459b-889d-ec655d38769f

Result:

HTTP/1.1 200 
Connection: keep-alive
Content-Type: application/json
Date: Sun, 13 Feb 2022 13:08:54 GMT
Keep-Alive: timeout=60
Transfer-Encoding: chunked

{
    "description": "Claiton bom de guerra",
    "gameId": "89d36599-3af7-459b-889d-ec655d38769f",
    "name": "Bom de Guerra",
    "platform": "PS4",
    "price": "79.90"
}

PUT a single game by ID

http --json PUT :8090/api/games/89d36599-3af7-459b-889d-ec655d38769f \ 
 < requests/putAGameRequest.json

PATCH a single game by ID

http --json PATCH :8090/api/games/89d36599-3af7-459b-889d-ec655d38769f \
 < requests/patchAGameRequest_price.json

DELETE a single game by ID

http --json DELETE :8090/api/games/89d36599-3af7-459b-889d-ec655d38769f
You might also like...
Spring-graphql-getting-started - Spring for GraphQL provides support for Spring applications built on GraphQL Java

Getting Started with GraphQL and Spring Boot Spring for GraphQL provides support

Spring boot cloud tool usage trail and learning project

Spring boot cloud tool usage trail and learning project Todo Maven based multi-p

My personal template for a Spring Boot REST reactive webapp

My personal spring boot kotlin reactive template Features Spring Security implementation with JWT access and refresh token MongoDB database Project Co

Restler is a beautiful and powerful Android app for quickly testing REST API anywhere and anytime.
Restler is a beautiful and powerful Android app for quickly testing REST API anywhere and anytime.

Restler Restler has been built with simplicity and ease of use in mind. It allows you send custom HTTP/HTTPS requests and test your REST API anywhere

Api Rest Card Game made in Kotlin with Ktor

ApiRest-CardGame "Card Game API" is a project made in Kotlin with Ktor. The API allows you to manage a simple card game deck (shuffle, take a card, pu

Katoot - An easy-to-use (blocking) Kotlin wrapper for Kahoot's REST api

katoot An easy-to-use (blocking) Kotlin wrapper for Kahoot's REST api. Usage Qui

Este es un ejemplo de como usar Kotlin en un proyecto Node.js, una api rest en Node.js con Express
Este es un ejemplo de como usar Kotlin en un proyecto Node.js, una api rest en Node.js con Express

Kotlin Hello Node.js Este es un ejemplo de como usar Kotlin en un proyecto Node.js, una API REST con Express Kotlin Hello Node.js Acerca de Uso Compil

Ejemplo de App Android con Kotlin, Jetpack Compose, Retrofit y consumo de la API REST de Pokémon
Ejemplo de App Android con Kotlin, Jetpack Compose, Retrofit y consumo de la API REST de Pokémon

Pokémon Jetpack Compose Ejemplo de App Android con Kotlin, Jetpack Compose, Retrofit y consumo de la API REST de Pokémon Jetpack Compose Retrofit Poké

This is a simple Rest Api for todo application

This is a simple Rest Api for todo application , where users do signup, login and add their respective todos. So this api is fully based on Ktor framework.

Owner
Andre L S Ferreira
BackEnd Developer | Spring Rest API | Python Rest API | API Specialist | Mircoservices
Andre L S Ferreira
Demo Spting REST Service on Kotlin. Works with PostgreSQL via Spring Data. Data initialization provided by liquibase

Spring Boot REST API with Kotlin Spring Boot REST API service. Spring Data with PostgreSQL. Data initialization with Liquibase. Swagger UI Reference D

null 0 Jun 10, 2022
Spring-with-maven - Spring Boot App with Postgresql and maven

Spring Boot Api Aplikasi ini dibuat menggunakan bahasa kotlin dan untuk database

Aldi Aulia Rosyad 1 Jan 12, 2022
Simple Todo list API using Spring-Boot, Webflux, Kotlin, Coroutines, & PostgreSQL

Simple Todo list API using Spring-Boot, Webflux, Kotlin, Coroutines, & PostgreSQL

Sami Eljabali 9 Jul 26, 2022
Michal Kubele 0 Jan 6, 2022
A Modern Kotlin-Ktor RESTful API example. Connects to a PostgreSQL database and uses Exposed framework for database operations.

kotlin-ktor-rest-api A Modern Kotlin-Ktor RESTful API example. Connects to a PostgreSQL database and uses Exposed framework for database operations. F

Selim Atasoy 32 Dec 20, 2022
API Rest With Kotlin And Spring Boot

##API REST WITH KOTLIN AND SPRING BOOT GET Url: http://localhost:8080/customers Response (Status Code: 200 Ok) { "_embedded": { "customer

Felipe Baz 0 Nov 18, 2021
Ejemplo de API Rest Blog con Spring Boot + Kotlin + Gradle

Blog Ejemplo de API Rest Blog con Spring Boot 2.7.3 + Kotlin + Gradle + Java 17 El objetivo es que pueda servir como guía para el aprendizaje, lo más

Arturo López 6 Dec 18, 2022
intera.kt is a Kotlin library for interacting with the Discord Interactions API through a gateway service or a REST API.

?? Overview ⚠️ WARNING: intera.kt is a work in progress. It is not yet ready for use. You may encounter bugs and other issues, but please report if yo

Pedro Henrique 1 Nov 30, 2021
intera.kt is a Kotlin library for interacting with the Discord Interactions API through a gateway service or a REST API.

?? Overview ⚠️ WARNING: intera.kt is a work in progress. It is not yet ready for use. You may encounter bugs and other issues, but please report if yo

Pedro Henrique 1 Nov 30, 2021