Blazor Server Call Web Api / Rest Api from Blazor Component in Asp.Net Core Tutorial

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

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

  • @cbc700
    @cbc700 Год назад +2

    Maybe the best 17m of tutorial I've ever seen. Outstanding. Thanks.

  • @ebarednaxela
    @ebarednaxela 2 года назад

    Man! You did bring the bread to the table! Many thanks for this! A great help for understanding Blazor+WebAPI relation. Super thanks!

  • @tacolover345
    @tacolover345 2 месяца назад

    succinctly explained, thank you very much for your tutorial

    • @CodingJackpot
      @CodingJackpot  25 дней назад

      Glad that you liked the video and it was useful to you

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

    Nice, thats awesome how simply you explain that!

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

    cant find class library (.net core) either, is it the same as class library (.net framework) ?

  • @emanuelfaisca1783
    @emanuelfaisca1783 3 года назад +1

    Excellent tutorial! Thank you for this! I like that is a simple direct example, it quickly shows the point of the matter ! Keep them coming.👍
    Just a comment though, the blazor httpclient used to call the api is no longer maintained.

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

    Excellent tutorial - to the point.

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

    Good, do you have a tutorial for submiting things via json, not just reading them?

  • @karol2566
    @karol2566 2 года назад

    package Microsoft.AspNetCore.Blazor.HttpClient has been discontinued :(
    Can you suggest something as simple as this package?

  • @MostafaZaki_fcih
    @MostafaZaki_fcih 3 года назад +2

    Hello Thanks for this , this is a nice structure , I've followed just u can split the pages and service in a share class library (rcl) in oreder to be easy if u want to switch from blazor server to Wasm
    I'have on question
    how can I authenticate and authorize the user in this approach
    (if u can provide me an example as I searched a lot but need to knw the best practice
    )
    thanks in advance

    • @CodingJackpot
      @CodingJackpot  3 года назад +3

      We are developing a demo for login and register with authenticate and authorize, we will upload the demo this week. Let us know if you need any other help

    • @MostafaZaki_fcih
      @MostafaZaki_fcih 3 года назад

      @@CodingJackpot wait that quckly please
      Thanks in advance

    • @MostafaZaki_fcih
      @MostafaZaki_fcih 3 года назад

      @@CodingJackpot is this what I talk about it
      Role base security
      In blazor server with isolated api
      Project?

  • @Oliver-dev
    @Oliver-dev Год назад

    Would be great if you could explain what you do, instead of just ctrl+c ctrl+v the start of the function, so that we know why certain things are done.

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

    edit: ok a "swagger" tab also appears with different port (to the hello world one), my api does work from here!..

  • @ОлегЛитвиненко-о5з

    Thank you! You realy helped me!)))

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

    ok i started again, got further, but visiting the api url i see Sorry, there's nothing at this address.... grr

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

    thanks, tho i cannot find blazor app, i see blazor web app and server app.

  • @박수정-r5o
    @박수정-r5o 3 года назад

    Thank you.!! for your service..Blazor.. :)
    i don't understand..why not uncheck "Configure for HTTPS" play time 1:41 ...
    can you explane...?

    • @CodingJackpot
      @CodingJackpot  3 года назад +1

      On my local computer it was giving some errors while running the website in browser so if its working for you then you can use HTTPS in Blazor

  • @reiner-vaca
    @reiner-vaca 3 года назад

    Hello, very good video and intuitive. A query just in case there is an example that uses the same structure. Web API separate from blazor but in authentication. I mean that the API provides JWT and BLAZOR consumes said API.

    • @CodingJackpot
      @CodingJackpot  3 года назад

      will create a video for Web API authentication with token using Blazor

  • @douglasperalta5486
    @douglasperalta5486 2 года назад +4

    "Microsoft.AspNetCore.Blazor.HttpClient" is no longer available.
    use "System.Net.Http.Json" instead.
    Replace:
    "return await HttpClient.GetFromJsonAsync("api/product/getProducts");"
    with
    "return await HttpClientJsonExtensions.GetFromJsonAsync(this.httpClient, "api/product/getProducts",CancellationToken.None);"

    • @CodingJackpot
      @CodingJackpot  2 года назад

      Please refer this .net 6 video ruclips.net/video/cqRqkJaLgls/видео.html