Giter VIP home page Giter VIP logo

kotlin_with_springboot's Introduction

kotlin_with_springBoot

Spring boot with rest api controller.
Please view Kotlin exercise on com.myspringboot.demo.controller.MyRestController

how to run?
go to the project folder in the Terminal

  1. mvn clean install
  2. java -jar target/demo-0.0.1-SNAPSHOT.jar

or simply run in from Intelij

send http post request via postman to :
http://localhost:8080/api/ordersAnalyzer with example request body json:

[
    {
        "orderId": 554,
        "creationDate": "2017-03-25T10:35:20",
        "orderLines": [
            {
                "productId": 9872,
                "name": "Pencil",
                "quantity": 3,
                "unitPrice": 3
            }
        ]
    },
    {
        "orderId": 555,
        "creationDate": "2017-03-25T11:24:20",
        "orderLines": [
            {
                "productId": 9872,
                "name": "Pencil",
                "quantity": 2,
                "unitPrice": 3
            },
            {
                "productId": 1746,
                "name": "Eraser",
                "quantity": 1,
                "unitPrice": 1
            }
        ]
    },
    {
        "orderId": 453,
        "creationDate": "2017-03-27T14:53:12",
        "orderLines": [
            {
                "productId": 5723,
                "name": "Pencil",
                "quantity": 4,
                "unitPrice": 4.22
            },
            {
                "productId": 9872,
                "name": "Pencil",
                "quantity": 3,
                "unitPrice": 3.12
            },
            {
                "productId": 3433,
                "name": "Pencil",
                "quantity": 1,
                "unitPrice": 6.15
            }
        ]
    },
    {
        "orderId": 431,
        "creationDate": "2017-03-20T12:15:02",
        "orderLines": [
            {
                "productId": 5723,
                "name": "Pencil",
                "quantity": 7,
                "unitPrice": 4.22
            },
            {
                "productId": 3433,
                "name": "Pencil",
                "quantity": 2,
                "unitPrice": 6.15
            }
        ]
    },
    {
        "orderId": 690,
        "creationDate": "2017-03-26T11:14:00",
        "orderLines": [
            {
                "productId": 9872,
                "name": "Pencil",
                "quantity": 4,
                "unitPrice": 3.12
            },
            {
                "productId": 4098,
                "name": "Pencil",
                "quantity": 5,
                "unitPrice": 4.5
            }
        ]
    }
]

kotlin_with_springboot's People

Contributors

kobyost 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.