.NET 7 Minimal API for Beginners 🚀 Full CRUD in 10 Minutes!

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

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

  • @horizon6309
    @horizon6309 9 месяцев назад +2

    Awesome tutorial. Concise and very useful.

  • @DanielTadeu
    @DanielTadeu 5 месяцев назад +1

    Thanks man,
    Very good video, simple and objective.

  • @Niter88
    @Niter88 Год назад +3

    That's the best video on how to make a simple API.

  • @edsonrodrigues8143
    @edsonrodrigues8143 Год назад +11

    This is the type of video that I miss nowdays in the internet, simple, straightfoward and efficient. Excellent work!

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

      Appreciate your feedback! Thanks! 😊

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

    Can you please make a microservice video?? It would be really helpful. Thank you

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

    Can this be connected to a database?

  • @abdullahm.3363
    @abdullahm.3363 Год назад +1

    I don't understand why should one use minimal api instead of regular wer api core controller.

    • @Neolisk
      @Neolisk Год назад +3

      Hello world app to get started. Sometimes when things are too complex, it discourages newcomers from even starting.

    • @abdullahm.3363
      @abdullahm.3363 Год назад

      @@Neolisk
      🤔

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

      It reduces boilerplate and overhead which is useful for micro services. You would still use Dtos, Models, Repository and put the routes in a separate file rather than putting everything in the Program.cs.

    • @abdullahm.3363
      @abdullahm.3363 Год назад

      @@mistymu8154
      Thanks for the explanation
      I later on found out the same, namely that they are to be used in areas where there are limited resources in cpu, memory etc.
      I just think the guys at Microsoft should do a better job in explaining when minimal api is relevant.

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

    is it possible to add MapGets at runtime? i.e. Would it be possible to read a database and generate an API for it?

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

    Thanks. Newbie question. Would a third party consuming the API know that this was minimal API as opposed to an controller (MVC) api?

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

    Patrick! I need help. I’m making my first Web assembly app, and I’m trying to figure out how to deploy it. Do I put the API/server/wasm components under the same folder on my server or not? Thanks so much.

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

      Hey Jim, Thanks for reaching out. I've got another video for that. Hope this helps: ruclips.net/video/IkveZO9TZtU/видео.html

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

      @@PatrickGod
      Thanks for getting back to me!
      I get:
      Loading...
      An unhandled error has occurred. Reload 🗙

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

      Failed to load resource: the server responded with a status of 404 (Not Found)
      blazor.webassembly.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
      favicon.ico:1 Failed to load resource: the server responded with a status of 503 (Service Unavailable)
      app.css:1 Failed to load resource: the server responded with a status of 404 (Not Found)

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

    This looks nice.
    But İ dont where will i use this.

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

      Wherever you used API controllers before.

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

    Let me guess, all the classes you're trying to return should be Json Serilizable, and should have their properties decorated as such?

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

    This is just for protoyping even Microsoft says this in there documentation

    • @allannielsen4752
      @allannielsen4752 Год назад +3

      Using it in enterprise. Performance alone makes it worthwhile.

    • @davidfowl
      @davidfowl Год назад +4

      It’s not just for prototyping

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

    this is Laravel 😂

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

      Except you don't have to use PHP.

  • @miguelcalderon3549
    @miguelcalderon3549 Год назад +3

    Thank a lot, Excelent Video, full CRUD in a nut shell. the expample that i was looking for ...

  • @new-anointingaremu3597
    @new-anointingaremu3597 Год назад +2

    Is it just me or this looks a lot like JavaScript syntax

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

      Yes, it is similar to Express.

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

      @@mistymu8154 I am in the process of converting an express app to .Net 7, so I was mildly amused when I saw how similar the "controller" part looks. I didn't come for that that, I came for the strict type safety. I tried to bend javascript to my will, in the end I had to come back home to C#.

  • @xxxxxx5754
    @xxxxxx5754 5 месяцев назад

    why should someone use dotnet core mvc compared to the minimal api anymore? if i render everything on the server like the mvc stuff does it comes with lower performance

  • @zimcoder
    @zimcoder 11 месяцев назад

    every minimal api tutorial seems to be using only the program.cs file.. not practical

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

    but how do we consume this endpoints tho D:

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

    There is a doubt regarding api, my problem is how to consume jwt token in controller for login, and etc.