Giter VIP home page Giter VIP logo

order-api's Introduction

Read Me - Order API - SIBS Test

How to run this project:

  • Have PostgreSQL installed and create a database: CREATE DATABASE order_db;

  • In application.properties file, fill the values for the properties below, according to your setup:

spring.datasource.username=postgres
spring.datasource.password=yourpassword
[email protected]
spring.mail.password=yourpwd
  • Other spring.mail setup may need adjustments if using other mail clients.

  • spring.jpa.hibernate.ddl-auto is configured as UPDATE, so data will be preserved between executions.

  • Run OrderApplication (from IDE or using Maven): mvnw spring-boot:run

API Endpoints

Base Url: http://localhost:8080/api

A Postman collection inside the project is provided with some call examples:

sibs-test-api.postman_collection.json

/items, /users :

Default CRUD functionality provided by Spring Data Rest.

/orders

All CRUD common methods. POST/PUT methods will add an Order to the system, automatically completed if there is stock of that item (quantity will be returned updated).

/stocks

All CRUD common functionalities. POST/PUT methods will add an Stock to the system, automatically completing an Order if the stock is enough (quantity of the stock will be returned decreased when an Order is found).

Logging

One directory above the project, will be generated a sibs-test-logs directory with the log file.

order-api's People

Contributors

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