Spring Native Bookcase Backend Example

Overview

Spring Native Bookcase Backend Example

Simple example for bookcase backend. Saves bookcases and list them (simple CRUD).

set database connection properties in application.yml

  • start in ide: gradle bootRun
  • build docker image: bootBuildImage
  • run docker image: docker run --rm -p 8080:80 buchschrank:0.0.1-SNAPSHOT

Endpoints

GET /

GET / HTTP/1.1
User-Agent: PostmanRuntime/7.28.4
Accept: */*
Cache-Control: no-cache
Host: localhost:8080
Accept-Encoding: gzip, deflate, br
Connection: keep-alive

HTTP/1.1 200 OK
Content-Type: text/plain;charset=UTF-8
Content-Length: 3
Date: Tue, 09 Nov 2021 10:20:10 GMT
Keep-Alive: timeout=60
Connection: keep-alive

1.1

GET /v1/bookcase

GET /v1/bookcase HTTP/1.1
User-Agent: PostmanRuntime/7.28.4
Accept: */*
Cache-Control: no-cache
Host: localhost:8080
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
 
HTTP/1.1 200 OK
Content-Type: application/json
Transfer-Encoding: chunked
Date: Tue, 09 Nov 2021 10:22:26 GMT
Keep-Alive: timeout=60
Connection: keep-alive
 
[{"id":1,"title":"ÄÖÜ","streethousenumber":"Selbecker Straße","postcode":"32825","place":null,"country":"Deutschland","lat":51.977261,"lng":9.054234,"link":"","contact":"Stadtbücherei Hilchenbach, Im Burgweiher 1, 57271 Hilchenbach","opened":"24 Stunden","inserted":1625218928.000000000,"lastupdate":1625218928.000000000},{"id":2,"title":"ÄÖÜ","streethousenumber":"Selbecker Straße","postcode":"32825","place":null,"country":"Deutschland","lat":51.977261,"lng":9.054234,"link":"","contact":"Stadtbücherei Hilchenbach, Im Burgweiher 1, 57271 Hilchenbach","opened":"24 Stunden","inserted":1625219151.000000000,"lastupdate":1625219151.000000000},{"id":3,"title":"ÄÖÜ","streethousenumber":"Selbecker Straße","postcode":"32825","place":null,"country":"Deutschland","lat":51.977261,"lng":9.054234,"link":"","contact":"Stadtbücherei Hilchenbach, Im Burgweiher 1, 57271 Hilchenbach","opened":"24 Stunden","inserted":1625219178.000000000,"lastupdate":1625219178.000000000},{"id":5,"title":"Olching test","streethousenumber":"Heckenstraße 12","postcode":"82140","place":"Olching","country":"Deutschland","lat":48.2052453864916,"lng":11.32999386638403,"link":"https://www.aditu.de","contact":"[email protected]","opened":"24/7","inserted":1625474024.000000000,"lastupdate":1625476108.000000000},{"id":8,"title":"test","streethousenumber":"Selbecker Straße","postcode":"32825","place":"Blomberg","country":"Deutschland","lat":51.977261,"lng":9.054234,"link":"","contact":"Stadtbuecherei Hilchenbach, Im Burgweiher 1, 57271 Hilchenbach","opened":"24 Stunden","inserted":1625492932.000000000,"lastupdate":1625492932.000000000},{"id":9,"title":"testß","streethousenumber":"Selbecker Straße","postcode":"32825","place":"Blomberg","country":"Deutschland","lat":51.977261,"lng":9.054234,"link":"","contact":"Stadtbuecherei Hilchenbach, Im Burgweiher 1, 57271 Hilchenbach","opened":"24 Stunden","inserted":1625500536.000000000,"lastupdate":1625500536.000000000},{"id":10,"title":"testß","streethousenumber":"Selbecker Straße","postcode":"32825","place":"Blomberg","country":"Deutschland","lat":51.977261,"lng":9.054234,"link":"","contact":"Stadtbuecherei Hilchenbach, Im Burgweiher 1, 57271 Hilchenbach","opened":"24 Stunden","inserted":1625494619.000000000,"lastupdate":1625494619.000000000},{"id":11,"title":"testß","streethousenumber":"Selbecker Straße","postcode":"32825","place":"Blomberg","country":"Deutschland","lat":51.977261,"lng":9.054234,"link":"","contact":"Stadtbuecherei Hilchenbach, Im Burgweiher 1, 57271 Hilchenbach","opened":"24 Stunden","inserted":1625551634.000000000,"lastupdate":1625551634.000000000},{"id":12,"title":"testß","streethousenumber":"Selbecker Straße","postcode":"32825","place":"Blomberg","country":"Deutschland","lat":51.977261,"lng":9.054234,"link":"","contact":"Stadtbuecherei Hilchenbach, Im Burgweiher 1, 57271 Hilchenbach","opened":"24 Stunden","inserted":1625551657.000000000,"lastupdate":1625551657.000000000},{"id":13,"title":"testß","streethousenumber":"Selbecker Straße","postcode":"32825","place":"Blomberg","country":"Deutschland","lat":51.977261,"lng":9.054234,"link":"","contact":"Stadtbuecherei Hilchenbach, Im Burgweiher 1, 57271 Hilchenbach","opened":"24 Stunden","inserted":1625546364.000000000,"lastupdate":1625546364.000000000},{"id":14,"title":"5tröäüß","streethousenumber":"Florianstraße 8","postcode":"82140","place":"Olching","country":"Deutschland","lat":48.22740745480876,"lng":11.342452056705952,"link":"https://www.aditu.de","contact":"oinfoöäü@aditu.de","opened":"24/7","inserted":1625560295.000000000,"lastupdate":1625560374.000000000},{"id":15,"title":"ÄÖÜ","streethousenumber":"Selbecker Straße","postcode":"32825","place":"Blomberg","country":"Deutschland","lat":51.977261,"lng":9.054234,"link":"","contact":"Stadtbücherei Hilchenbach, Im Burgweiher 1, 57271 Hilchenbach","opened":"24 Stunden","inserted":1632836910.000000000,"lastupdate":1632836910.000000000},{"id":16,"title":"ÄÖÜ","streethousenumber":"Selbecker Straße","postcode":"32825","place":"Blomberg","country":"Deutschland","lat":51.977261,"lng":9.054234,"link":"","contact":"Stadtbücherei Hilchenbach, Im Burgweiher 1, 57271 Hilchenbach","opened":"24 Stunden","inserted":1636451039.000000000,"lastupdate":1636451039.000000000},{"id":17,"title":"ÄÖÜ","streethousenumber":"Selbecker Straße","postcode":"32825","place":"Blomberg","country":"Deutschland","lat":51.977261,"lng":9.054234,"link":"","contact":"Stadtbücherei Hilchenbach, Im Burgweiher 1, 57271 Hilchenbach","opened":"24 Stunden","inserted":1636453123.000000000,"lastupdate":1636453123.000000000}]

