Build a RESTAPI in Swift #8 Build the User and Course service

Sdílet
Vložit
  • čas přidán 27. 08. 2024
  • In this new video series we will be building a new RESTAPI for my new learning platform called Devscorch Academy. Devscorch Academy is a new platform which I will be launching later In 2023 and it is going to be an amazing project.
    I decided to build this completely into the open, so this means I'm recording the complete development of the RESTAPI, The website and the mobile applications.
    In this series we are building a RESTAPI using the Vapor Framework, a Swift framework which allows us to build Swift applications for the web.
    So I hope you are as excited as I am and if you are ready and want to learn how to code RESTAPI's in Swift, just watch the whole series and see what happens ;)
    For more articles and free content check out my website:
    devscorch.com
    Please follow me on Instagram, Facebook and Twitter
    / devscorch
    / devscorch
    / devscorch

Komentáře • 8

  • @henrikchristensen65688
    @henrikchristensen65688 Před rokem +1

    About the discussion with your friend about deleting the user: You only need to delete the information that can be used to identify the user e.g. email and name :)
    Keep up the good work! :D

    • @Exodai-Academy
      @Exodai-Academy  Před rokem

      Wow someone who actually listens and watches my videos haha. Respect Hendrik 😘.
      Yeah true indeed. But I prefer a force or hard delete. So everything gone so if ever something happens they can’t come complain to me haha.

    • @henrikchristensen65688
      @henrikchristensen65688 Před rokem

      @@Exodai-Academy hahah, yeah that is what I prefer too - super paranoid about keeping their data after deletion 😅

  • @fengding675
    @fengding675 Před rokem +1

    I still have a question. The updateAt attribute in CourseModel needs to be triggered by .update(on:).
    Is it not necessary to use save in func update but use update instead

    • @Exodai-Academy
      @Exodai-Academy  Před rokem

      .save does the same as .update() I just find .save easier to use

  • @fengding675
    @fengding675 Před rokem

    or (!~) In fact, this is the same as the first method (~~)

  • @perfectpipesplumbing3992
    @perfectpipesplumbing3992 Před 3 měsíci +1

    @40:52 Shouldn't it read? course.price = updateDTO.price ?? course.price

    • @Exodai-Academy
      @Exodai-Academy  Před 3 měsíci

      Yes exactly Good job spotting that mistake :)