maksumov / rss-shop-be

3 stars 0 forks source link

Task 9.1 #12

Open maksumov opened 3 years ago

maksumov commented 3 years ago

Task Definition

bff-service workflow example:

  • Call bff-service by the URL: {bff-service-url}/{recipient-service-name}?var1=someValue
    • {bff-service-url} - for example, http://localhost:3000
    • {recipient-service-name} - ‘cart’ or ‘product’
    • ?var1=someValue - query string
  • Get recipientURL from the env variables using {recipient-service-name} as a key
  • Get request method (GET, POST, etc.)
  • Make a new request to the needed service using the appropriate method and recipientURL
  • bff-service should return the result of the recipient’s request

Source: https://github.com/rolling-scopes-school/nodejs-aws-tasks/blob/main/task9-bff/task.md