amosproj / amos2021ws01-geo-data-search

Natural language and buzzword search on routing and places
MIT License
3 stars 1 forks source link

Receive JSON from NLP component #43

Closed oliviadargel closed 3 years ago

oliviadargel commented 3 years ago

User story

  1. As a backend developer
  2. I need to receive the JSON from the NLP component
  3. So that I can request external APIs with the correct criteria

Acceptance criteria

Definition of done

chrisjherm commented 3 years ago

First dummy simulated with Postman: Postman POST: localhost:8080/backend/create Postman Body/raw/JSON:

{
    "what": "waaas?",
    "where": "woooo?",
    "spec": "nix"
}

Result: all three parameters are received in the backend method FrontendController.receiveNlpAnswer( ) and can be printed.

chrisjherm commented 3 years ago

changed to:

First dummy simulated with Postman: Postman POST: localhost:8080/backend/nlp_answer Postman Body/raw/JSON:

{
    "what": "waaas?",
    "where": "woooo?",
    "spec": "nix"
}

Result: all three parameters are received in the backend method FrontendController.receiveNlpAnswer( ) and can be printed.