soat-fiap / FIAP.TechChallenge.ByteMeBurger

Repository for FIAP SOAT post degree Tech Challenge
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Implement Checkout Order API #71

Open italopessoa opened 1 month ago

italopessoa commented 1 month ago

Create an API endpoint that receives a list of products and returns the order ID.

italopessoa commented 2 weeks ago
graph LR
  subgraph UI
    A[User Interface] --> B[Controller]
  end

  subgraph Controller
    B --> C[Use Case]
  end

  subgraph Use Case
    C --> D[Product Repository]
    C --> E[Order Service]
  end

  subgraph Domain
    D --> F[Product]
    E --> G[Order]
  end

  subgraph Persistence
    D --> H[Product Database]
    E --> I[Order Database]
  end

  subgraph Output
    E --> J[Order ID]
  end

  A --> B
  B --> C
  C --> D
  C --> E
  E --> J

  style D fill:#f9f,stroke:#333,stroke-width:2px
  style E fill:#f9f,stroke:#333,stroke-width:2px
  style H fill:#f9f,stroke:#333,stroke-width:2px
  style I fill:#f9f,stroke:#333,stroke-width:2px

Explanation:

Key Points of Clean Architecture:

This diagram illustrates a simplified representation of the flow for an API endpoint using clean architecture. The specific implementation details may vary depending on the chosen framework and technologies.