Skip to content

Latest commit

 

History

History
54 lines (39 loc) · 1.96 KB

README.md

File metadata and controls

54 lines (39 loc) · 1.96 KB

Spring-Hana-Cloud-Foundry

This is a sample spring boot application that makes use of SAP HANA Service on SAP Cloud Platform (Cloud Foundry). The accompanying blog series talks about the configuration needed on the SCP side.

Requirements

Installation

  • Clone repo -

    git clone https://github.com/boudhayan-dev/spring-hana-cloud-foundry
    
  • For local -

    mvn clean install -P local
    
    • Run the app -
    java -jar target/spring-hana-cloud-foundry-0.0.1-SNAPSHOT.war
    
  • For Cloud Foundry -

    mvn clean install -P cf
    
    • Deploy the app -
    cf push
    

Test

To test the application, use the following routes -

METHOD ROUTE DESCRIPTION
GET /employee/count Count of total employees
GET /employee/all Returns all employees
GET /employee/id/{id} Returns employee with id
POST /employee/add Add new employee
DELETE /employee/delete/{id} Delete employee with id