Giter Club home page Giter Club logo

spring-boot-microservice's Introduction

Spring-Boot-MicroService

##Run application:

  Terminal One:
       cd running-information-analysis-service
       docker-compose up        [MySQL]
  Terminal Two:
       cd running-information-analysis-service
       mvn clean install        [BUILD SUCCESS]
       cd target/
       java -jar running-information-analysis-service-1.0-SNAPSHOT.jar      [Tomcat : 9000]

##Test Rest API

1. Create running information using JSON input
  postman: POST -> URL:  http://localhost:9000/bulk/runningInformation
           Body -> raw -> JSON -> Data:  running.json -> Send
           Response:  201
  
  Check Result: 
           URL:  localhost:9000       [open HAL Browser]
   HAL Browser:  Explorer -> URL:  http://localhost:9000/all?page=0&size=10  -> Go!
                 Properties -> totalElements

2. Search running information by username
   HAL Browser:  Explorer -> URL:  http://localhost:9000/information/search/user?username=ross0  -> Go!
                 Embedded Resources -> runningInformations[0] -> Properties

3. Search running information by runningId
   HAL Browser:  Explorer -> URL:  http://localhost:9000/information/search/runningId?runningId=7c08973d-bed4-4cbd-9c28-9282a02a6032   -> Go!
                 Embedded Resources -> runningInformations[0] -> Properties

4. Return all running information and ordered by healthWarningLevel from HIGH to Low. This API needs to support pagination.
   HAL Browser:  Explorer -> URL:  http://localhost:9000/healthWarningLevel?page=0   [1st page]
                             URL:  http://localhost:9000/healthWarningLevel?page=3   [last page]
                             URL:  http://localhost:9000/healthWarningLevel?page=2   [middle page]

5. Delete running information by runningId
  postman: DELETE -> URL:  http://localhost:9000/purge/2f3c321b-d239-43d6-8fe0-c035ecdff232  -> Send

  Check Result:
   HAL Browser:  Explorer -> URL:  http://localhost:9000/all?page=0&size=10  -> Go!
                 Properties -> totalElements   

spring-boot-microservice's People

Contributors

angelacrabby avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.