Coder Social home page Coder Social logo

cims's Introduction

Car Inventory Management & Sales

Use following commands to run the application on the command line:

  1. To build the application -> mvn clean package
  2. To run the tests -> mvn test
  3. To run the application -> mvn spring-boot:run

These are the CURL for some of the APIs.

  1. API to create a car

curl --location --request POST 'http://localhost:8080/cims/admin/add-car' \ --header 'Content-Type: application/json' \ --data-raw '{ "make" : "maruti", "year" : "3433", "price" : 343.234 }'

  1. API to list cars

curl --location --request GET 'http://localhost:8080/cims/car/list'

  1. API to remove cars from inventory

curl --location --request POST 'http://localhost:8080/cims/admin/remove' \ --header 'Content-Type: application/json' \ --data-raw '["27f8af20-a122-4a77-afb4-f533e5692df4"]'

  1. API to buy a car

curl --location --request POST 'http://localhost:8080/cims/car/buy' \ --header 'Content-Type: application/json' \ --data-raw '{ "id": "aa43eded-07c6-4bf1-bd16-495c7fa0008b", "buyingPrice" : 500 }'

cims's People

Contributors

jeevan-patil avatar

Watchers

James Cloos avatar  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.