Code Monkey home page Code Monkey logo

productservice_proxy's Introduction

  1. Implement code till first commit yourself.
  2. Make sure all Controllers in /controllers/ are taking appropriate parameters as required by corresponding APIs in https://fakestoreapi.com/docs
  3. (Stretch) Try to understand https://spring.io/guides/gs/consuming-rest/ and implement FakeStoreProductServiceImpl.

Assign 2

  1. Implement all of the APIs under Products at: https://fakestoreapi.com/docs (other than Limit Results and Sort Results)
  2. Make your FakeStoreProductService not depend on RestTemplate at all. Instead of this it should depend on FakeStoreClient

Assign 3

  1. Go through all of the APIs in CategoryController and ProductController
  2. Create a SelfProductService and SelfCategoryService implementing the corresponding interface
  3. Implement the code inside each of the services. This code should now work with corresponding repositories.

User ----> Auth Server Signup 1 User ----> Auth Server Login 2 ---> token in return User ----> Resource Server (Product Service) "/products" token

  1. If Token Valid -> a) If role matches or not, If yes -- allow else deny
  2. If Token invalid -> deny
  1. When a [product is saved it should be saved in ES as well
  2. When someone searches for product, you return all products where either the title contains that string or description contains that string via ElasticSearch

Test Data TEST Nikhil Test

productservice_proxy's People

Contributors

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