Skip to content

TC49501/SpringBoot2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-boot-rest-example

Simple example of a REST Service in Spring Boot using JPA/Rest Repositories/h2database/Actuator

To build this project

mvn clean package

To run this project

mvn spring-boot:run

Try

http://localhost:8080/employees/

http://localhost:8080/employees/1


#Deploy in cloud foundry
cf push rest-app-in-five-mins -p target/demo-0.0.1-SNAPSHOT.jar

#Access public url
https://rest-app-in-five-mins.cfapps.io

Actuator provide different metrics
http://localhost:8080/actuator
/actuator/autoconfig/beans/configprops/dump/env/health/info/metrics/mappings/shutdown/trace/logfile/flyway/liquibase

Equifax Interview problem
Write a program that prints the number of services that respond with a "pong" to a ping request from this list of services: https://api.walletinsights.com/.
Example: https://api.walletinsights.com/Accounting/ping -- responds with a "pong"
Solution:
https://www.interviewzen.com/interview/3N5bChC
Program: HttpUrlPingPongTest.java

About

Restful API with H2 DB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published