Giter VIP home page Giter VIP logo

fse-assessment-4-product-search-service's Introduction

Product Search Service

This is a complete product service used for the Angular portion of the assessment.

Tasks

  • Build and run this product microservice. It will stand in as your back end for the Angular front end you are to complete.
  • Use the models and endpoints in this service as a guide in building out your front end as spelled out in the requirements from that repo.

Notes

  • This repo does NOT need to be forked or turned in and will not be graded.
  • You MAY fork this repo for your future reference if desired.
  • DO NOT make any changes to this code - use As-Is.

Operational Notes

  • This service is configured to run on port 9990.
  • To run this service, run the class ProductSearchMain in the com.alisnobba.search package.
  • Using Postman, the following request/responses should be had when hitting the endpoint localhost:9990/search.
  • In Postman, set Body to raw and select a content type of JSON (application/json) and the following requests should work.

Request 1 (Black Bottega Veneta dresses with a price range from $2000 to $2500)

{
	"color":"black",
	"category":"dresses",
	"brand":"bottega veneta",
	"priceRangeUpper":"2500",
	"priceRangeLower":"2000"
}

Response 1

[
    {
        "category": "dresses",
        "brand": "bottega veneta",
        "color": "black",
        "price": 2200
    }
]

Request 2 (Gucci dresses)

{
	"category":"dresses",
	"brand":"gucci"
}

Response 2

[
    {
        "category": "dresses",
        "brand": "gucci",
        "color": "yellow",
        "price": 2272
    },
    {
        "category": "dresses",
        "brand": "gucci",
        "color": "red",
        "price": 1966
    }
]

Request 3 (All records)

{

}

Response 3

[
    {
        "category": "dresses",
        "brand": "gucci",
        "color": "yellow",
        "price": 2272
    },
    {
        "category": "dresses",
        "brand": "gucci",
        "color": "red",
        "price": 1966
    },
    {
        "category": "dresses",
        "brand": "marni",
        "color": "brown",
        "price": 999
    },
    {
        "category": "dresses",
        "brand": "marni",
        "color": "pink",
        "price": 1129
    },
    {
        "category": "dresses",
        "brand": "bottega veneta",
        "color": "black",
        "price": 2200
    },
    {
        "category": "dresses",
        "brand": "prada",
        "color": "black",
        "price": 1650
    },
    {
        "category": "dresses",
        "brand": "victoria beckham",
        "color": "blue",
        "price": 927
    },
    {
        "category": "dresses",
        "brand": "celine",
        "color": "beige",
        "price": 1901
    },
    {
        "category": "dresses",
        "brand": "jil sander",
        "color": "orange",
        "price": 511
    }
]

fse-assessment-4-product-search-service's People

Contributors

cognizantfse avatar spyro1001 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.