Code Monkey home page Code Monkey logo

wdm-spring-microservices's People

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

wdm-spring-microservices's Issues

Rest API response bodies

we haven't specified yet what the responses to the requests look like

for example for the endpoint /users/credit/{id}
should I just return the integer as raw text or a json struct {"credit": x}?

should we just all agree to always return json with the information requested as keys?

Create PostgreSQL schemas & mock data

Create a schema.sql file under the /resources directory of the corresponding project/microservice and define the following tables:

Users Module

  1. users -> Fields: id, name, credit

Payments Module

  1. payments -> Fields: id, user_id, order_id, status

Stocks Module

  1. items -> Fields: id, stock, price

Orders Module

  1. order_items -> Fields: order_id, item_id, number
  2. order -> Fields: id, total, user_id

Also create a data.sql file under /resources with insert statements for the related mock data of each table (for each microservice).

Issues with Postgres tables

  1. The names of the tables should be in lowercase since spring data seems to automatically do this regardless of what we pass. Thus, if a table contains capital letters it cannot match the table with the corresponding entity.

  2. The id field of each table should automatically be incremented (check serial in postgresql)

CouchDB-proj: Add Configuration server

The configuration server should also be added to the CouchDB subproject.

NOTE! The Spring Cloud dependencies are NOT the same as the Postgres project, due to downgraded Spring Boot version.

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.