HPI-BP2017N2 / Matcher-deprecated-

2 stars 0 forks source link

Recieve parsed data via REST #2

Open PoJo93 opened 6 years ago

PoJo93 commented 6 years ago

AS the matcher I WANT TO receive parsed data via a REST API TO use these data to test if I am correctly working

ACCEPTANCE CRITERIA

Example JSON

{
   "name" : {
               "0" : "IPhone 7"
    },
    "price" : 1077
}

EXAMPLE SZENARIO: To test the matcher I can send the above example iPhone which I got during parsing from Saturn to now test if the matcher correctly matches this iPhone to the iPhone article in the Idealo Database

dey4ss commented 6 years ago

For easier parsing of retrieved JSON data we decided to only allow strings as values. Naming conventions follow idealo conventions (see Confluence)

poweronoff commented 6 years ago

@dey4ss What was a problem with parsing json?

dey4ss commented 6 years ago

@poweronoff We thought it would be a little nicer to only get one single value for an attribute instead of a Map of values. Indeed, that should not matter too much due to the Spring magic. I think we can apply this later on.