How to design & create .NET API in 2022

Поделиться
HTML-код
  • Опубликовано: 8 ноя 2024

Комментарии • 4

  • @hamourabimr3826
    @hamourabimr3826 Год назад

    How would you handle cross-cutting domain in this case? I mean, how would you retrieve Books of a certains author, and publisher of each of this book?
    Also, is it possible to get the github of this code.. as code is not really zoomed..!

    • @hubertmijalski
      @hubertmijalski  Год назад

      >How would you handle cross-cutting domain in this case? I mean, how would you retrieve Books of a certains author, and publisher of each of this book?
      I'd do outbound ports, so as a part of Book domain I'd have interface to retrieve relevant data of Authors. I'd implement those interfaces as a part of Authors module, that could later be replaced by a HTTP Client call if those two services would be split into different apps. Check out Hexagonal Architecture - Ports.
      I will try to submit my code to GH asap, will get back to you!

    • @hubertmijalski
      @hubertmijalski  Год назад +1

      Github link: github.com/Mijalski/MinimalApiTutorial :)

    • @hamourabimr3826
      @hamourabimr3826 Год назад

      @@hubertmijalski Thank you for taking your time..