POST /v1/request

bla()", "streethousenumber": "Bernhard-Weiss-Platz 6", "postcode": "57271", "place": "Hilchenbach", "country": "DE", "lat": 51.977261, "lng": 9.054234, "link": "", "contact": "Stadtbücherei Hilchenbach, Im Burgweiher 1, 57271 Hilchenbach", "opened": "24 Stunden", "inserted": "2017-05-23", "lastupdate": "2017-05-23", "remove": false } HTTP/1.1 200 OK Content-Type: application/json Transfer-Encoding: chunked Date: Tue, 09 Nov 2021 10:23:09 GMT Keep-Alive: timeout=60 Connection: keep-alive {"id":18} ">
POST /v1/request HTTP/1.1
Content-Type: application/json
User-Agent: PostmanRuntime/7.28.4
Accept: */*
Cache-Control: no-cache
Host: localhost:8080
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 442
 
{
"bookcase": 0,
"title": "ÄÖÜ",
"streethousenumber": "Bernhard-Weiss-Platz 6",
"postcode": "57271",
"place": "Hilchenbach",
"country": "DE",
"lat": 51.977261,
"lng": 9.054234,
"link": "",
"contact": "Stadtbücherei Hilchenbach, Im Burgweiher 1, 57271 Hilchenbach",
"opened": "24 Stunden",
"inserted": "2017-05-23",
"lastupdate": "2017-05-23",
"remove": false
}
 
HTTP/1.1 200 OK
Content-Type: application/json
Transfer-Encoding: chunked
Date: Tue, 09 Nov 2021 10:23:09 GMT
Keep-Alive: timeout=60
Connection: keep-alive
 
{"id":18}
You might also like...
Example of combination recommended by Google libraries

Project description This project includes several widely used libraries and shows how to deal with them in connection. Project created as multilayer p

PolitcalPreparedness is an example application built to demonstrate core Android Development skills recommended by Google.

PolitcalPreparedness is an example application built to demonstrate core Android Development skills recommended by Google.

Android login spring - Android login against spring backend

Android Jetpack Compose login implementation with JWT tokens against our own bac

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

Backend-aio - A ktor based ready to use backend

BackendAIO A ktor based ready to use backend BackendAIO is a project made to hel

Backend aio - A project made to help all newbie programmers that are approaching backend development

BackendAIO A ktor based ready to use backend BackendAIO is a project made to hel

A sample skeleton backend app built using Spring Boot kotlin, Expedia Kotlin Graphql, Reactive Web that can be deployed to Google App Engine Flexible environmennt

spring-kotlin-gql-gae This is a sample skeleton of a backend app that was built using: Spring Boot(Kotlin) Reactive Web Sprinng Data R2DBC with MYSQL

This repository contains RabbitMQ Protobuf starters with its usage samples for spring-rabbit and spring-cloud-starter-stream-rabbit modules

This repository contains RabbitMQ Protobuf starters with its usage samples for spring-rabbit and spring-cloud-starter-stream-rabbit modules

Spring-with-maven - Spring Boot App with Postgresql and maven

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

Reactive setup with Spring WebFlux , Kotlin, Postgres and Spring Data R2DBC

Reactive Spring with Kotlin and Pg Spring WebFlux with Netty instead of Spring Web with Tomcat Mono and Flux in all layers (controller, service, repo)

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

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

Spring Boot Example with Kotlin and Domain Driven Design

Spring Boot Kotlin Domain Driven Design Example Just an example project where ddd is implemented with some other great patterns and architecture from

Spring for Kotlin Example
Spring for Kotlin Example

Spring for Kotlin Example This project is for studying the spring using by kotlin. Required docker-compose Running project docker-compose -f docker-co

grpc stream fullstack example(spring+kotlin / next.js + typescript)

grpc-stream-fullstack chat application build with grpc named qhat Prerequisites server sync .proto files on src/main/proto/grpc/qhat/ $ ./gradlew sync

Spring boot kotlin example

Spring Boot Kotlin Example Gradle 配置 代理配置 当内网环境需要代理时,在项目根目录添加文件 gradle.propertie

Microservice-grpc-multi-language-example - gRPC communication on multiple language demonstration (spring kotlin, go, .NET core 6)
Simple spring boot JWT authentication example

JWT authentication This an example how to set up jwt authentication with access and refresh token. Related blog post is available here: https://coding

Example of using coroutines with Spring MVC

This is an example of using coroutines with Spring MVC (not webflux!) DemoController uses https://github.com/joost-de-vries/spring-coroutine, but sinc

Support for Spring's RestTemplate within native Android applications

Spring for Android Spring for Android is a library that is designed to provide components of the Spring Framework family of projects for use in native

Owner
lesestunden.de
lesestunden.de
This is an example repository to demonstrate the good practices of using ViewModel and how usage of AndroidViewModel can make things worst in a codebase

ViewModel Good Practices ??‍♂️ This is a example repository to demonstrate the good practices of using ViewModel and how usage of AndroidViewModel can

Shreyas Patil 29 Sep 28, 2022
📌This repo contains the kotlin implementation of TensorflowLite Example Android Apps🚀

TensorflowLite Examples Kotlin This repo contains the kotlin implementation of TensorflowLite Example Apps here, which are mostly implemented in java

Sunit Roy 29 Jan 1, 2023
Example Android library project that works with jitpack.io

android-example Example Android library project that works with jitpack.io. See this Tutorial on how to publish an Android Library with JitPack. For m

Denys Denysenko 0 Dec 20, 2021
This example was built for lecturing proposes, it shows how to consume data from an API.

Android Kotlin NewsMobEDJDCM2122 Example - EDJD 2021/2022 This example was wirten during the Mobile Computing lectures in the course 'Lincentura em En

null 0 Nov 8, 2021
An example to show how a proper plugin for Lambda Client is set up

Lambda Plugin SDK This project in an example to show how a proper plugin for Lambda Client is set up. The advantage of plugins for a utility mod is th

KMatias 0 Oct 25, 2021
An example Android Application to test out Kotlin development in Adndroid

AndroidDiceGenerator This is an example Android Application to test out Kotlin development in Adndroid. On pressing a button, the application generate

Fredrick Ojure 0 Oct 28, 2021
Its a small example with Custom Employee object is sent from one Fragment to another.

Kotlin-SafeArgs-Custom-Object Its a small example with Custom Employee object is sent from one Fragment to another. Dependencies used // Navigation

Akshay Teli 0 Oct 30, 2021
ROOM Database Example with MVVM in Kotlin[Fragments,Navigation]

RoomDatabase_SampleApp Room Database Sample App Overview Of This Room Database Application In this app, we can do operation on room database | Insert,

RUHUL AMIN CHOUDHURY 0 Nov 3, 2021
ListView Example with custom Adapter Using Kotlin in Android Studio

Kotlin-ListView ListView Example with custom Adapter Using Kotlin in Android Studio Steps to follow : Build ListView with Custom Adapter in Kotlin Add

null 0 Nov 5, 2021
This application is an example of how to create menu on android platform.

HW_Menu This application is an example of how to create menu on android platform. Table of Contents Introduction Screenshots Resources Contact Introdu

Ibrahim Alfaifi 0 Nov 9, 2021